Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Info

Help is available by sending an email to csf-support@mit.edu
Have any suggestion on how improve this wiki?  Please give us your feedback at csf-support@mit.edu

Quick

Links

to:

{

Panel
Wiki Markup
Table of Contents
:
minLevel
=
3
}
unmigrated-wiki-markup
Panel
h3.

When

deploying

batchadmin

to

my

local

OC4J

server,

I

get

the

following

exception:

{
Code Block
}
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mbeanExporter': Invocation of init method failed; nested exception is org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [org.springframework.batch.admin.jmx.BatchMBeanExporter@4262d5d7] with key 'batchMBeanExporter';
nested exception is java.lang.SecurityException: Unauthorized access from application: batchadmin to MBean: spring.application:name=batchMBeanExporter,type=BatchMBeanExporter
{code}
*

ANSWER

*

:

*

  • Edit
  • the
  • OC4j
  • startup
  • file:
  • $
\
  • {ORACLE_HOME}/bin/oc4j.cmd

  • Find
  • the
  • following
  • block
  • of
  • code:
{
  • Code Block
}
  • 
    echo Starting OC4J from %J2EE_HOME% ...
    set CMDARGS=-config "%SERVER_XML%"
    if "%2%"=="" ( 
      goto oc4j
    ) else (
      echo.
      echo Error: The option %2% was not recognized.
      goto help
    )
    
{code}
  • and
  • change
  • it
  • to
  • the
  • following:
{
  • Code Block
}
  • 
    echo Starting OC4J from %J2EE_HOME% ...
    set CMDARGS=-config "%SERVER_XML%"
    if "%2%"=="" ( 
      set JVMARGS=%OC4J_JVM_ARGS% -Doc4j.jmx.security.proxy.off=true -Doc4j.userThreads=true
      echo start JMVARGS = %JVMARGS%
      goto oc4j
    ) else (
      echo.
      echo Error: The option %2% was not recognized.
      goto help
    )
    
{code}
  • Save
  • the
  • change
  • and
  • restart
  • the
  • OC4J
  • server.
h3.

My

OC4J

application

deployment

fails

with

a

NoSuchMethodError:

org.objectweb.asm.ClassVisitor.visit.

*

  • The
  • OC4J
  • deployment
  • fails
  • with
  • the
  • error:
  *Initialization of bean
  •   Initialization of bean failed;
  • nested
  • exception
  • is
  • java.lang.NoSuchMethodError:
  • org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String
\
  • ;)
* *

ANSWER

*

:

*

  • The
  • issue
  • is
  • that
  • multiple
  • (and
  • old)
  • versions
  • of
  • the
  • "asm"
  • jar
  • are
  • being
  • deployed.
  Do the following: \\ *# remove the dependencies for the asm and cglib jars from the project pom.xml file. *# add a dependency for the cglib-nodep jar version
  •   Do the following:
    1. remove the dependencies for the asm and cglib jars from the project pom.xml file.
    2. add a dependency for the cglib-nodep jar version 2.2.2
    1. in
    1. your
    1. project
    1. pom.xml
    1. (this
    1. pulls
    1. in
    1. asm).
{

Panel
Wiki Markup
Code Block
}
    1. 
      <dependency>
          <groupId>cglib</groupId>
          <artifactId>cglib-nodep</artifactId>
          <version>2.2.2</version>
      </dependency>
      
{code} *# add exclusions for any other indirect dependencies of the cglib and asm jars (all versions).
    1. add exclusions for any other indirect dependencies of the cglib and asm jars (all versions).
{anchor:My build fails whenever MyEclipse tries to deploy my application to my OC4J application server} h3.My build fails whenever MyEclipse tries to deploy my application to my OC4J application server. *ANSWER:* * Build for a project will fail in a MyEclipse environment if there are 2 maven natures/libraries in the .project and. classpath files.&nbsp;&nbsp;Sometimes MyEclipse will automatically create or configure your .classpath and .project file when you check out a project.&nbsp;&nbsp;If it adds 2 maven natures
  • (org.maven.ide.eclipse
  • and
  • org.eclipse.m2e
  • )
  • in
  • your
  • project,
  • you
  • will
  • not
  • be
  • able
  • to
  • build
  • your
  • project.
&nbsp;&nbsp;The build will fail when it tries to deploy the application to the application server.&nbsp;&nbsp;The logs in the server will shows an error indicating that it is unable to load the applicationContext as it cannot create the daoFoundation bean, sessionFactory bean, and so on as a result of a missing object: Student. \\ \\ To resolve the problem, remove one of the maven natures/libraries in the project configuration.&nbsp;&nbsp;It can be done via deleting the maven nature from the Libraries in the Java Build Path of the project as shown in the panel below: \\ \\ !myeclipse001.jpg! \\ \\Also, you can edit the .classpath and .project file manually.&nbsp;&nbsp;You need to choose either one of the maven nature or classpath entry.&nbsp;&nbsp;Using the
  •   The build will fail when it tries to deploy the application to the application server.  The logs in the server will shows an error indicating that it is unable to load the applicationContext as it cannot create the daoFoundation bean, sessionFactory bean, and so on as a result of a missing object: Student.

    To resolve the problem, remove one of the maven natures/libraries in the project configuration.  It can be done via deleting the maven nature from the Libraries in the Java Build Path of the project as shown in the panel below:

    Image Added

    Also, you can edit the .classpath and .project file manually.  You need to choose either one of the maven nature or classpath entry.  Using the org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER,
  • the
  • following
  • are
  • excerpts
  • of
  • the
  • .classpath
  • and
  • .project
  • files
  • that
  • are
  • configured
  • properly:
\\ \\ *# For the


    1. For the .classpath
    1. file:
{
Panel

Anchor
My build fails whenever MyEclipse tries to deploy my application to my OC4J application server
My build fails whenever MyEclipse tries to deploy my application to my OC4J application server

My build fails whenever MyEclipse tries to deploy my application to my OC4J application server.

ANSWER:

  • Build for a project will fail in a MyEclipse environment if there are 2 maven natures/libraries in the .project and. classpath files.  Sometimes MyEclipse will automatically create or configure your .classpath and .project file when you check out a project.  If it adds 2 maven natures
Panel
Wiki Markup
Code Block
}
    1. 
      <?xml version="1.0" encoding="UTF-8"?>
      <classpath>
       <classpathentry kind="src" output="target/classes" path="src/main/java"/>
       <classpathentry kind="src" output="target/classes" path="src/main/resources"/>
       <classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
       <classpathentry kind="src" output="target/test-classes" path="src/test/resources"/>
       <classpathentry kind="con"  path="org.eclipse.jdt.launching.JRE_CONTAINER
           /org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
       <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
         <attributes>
           <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
         </attributes>
       </classpathentry>
       <classpathentry kind="output" path="target/classes"/>
      </classpath>
      
{code} *# for the
    1. for the .project
    1. file:
{
    1. Code Block
}
    1. 
      <buildCommand>
         <name>org.eclipse.m2e.core.maven2Builder</name>
         <arguments>
         </arguments>
      </buildCommand>
      .
      .
      <natures>
        <nature>org.eclipse.m2e.core.maven2Nature</nature>
        .
        .
      </natures>
{code}
    1. 
      
h3.

I

forgot

my

OC4J

administrator

password.

&nbsp;&nbsp;How can I manually reset the password? *ANSWER:* * Open $\

  How can I manually reset the password?

ANSWER:

  • Open ${ORACLE_HOME}/j2ee/home/config/system-jazn-data.xml
  • with
  • a
  • text
  • editor.
\\

  • Find
  • the
  • <user>
  • tag
  • block
  • for
  • oc4jadmin.
  • Change
  • the
  • oc4jadmin's
  • <credentials>
  • property
  • to
  • (substituting
  • your
  • password
  • for
  • myNewPassowd):
  • <credentials>!myNewPassword</credentials>
\\

  • Be
  • sure
  • to
  • preface
  • the
  • password
  • with
  • an
  • !
  • to
  • inidcate
  • that
  • this
  • is
  • a
  • plain
  • text
  • value.
\\

  • When
  • completed,
  • the
  • oc4jadmin
  • <user>
  • should
  • look
  • something
  • like:
{
Panel
Wiki Markup
Code Block
}
  • 
    <user>
        <name>oc4jadmin</name>
        <display-name>OC4J Administrator</display-name>
        <guid>E33D5A508AA511DF8F573778FB23EDF8</guid>
        <description>OC4J Administrator</description>
        <credentials>!myNewPassword</credentials>
    </user>
    
{code}
  • Save
  • the
  • changes
  • and
  • restart
  • the
  • OC4J
  • server.
unmigrated-wiki-markup
Panel
h3.

I'm

getting

an

oracle.xml.parser.schema.XSDException

when

I

try

to

deploy

my

web

application.

*

QUESTION:

* *

  • My
  • laptop
  • was
  • formatted
  • recently,
  • so
  • I
  • installed
  • MyEclipse
  • 10.7.
&nbsp;&nbsp;When I tried to deploy my web application to my local OC4J server, I get the following error.: {code}
  •   When I tried to deploy my web application to my local OC4J server, I get the following error.:
    Code Block
    
    Deploy error: Deploy error: Operation failed with error:
    Line 10 in XML document from URL [code-source:/C:/oc4j_101350/j2ee/home/applications/dfp/dfp/WEB-INF/lib/csf-webservices-1.0.17-20130103.040738-23.jar!/applicationContext-csf-webservices.xml] is invalid; 
    nested exception is oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType'
    
{code}
  • I
  • think
  • it’s
  • related
  • to
  • some
  • XML
  • parsers.
&nbsp;&nbsp;I
  •   I don't
  • think
  • its
  • MyEclipse
  • that
  • is
  • causing
  • the
  • problem.
*

ANSWER:

* *

  • verify
  • your
  • OC4J
  • configuration,
  • particularly
  • the
  • swapping
  • out
  • of
  • the
  • Oracle
  • XML
  • parser.
&nbsp;&nbsp;Instructions on how to configure an new XML parser is described in [Configure the OC4J stand alone server, section 4|Install the Oracle OC4J 10.1.3.5 standalone server#parser configuration].

Panel

How do I block inbound connections on ports 8888 and 4443?

Follow this link for instructions on how to block inbound connections for any TCP port.