Error deploying to oc4j standalone

hi folks,
i'm trying to deploy my application from jdev to standalone oc4j.
i created a war, an ejb-jar and an ear that includes them. while trying to deploy the ear i get the following exception:
2006-11-30 14:54:48.265 NOTIFICATION Starting application : wts2
2006-11-30 14:54:48.265 NOTIFICATION Initializing ClassLoader(s)
2006-11-30 14:54:48.265 NOTIFICATION Initializing EJB container
2006-11-30 14:54:48.265 NOTIFICATION Loading connector(s)
2006-11-30 14:54:48.343 NOTIFICATION Starting up resource adapters
2006-11-30 14:54:48.359 NOTIFICATION Processing EJB module: wts2_ejb_jar.jar
2006-11-30 14:54:48.656 ERROR J2EE EJB-03027 [wts2] An error occured deploying E
JB module: javax.ejb.EJBException: nested exception is: java.lang.reflect.Invoca
tionTargetException
2006-11-30 14:54:48.671 NOTIFICATION application : wts2 is in failed state
06/11/30 14:54:48 WARNING: Application.setConfig Application: wts2 is in failed
state as initialization failed.
java.lang.InstantiationException: Error initializing ejb-modules: nested excepti
on is: java.lang.reflect.InvocationTargetException
06/11/30 14:54:48 oracle.oc4j.admin.internal.DeployerException: java.lang.Instan
tiationException: Application: wts2 is in failed state as initialization failed
06/11/30 14:54:48 at oracle.oc4j.admin.internal.ApplicationDeployer.addApp
lication(ApplicationDeployer.java:515)
06/11/30 14:54:48 at oracle.oc4j.admin.internal.ApplicationDeployer.doDepl
oy(ApplicationDeployer.java:196)
06/11/30 14:54:48 at oracle.oc4j.admin.internal.DeployerBase.execute(Deplo
yerBase.java:93)
06/11/30 14:54:48 at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeploy
erRunnable.doRun(OC4JDeployerRunnable.java:52)
06/11/30 14:54:48 at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRu
nnable.run(DeployerRunnable.java:81)
06/11/30 14:54:48 at com.evermind.util.ReleasableResourcePooledExecutor$My
Worker.run(ReleasableResourcePooledExecutor.java:298)
06/11/30 14:54:48 at java.lang.Thread.run(Thread.java:595)
06/11/30 14:54:48 Caused by: java.lang.InstantiationException: Application: wts2
is in failed state as initialization failed
06/11/30 14:54:48 at com.evermind.server.Application.setConfig(Application
.java:471)
06/11/30 14:54:48 at com.evermind.server.Application.setConfig(Application
.java:314)
06/11/30 14:54:48 at com.evermind.server.ApplicationServer.addApplication(
ApplicationServer.java:1853)
06/11/30 14:54:48 at oracle.oc4j.admin.internal.ApplicationDeployer.addApp
lication(ApplicationDeployer.java:512)
06/11/30 14:54:48 ... 6 more
06/11/30 14:54:48 Caused by: java.lang.InstantiationException: Error initializin
g ejb-modules: nested exception is: java.lang.reflect.InvocationTargetException
06/11/30 14:54:48 at com.evermind.server.ejb.EJBContainer.postInit(EJBCont
ainer.java:1064)
06/11/30 14:54:48 at com.evermind.server.ApplicationStateRunning.initializ
eApplication(ApplicationStateRunning.java:217)
06/11/30 14:54:48 at com.evermind.server.Application.setConfig(Application
.java:413)
06/11/30 14:54:48 ... 9 more
06/11/30 14:54:48 Caused by: javax.ejb.EJBException: nested exception is: java.l
ang.reflect.InvocationTargetException
06/11/30 14:54:48 at com.evermind.server.ejb.EJBUtils.createEJBException(E
JBUtils.java:365)
06/11/30 14:54:48 at com.evermind.server.ejb.EJBUtils.createEJBException(E
JBUtils.java:356)
06/11/30 14:54:48 at com.evermind.server.ejb.BeanAnnotationListener.parseA
nnotatedClass(BeanAnnotationListener.java:54)
06/11/30 14:54:48 at com.evermind.server.ejb.AnnotationParser.notifyAnnota
tionListeners(AnnotationParser.java:201)
06/11/30 14:54:48 at com.evermind.server.ejb.AnnotationParser.parseAnnotat
ions(AnnotationParser.java:73)
06/11/30 14:54:48 at com.evermind.server.ejb.EJBPackageDeployment.parseMet
aData(EJBPackageDeployment.java:939)
06/11/30 14:54:48 at com.evermind.server.ejb.EJBContainer.postInit(EJBCont
ainer.java:832)
06/11/30 14:54:48 ... 11 more
06/11/30 14:54:48 Caused by: java.lang.reflect.InvocationTargetException
06/11/30 14:54:48 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
ethod)
06/11/30 14:54:48 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMet
hodAccessorImpl.java:39)
06/11/30 14:54:48 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Deleg
atingMethodAccessorImpl.java:25)
06/11/30 14:54:48 at java.lang.reflect.Method.invoke(Method.java:585)
06/11/30 14:54:48 at com.evermind.server.ejb.BeanAnnotationListener.parseA
nnotatedClass(BeanAnnotationListener.java:45)
06/11/30 14:54:48 ... 15 more
06/11/30 14:54:48 Caused by: java.lang.NoClassDefFoundError: Lorg/apache/log4j/L
ogger;
06/11/30 14:54:48 at java.lang.Class.getDeclaredFields0(Native Method)
06/11/30 14:54:48 at java.lang.Class.privateGetDeclaredFields(Class.java:2
232)
06/11/30 14:54:48 at java.lang.Class.getDeclaredFields(Class.java:1715)
06/11/30 14:54:48 at com.evermind.server.deployment.AnnotationManager.pars
e(AnnotationManager.java:112)
06/11/30 14:54:48 at com.evermind.server.deployment.AnnotationManager.getM
ethods(AnnotationManager.java:64)
06/11/30 14:54:48 at com.evermind.server.ejb.deployment.BeanDescriptorAnno
tationParser.parseAnnotations(BeanDescriptorAnnotationParser.java:76)
06/11/30 14:54:48 at com.evermind.server.ejb.deployment.BeanDescriptorAnno
tationParser.parseAnnotations(BeanDescriptorAnnotationParser.java:48)
06/11/30 14:54:48 ... 20 more
2006-11-30 14:54:48.718 NOTIFICATION Application Deployer for wts2 FAILED.
i don't know if this can be connected to the following issue: i have another java environment on the same machine and therefore 2 different jdks: 1.4 and 5. the JAVA_HOME points to jdk1.4. but the batch file running the oc4j starts it with jdk5:
C:\Sun\AppServer\jdk\bin\java.exe -jar D:\oc4j\j2ee\home\oc4j.jar
i've seen a thread here saying that problems with InvocationTargetException can be solved by using Oracle AppServer instead of OC4J, which sounds pretty bizzare to me. there are a lot of folks here who run and deploy into OC4J with no problem.
thanks for you help!

i am still facing the same problem all peoples face
is ther any way to fix it???????
if u find a solution i will apretiate if u tell me
coz am trying to make a webservice to try it with jdeveloper over oc4j
and as u know there is a test way provided by jdeveloepr to test ur webservice after publishing it
after i compliled the calsses and deploy it and open the url http://localhost:8888/jdeveloper_ap...webservice_name
and evry thing is ok till now and the page apear carying the method services name and when i click the method servic ename evry thing is still ok and the form apear requesting the input of the method if any with an invoke button or with the invoke button alone if no input was required and 2 link below the Proxy Jar and the Proxy Source so till now evry thing is ok
but after i press the invoke button or when i press the link proxyjar or Proxy Source the explorer show the usual error page HTTP 500 - Internal server error Internet Explorer so nothing work till the end
does any one expert in webservices with jedeveloepr know what do i miss to set so that the trial work?

Similar Messages

  • Can't Complete Deployment to OC4J Standalone

    I have successfully deployed 3 projects to OC4J standalone on a Win2k box. I have now set up OC4J on a Sun box. I have deployed 2 of the (basic) web apps sucessfully, but the third, which consists of an EJB/BC4J project and a servlet/JSP project, does not completely deploy. All files are written to the correct directories as far as I can see, but the app info is not written to the config files. In JDev, there are no messages after the deployment command line. It hangs until I kill the admin tool.
    Any help would be appreciated.

    Can you verify the JAVA_HOME, sometime, when you deploy an EJB application, OC4J need compile it.

  • Ear file deploys on oc4j standalone, not on ias using the ent.appl.manager

    We added security constraints to our web.xml, and this works when we deploy it on a standalone OC4J. Deploying this ear on the ias with the Enterprise application Manager: after choosing the ear-file, giving it a name and pushing the next button we get a nullpointer-exception.
    After removing the security constraints the deployment works. Any ideas????
    Eelco

    To be complete, here's the web.xml:
    <?xml version="1.0"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <!-- This file contains the configuration for a web-application.-->
    <web-app>
    <distributable />
    <display-name>Laris Application</display-name>
    <description>Laris Application</description>
    <env-entry>
         <description>Database connection string</description>
         <env-entry-name>dbconnect</env-entry-name>
         <env-entry-value>jdbc:oracle:thin:&lt;user&gt;&lt;pwd&gt;@&lt;host&gt;:&lt;port&gt;:&lt;sid&gt;</env-entry-value>
         <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    <env-entry>
         <description>Dtd locatie string</description>
         <env-entry-name>dtd_url</env-entry-name>
         <env-entry-value>http://&lt;host&gt;:&lt;port&gt;/laris/dtd/</env-entry-value>
         <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    <servlet>
    <servlet-name>LarisController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>StartLarisService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>PortaalController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>PortaalService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>InvoerenAanspraakController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>InvoerenAanspraakService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>ControlerenAanspraakController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>ControlerenAanspraakService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>BeoordelenAanspraakController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>BeoordelenAanspraakService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>BeslissenAanspraakController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>BeslissenAanspraakService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>BehandelenAanspraakController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>BehandelenAanspraakService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>CommunicatieGeneratorController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>CommunicatieGeneratorService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>KruisjestabelController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>KruisjestabelService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>CitesController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>LarisService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>BaBoSSController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>LarisService.xml</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>LarisController</servlet-name>
    <url-pattern>Default/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>PortaalController</servlet-name>
    <url-pattern>Portaal/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>InvoerenAanspraakController</servlet-name>
    <url-pattern>Portaal/InvoerenAanspraak/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>ControlerenAanspraakController</servlet-name>
    <url-pattern>Portaal/ControlerenAanspraak/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>BeoordelenAanspraakController</servlet-name>
    <url-pattern>BeoordelenAanspraak/Eenvoudig/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>BeslissenAanspraakController</servlet-name>
    <url-pattern>Beslissen/VaststellenBeslissing/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>BehandelenAanspraakController</servlet-name>
    <url-pattern>Behandelen/AdministratiefControleren/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>CommunicatieGeneratorController</servlet-name>
    <url-pattern>Informeren/CommunicatieGenerator/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>KruisjestabelController</servlet-name>
    <url-pattern>Kruisjestabel/Kruisjestabel/StartIt</url-pattern>
    </servlet-mapping>
    <!-- security roles -->
    <security-role>
         <role-name>sr_manager</role-name>
    </security-role>
    <security-role>
         <role-name>sr_developer</role-name>
    </security-role>
    <!-- security constraints -->
    <security-constraint>
    <web-resource-collection>
    <url-pattern>cabo/*</url-pattern>
    <url-pattern>jheadstart/*</url-pattern>
    <url-pattern>help/*</url-pattern>
    <url-pattern>laris/*</url-pattern>
    <url-pattern>images/*</url-pattern>
    <url-pattern>uix/*</url-pattern>
    </web-resource-collection>
    <!-- authorization -->
    <!-- <auth-constraint>
    <role-name>sr_developer</role-name>
    </auth-constraint> -->
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <url-pattern>Default/*</url-pattern>
    <url-pattern>Portaal/*</url-pattern>
    <url-pattern>Informeren/*</url-pattern>
    <url-pattern>Behandelen/*</url-pattern>
    <url-pattern>Beslissen/*</url-pattern>
    <url-pattern>BeoordelenAanspraak/*</url-pattern>
    <!-- volgende is wel gewenst (in 1 keer alles beveiligen), maar werkt niet
    <url-pattern>*</url-pattern> geeft error bij createmarlinbeanpag
    <url-pattern>*/*</url-pattern> beveiligt gewoon niet
    <url-pattern>./*</url-pattern> beveiligt niet alles
    <url-pattern>./*/*</url-pattern> beveiligt niet(s)
    <url-pattern>../*</url-pattern> beveiligt niets
    -->
    </web-resource-collection>
    <!-- authorization -->
    <auth-constraint>
    <role-name>sr_developer</role-name>
    </auth-constraint>
    </security-constraint>
    <!-- de volgende security constraint is niet zozeer voor de administrator
    maar om er voor te zorgen dat bovenstaande constraint de toegang
    beperkt tot alleen het gedefinieerde -->
    <security-constraint>
    <web-resource-collection>
    <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
         <role-name>sr_administrator</role-name>
    </auth-constraint>
    </security-constraint>
    <!-- authentication -->
    <login-config>
         <auth-method>BASIC</auth-method>
    </login-config>
    </web-app>

  • Error starting up OC4J Standalone 904

    I'm getting the following error when starting up an OC4J 904 standalone (/j2ee/home/java -jar oc4j.jar) I get this error on both my Windows 2000 environment and Solaris. Any ideas?
    04/02/19 10:29:07 Error creating Tag Library Descriptor Cache : null
    04/02/19 10:29:07 java.lang.ExceptionInInitializerError
    04/02/19 10:29:07 at sun.reflect.NativeConstructorAccessorImpl.newInstance
    0(Native Method)
    04/02/19 10:29:07 at sun.reflect.NativeConstructorAccessorImpl.newInstance
    (NativeConstructorAccessorImpl.java:39)
    04/02/19 10:29:07 at sun.reflect.DelegatingConstructorAccessorImpl.newInst
    ance(DelegatingConstructorAccessorImpl.java:27)
    04/02/19 10:29:07 at java.lang.reflect.Constructor.newInstance(Constructor
    .java:274)
    04/02/19 10:29:07 at java.lang.Class.newInstance0(Class.java:306)
    04/02/19 10:29:07 at java.lang.Class.newInstance(Class.java:259)
    04/02/19 10:29:07 at oracle.jsp.parse.XMLUtil.elemToTagInfo(XMLUtil.java:1
    278)
    04/02/19 10:29:07 at oracle.jsp.parse.XMLUtil.domDocToTagLib(XMLUtil.java:
    1063)
    04/02/19 10:29:07 at oracle.jsp.parse.tldcache.TldUtil.getTlibInfo(TldUtil
    .java:225)
    04/02/19 10:29:07 at oracle.jsp.parse.tldcache.CachedTldImpl.findUriAttrib
    ute(CachedTldImpl.java:189)
    04/02/19 10:29:07 at oracle.jsp.parse.tldcache.CachedTldImpl.getTldInfo(Ca
    chedTldImpl.java:138)
    04/02/19 10:29:07 at oracle.jsp.parse.tldcache.CachedTldImpl.<init>(Cached
    TldImpl.java:92)
    04/02/19 10:29:07 at oracle.jsp.parse.tldcache.TldResourceImpl.buildTlds(T
    ldResourceImpl.java:132)
    04/02/19 10:29:07 at oracle.jsp.parse.tldcache.TldCacheImpl.applyInserts(T
    ldCacheImpl.java:292)
    04/02/19 10:29:07 at oracle.jsp.parse.tldcache.TldCacheImpl.updateCache(Tl
    dCacheImpl.java:281)
    04/02/19 10:29:07 at oracle.jsp.parse.tldcache.ApplicationTldCacheImpl.<in
    it>(ApplicationTldCacheImpl.java:62)
    04/02/19 10:29:07 at com.evermind.server.http.HttpApplication.initDefaultS
    ervlets(HttpApplication.java:4835)
    04/02/19 10:29:07 at com.evermind.server.http.HttpApplication.initDynamic(
    HttpApplication.java:701)
    04/02/19 10:29:07 at com.evermind.server.http.HttpApplication.<init>(HttpA
    pplication.java:497)
    04/02/19 10:29:07 at com.evermind.server.Application.getHttpApplication(Ap
    plication.java:886)
    04/02/19 10:29:07 at com.evermind.server.http.HttpServer.getHttpApplicatio
    n(HttpServer.java:688)
    04/02/19 10:29:07 at com.evermind.server.http.HttpSite.initApplications(Ht
    tpSite.java:570)
    04/02/19 10:29:07 at com.evermind.server.http.HttpSite.setConfig(HttpSite.
    java:263)
    04/02/19 10:29:07 at com.evermind.server.http.HttpServer.setSites(HttpServ
    er.java:259)
    04/02/19 10:29:07 at com.evermind.server.http.HttpServer.setConfig(HttpSer
    ver.java:160)
    04/02/19 10:29:07 at com.evermind.server.ApplicationServer.initializeHttp(
    ApplicationServer.java:2325)
    04/02/19 10:29:07 at com.evermind.server.ApplicationServer.setConfig(Appli
    cationServer.java:1498)
    04/02/19 10:29:07 at com.evermind.server.ApplicationServerLauncher.run(App
    licationServerLauncher.java:93)
    04/02/19 10:29:07 at java.lang.Thread.run(Thread.java:536)
    04/02/19 10:29:07 Caused by: java.util.MissingResourceException: Can't find bund
    le for base name oracle.webdb.service.resource.PortalBundle, locale en_US
    04/02/19 10:29:07 at java.util.ResourceBundle.throwMissingResourceExceptio
    n(ResourceBundle.java:804)
    04/02/19 10:29:07 at java.util.ResourceBundle.getBundleImpl(ResourceBundle
    .java:773)
    04/02/19 10:29:07 at java.util.ResourceBundle.getBundle(ResourceBundle.jav
    a:511)
    04/02/19 10:29:07 at oracle.webdb.service.tagext.PortletTagExtraInfo.<clin
    it>(Unknown Source)
    04/02/19 10:29:07 ... 29 more
    04/02/19 10:29:07 JspTagLibListener error : null
    04/02/19 10:29:08 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
    initialized

    fyi: all these problems seem to have gone away since I upgraded to JDK 1.4.1_02 and reinstalled.
    --matt                                                                                                                                                                                                                   

  • Deploy to OC4J standaone problem

    Dears,
    I developed an application in jdev 10.2 and it works successfully with embedded OC4J, but when deploy to OC4J standalone or Tomcat it doesn't work.
    I use JSON in my application.
    The log (for OC4J standalone and Tomcat) is empty from errors and exceptions, Only
    JSONRPCBridge.analyzeClass analyzing package1name.package2name.package3name.DAO.classNmaeDAO
    is written and my code didn't work and JSP is empty.
    Any ideas, what may be the problem there???

    When I deploy to oc4j from jdev... I get an error.
    Unknown site: http-web-site
    How do I figure out what my http site is via my oc4j configuration?
    I know in my Connection properties for oc4j in jdev, there is a target web site property where I entered "http-web-site", thinking this was the correct target.
    Thanks. Look in <oracle_home>\j2ee\home\config\server.xml
    Web sites are defined by the web-site entry. E.g
    <web-site path="./http-web-site.xml" />
    <web-site default="true" path="./default-web-site.xml" />
    Dhiraj

  • Error deploying J2EE Application (EAR) to standalone OC4J

    Hi
    I'm invoking the admin_client.jar utility to deploy a webservice on a standalone OC4J, here is the command:
    java -jar %OC4J_HOME%\j2EE\home\admin_client.jar deployer:oc4j:localhost:23791 oc4jadmin test -deploy -file C:\10GIDS\BIN\johnTestWS.ear -deploymentname johnsws -bindAllWebApps default-web-site -contextRoot johnsws
    I get the following error:
    Deploy error: Deploy error: Operation failed with error:Error compiling :C:\JDeveloper_10g\j2ee\home\applications\johnsws\johnTestWS-web: Syntax error in source or compilation failed in: C:\JDeveloper_10g\j2ee\home\application-deployments\johnsws\johnTestWS-web\oracle\generated\runtime\XmlreturnBase__SOAPSerializer.java java.lang.NoClassDefFoundError: com/sun/tools/javac/MainException in thread "main"
    The java.lang.NoClassDefFoundError: com/sun/tools/javac/MainException in thread "main" error string (from my limited understanding) would mean there is a jar file missing from the CLASSPATH or something, yet, because the '-jar' option is selected when running the java command I don't have the option to include any classpath in the command string. What am I doing wrong?
    I've been trying to assemble and deploy this web service for ages now and I think I'm very close to the end, can someone please show me that I'm doing something very simple wrong....?

    smydo,
    I see you answered yourself in the other forum where you posted the same question:
    Problems deploying Web Service to standalone OC4J from Windows command line
    Good Luck,
    Avi.

  • How to deploy an application in OC4J standalone?

    I'm trying to deploy Jspell 2004 in a standalone OC4J 10g. All my attempts have failed thus far, as I admit, I don't really know what I am doing.
    I've found several articles, including those from Jspell, and they all start with 'deploy the war file' but how?
    I don't know where I should deploy the WAR file or exaclty which config files I need to modify. I've tried under OH/j2ee/home/applications, OH/j2ee/DevSuite/application-deployments and always get the 'Error instantiating web-application' no application found on server.'
    I'm using the OC4J strictly for forms/reports running on port 8889 and that all works fine. When I start the OC4J, it is referencing the server.xml file in the DevSuite/config folder.
    Any ideas?

    Please look at the OC4J FAQ
    http://www.oracle.com/technology/tech/java/oc4j/904/collateral/oc4j-faq-904.html#oc4j_deploy
    Yes. If you wish to deploy only a Web module then you can utilize the default application OC4J is configured with. This is a two step task:
    First, tell the container about the WAR file to be deployed. Open the <J2EE_HOME>/config/application.xml file in an editor. Add a new <web-module> tag and specify the attributes for your WAR file.
    <web-module id="HRWebModule" path="<PATH-TO-WAR-FILE>"/>
    Secondly, tell the OC4J HTTP server about the new WAR file and provide a URL to access it. Open the <J2EE_HOME>/config/http-web-site.xml file in an editor. Add a new <web-app> tag and specify the attributes for your new Web module. It's important to note that the application attribute must specified as "default" since you have deployed your Web module to the default application. The name attribute should match the ID attribute you specified for the Web module.
    <web-app application="default" name="HRWebModule" root="/hrweb" />
    The WAR file will now be deployed by OC4J and accessible using a URL of /hrweb.
    -Debu
    http://debupanda.com

  • Error while accessing UIX pages when deployed using OC4J

    UIX: 2.1.9
    JDeveloper: 9.0.3
    Database: 8i Release 3.
    Using UIX and BC4J, I created few pages for a small application. I installed the OC4J standalone and configured setting library paths and and deployed this application. I extended the UixPageBroker and TrivialPageFlow engine to suit my application requirements. All pages within the application requires the user to login. While accessing a UIX page, I am getting the error provided below. However, if I am not extending the UixPageBroker and PageFlowEngine, UIX pages are rendered with no problem. Can someone tell me what is the cause of this?
    500 Internal Server Error
    java.lang.NullPointerException
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].naming.ContextClassLoader.loadClass(ContextClassLoader.java:135)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].naming.ContextClassLoader.loadClass(ContextClassLoader.java:135)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at oracle.bali.share.util.ClassLoaderUtils.loadClass(Unknown Source)
         at oracle.bali.share.util.ClassLoaderUtils.loadClass(Unknown Source)
         at oracle.cabo.servlet.UIXServlet.init(Unknown Source)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpApplication.loadServlet(HttpApplication.java:1956)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpApplication.findServlet(HttpApplication.java:4355)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2484)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:617)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
         at java.lang.Thread.run(Unknown Source)

    I found out the workaround but not sure whether it is the right solution.
    When the application is deployed, it will be creating few files under the directory "application-deployments", of which some are configuration files specific to the deployed application.
    Edit the file: orion-web.xml and uncomment the following:
    <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="true" />Save the file and restart OC4J.

  • How Do You Deploy a War File to The OC4J Standalone ?

    I have a .war file that contains example code and I would like to deploy it to my OC4J Standalone.
    I tried putting the war file in the applications directory and adding a line in the server.xml file but I received the error:
    Error instantiating application at file:/C:/OC4JStandAlone/pdk101202_oc4j_extended/j2ee/home/applications/displaytag-examples-1.1.war: Unable to find/read assembly info for C:\OC4JStandAlone\pdk101202_oc4j_extended\j2ee\home\applications\displaytag-examples-1.1 (META-INF/application.xml)
    It appears it was expecting an .ear file instead of a .war file
    Is there an easy way to deploy a .war file to the OC4J Standalone?
    Thanks,

    Please refer to the OC4J FAQ on :-
    http://www.oracle.com/technology/tech/java/oc4j/1012/collateral/OC4J-FAQ-101202.pdf
    Q 24 should have your answer.
    Cheers!

  • Error in oc4j standalone & JAX-WS 2.0

    Hi!!
    I'm trying to generate a SOAP Message with this code:
    MessageFactory factory =
    MessageFactory.newInstance(SOAPConstants.SOAP_1_1_PROTOCOL);
    response = factory.createMessage();
    SOAPPart parte =
    response.getSOAPPart();
    parte.setContent(xmlSource);
    response.saveChanges();
    in line "response.saveChanges();" i have this error:
    16-feb-2007 11:00:21 com.sun.xml.messaging.saaj.soap.EnvelopeFactory
    createEnvelope
    GRAVE: SAAJ0511: Unable to create envelope from given source
    16-feb-2007 11:00:21 com.sun.xml.messaging.saaj.soap.SOAPPartImpl
    getContentAsStream
    GRAVE: SAAJ0547: Error while trying to externalize
    16-feb-2007 11:00:21 com.sun.xml.messaging.saaj.soap.MessageImpl
    saveChanges
    GRAVE: SAAJ0539: Unable to get header stream in saveChanges
    16-feb-2007 11:00:21 com.sun.xml.messaging.saaj.soap.MessageImpl
    saveChanges
    GRAVE: SAAJ0540: Error during saving a multipart message
    It's a web application and i'm debugging with OC4J Standalone from
    Jdeveloper. The Libraries are the libs of JAX-WS 2.0 and the orion-
    web.xml file has:
    <web-app-class-loader search-local-classes-first="true"
    include-war-manifest-class-path="true"/>
    the exception stack:
    07/02/16 11:00:59 java.lang.Exception: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Error during saving a multipart message
    07/02/16 11:00:59 at genws.MotorXML.getSOAPMessageFromSource(MotorXML.java:443)
    07/02/16 11:00:59 at genws.MotorXML.executeWS(MotorXML.java:232)
    07/02/16 11:00:59 at PDFController.process(PDFController.java:321)
    07/02/16 11:00:59 at es.jcyl.pdf.PDFServletEngine.service(PDFServletEngine.java:114)
    07/02/16 11:00:59 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    07/02/16 11:00:59 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
    07/02/16 11:00:59 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    07/02/16 11:00:59 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    07/02/16 11:00:59 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    07/02/16 11:00:59 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    07/02/16 11:00:59 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    07/02/16 11:00:59 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    07/02/16 11:00:59 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    07/02/16 11:00:59 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    07/02/16 11:00:59 at java.lang.Thread.run(Thread.java:595)
    07/02/16 11:00:59 Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Error during saving a multipart message
    07/02/16 11:00:59 at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1126)
    07/02/16 11:00:59 at es.jcyl.genws.MotorXML.getSOAPMessageFromSource(MotorXML.java:437)
    07/02/16 11:00:59 ... 14 more
    07/02/16 11:00:59 Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to get header stream in saveChanges:
    07/02/16 11:00:59 at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1096)
    07/02/16 11:00:59 ... 15 more
    07/02/16 11:00:59 Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: SOAP exception while trying to externalize:
    Anybody can help me?
    Thanks

    The error was in the execution of OC4J embebbed. OC4J uses its own libraries for web services and xml.
    You can deploy an application with JAX-WS 2.0 if you add this java option:
    -Xbootclasspath/p:<dir_libs>\xml-apis.jar;<dir_libs>\xercesImpl.jar;<dir_libs>\xalan.jar;<dir_libs>\saaj.api.jar
    And the jars of JAX-WS are added as libraries to the application.
    With this solution you solve the problem: OC4J uses this libraries, not their owns, include the xml libraries.

  • Pkd portals registering producer in OC4J standalone envirnment  Error

    when I'm trying to register producer for pdk portal in OC4J standalone envirnment its throwing the follwoing
    ERROR :
    I have done all the setup as per insteruction mentioned in installation guide of Oracle PKD.
    as such following :
    Within your OC4J home directory, create the following directories if they don't exist, or make
    backup copies if they do exist:
    $OC4J_HOME/jlib
    $OC4J_HOME/portal/jlib
    $OC4J_HOME/webcache/jlib
    Notes:
    $OC4J_HOME is the root directory of your OC4J installation. You will find directories named
    "bin", "j2ee", "javacache", "jdbc" etc. under this directory.
    Copy all the latest PDK-Java jar files to your OracleAS home. The jar files are included in
    $unzip_directory/pdk/libcommon/.
    copy $unzip_directory/pdk/libcommon/portal/jlib/* to $OC4J_HOME/portal/jlib/
    copy $unzip_directory/pdk/libcommon/webcache/jlib/* to $OC4J_HOME/webcache/jlib/
    copy $unzip_directory/pdk/libcommon/jlib/* to $OC4J_HOME/jlib/
    Notes:
    $unzip_directory denotes the directory where you have unzipped the pdk.zip.
    Add the following dependent library references to the global application.xml file. This file is
    found at the following location:
    $OC4J_HOME/j2ee/home/config/application.xml
    Dependent library references:
    <library path="../../../portal/jlib/pdkjava.jar"/>
    <library path="../../../portal/jlib/portaltools.jar"/>
    <library path="../../../portal/jlib/ptlshare.jar"/>
    <library path="../../../portal/jlib/tidy.jar"/>
    <library path="../../../jlib/ldapjclnt9.jar"/>
    <library path="../../../jlib/regexp.jar"/>
    <library path="../../../jlib/share.jar"/>
    <library path="../../../jlib/uix2.jar"/>
    <library path="../../../jlib/ojmisc.jar"/>
    <library path="../../../webcache/jlib/jawc.jar"/>
    <library path="../../home/jazn.jar"/>
    with above setup I'm able to deploy pkdApp.war onto the OC4j Standalone server :
    when trying to register producer I'm
    getting the following error:
    500 Internal Server Error
    java.lang.NullPointerException at
    oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.showTestPage(Unknown Source) at
    oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.handleHttp(Unknown Source) at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at
    java.lang.reflect.Method.invoke(Method.java:585) at
    oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Source) at
    oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source) at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at
    com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) at
    com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:3
    70) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453) at
    com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221) at
    com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122) at
    com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111) at
    oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at
    com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.
    java:303) at java.lang.Thread.run(Thread.java:595)

    when I'm trying to register producer for pdk portal in OC4J standalone envirnment its throwing the follwoing
    ERROR :
    I have done all the setup as per insteruction mentioned in installation guide of Oracle PKD.
    as such following :
    Within your OC4J home directory, create the following directories if they don't exist, or make
    backup copies if they do exist:
    $OC4J_HOME/jlib
    $OC4J_HOME/portal/jlib
    $OC4J_HOME/webcache/jlib
    Notes:
    $OC4J_HOME is the root directory of your OC4J installation. You will find directories named
    "bin", "j2ee", "javacache", "jdbc" etc. under this directory.
    Copy all the latest PDK-Java jar files to your OracleAS home. The jar files are included in
    $unzip_directory/pdk/libcommon/.
    copy $unzip_directory/pdk/libcommon/portal/jlib/* to $OC4J_HOME/portal/jlib/
    copy $unzip_directory/pdk/libcommon/webcache/jlib/* to $OC4J_HOME/webcache/jlib/
    copy $unzip_directory/pdk/libcommon/jlib/* to $OC4J_HOME/jlib/
    Notes:
    $unzip_directory denotes the directory where you have unzipped the pdk.zip.
    Add the following dependent library references to the global application.xml file. This file is
    found at the following location:
    $OC4J_HOME/j2ee/home/config/application.xml
    Dependent library references:
    <library path="../../../portal/jlib/pdkjava.jar"/>
    <library path="../../../portal/jlib/portaltools.jar"/>
    <library path="../../../portal/jlib/ptlshare.jar"/>
    <library path="../../../portal/jlib/tidy.jar"/>
    <library path="../../../jlib/ldapjclnt9.jar"/>
    <library path="../../../jlib/regexp.jar"/>
    <library path="../../../jlib/share.jar"/>
    <library path="../../../jlib/uix2.jar"/>
    <library path="../../../jlib/ojmisc.jar"/>
    <library path="../../../webcache/jlib/jawc.jar"/>
    <library path="../../home/jazn.jar"/>
    with above setup I'm able to deploy pkdApp.war onto the OC4j Standalone server :
    when trying to register producer I'm
    getting the following error:
    500 Internal Server Error
    java.lang.NullPointerException at
    oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.showTestPage(Unknown Source) at
    oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.handleHttp(Unknown Source) at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at
    java.lang.reflect.Method.invoke(Method.java:585) at
    oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Source) at
    oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source) at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at
    com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) at
    com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:3
    70) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453) at
    com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221) at
    com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122) at
    com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111) at
    oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at
    com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.
    java:303) at java.lang.Thread.run(Thread.java:595)

  • How to lookup EJBs deployed in OC4J from a standalone client application

    Hello all,
    I am trying to lookup an EJB deployed in OC4J 10.1.3 from a standalone client application using the following code:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.PROVIDER_URL, "ormi://localhost:23791");
    env.put(Context.SECURITY_PRINCIPAL, "jazn.com/test");
    env.put(Context.SECURITY_CREDENTIALS, "test");
    Context context = new InitialContext(env);
    Object ref = context.lookup("ejb/Dispatch");
    I get the following error:
    javax.naming.NameNotFoundException: ejb/Dispatch not found
         at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:51)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
    For the lookup string I've also tried:
    "java:comp/env/ejb/Dispatch" and "Dispatch"
    For the Context.PROVIDER_URL property I've also tried:
    opmn:ormi://localhost:6003:instance
    The result is always the same.
    I appreciate if someone could help me with this?
    Thanks,
    Georgi

    Georgi,
    Your question has been discussed many times on this forum. Search the forum archives for "RMIInitialContextFactory".
    The PROVIDER_URL needs to include the name of the deployed application that your EJB is part of, for example:
    env.put(Context.PROVIDER_URL, "ormi://localhost:23791/MyApp");The lookup name has to be the value of the "ejb-name" element in your "ejb-jar.xml" descriptor file.
    Your SECURITY_PRINCIPAL value looks strange to me. Personally, I use "principals" (and not JAZN), so I modified the "application.xml" file (in the "j2ee/home/config" subdirectory) to use "principals". Look for the following comment in that file:
    &lt;!-- Comment out the jazn element to use principals.
          When both jazn and principals are present jazn is used  --&gt;Good Luck,
    Avi.
    Message was edited by:
    Avi Abrami

  • Seems fail on deploying mapviewer on oc4j standalone

    Hi,
    I downloaded MapViewer 10.1.3.3 kit from Oracle website and try to deploy mapviewer.ear with oc4j standalone (10.1.3.1.0).
    I deployed mapviewer.ear with the oc4j. But, I got HTTP 500 Internal Server Error when I go to the following address.
    http://machine_name:8888/mapviewer/omserver?getv=t
    If I sucessfully deploy it, it should display the version and build number. Obviously, http://machine_name:8888/mapviewer did not work.
    I thought that I deployed it according to User's Guide for Oracle MapViewer. From oc4jadmin screen, the mapviewer status is running.
    Would you kindly advise me what other things I need to do?

    The issue was port number.
    I used oc4j which comes with OBI EE. The oc4j port# is 9704.
    When I switched the port# to 9704, it displayed the build and version number.
    http://localhost:9704/mapviewer/omserver?getv=t
    Thanks

  • JDev 9.0.3.1 deployment to OC4J 10g standalone possible

    Hello,
    we have problems using JDev 9.0.3.1 to deploy a simple test-servlet to OC4J 10g 9.0.4 (PDK-prebundled) standalone.
    So is the question is, wether this should be in principle possible?
    When yes, how must I configure the deployment descriptor resp. what modificatios must i apply to the "OC4J Deployment command line". I have noticed that the admin.jar files on PC and OC4J-server are NOT identical:
    -------from the Manifest from JDev9031-----------------
    Manifest-Version: 1.0
    Created-By: 1.3.1 (Sun Microsystems, Inc. )
    Main-Class: com.evermind.client.orion.Oc4jAdminConsole
    Class-Path: oc4j.jar
    Name: "Oracle Console-based Admin"
    Implementation-Title: "com.evermind.client"
    Implementation-Version: "9.0.4.0.0"
    Implementation-Vendor: "Oracle Corporation, Inc."
    -------form the Manifest from OC4J---------------------
    Manifest-Version: 1.0
    Created-By: 1.3.1 (Sun Microsystems, Inc. )
    Main-Class: com.evermind.client.orion.Oc4jAdminConsole
    Class-Path: oc4j.jar
    Name: "Oracle Console-based Admin"
    Implementation-Title: "com.evermind.client"
    Implementation-Version: "9.0.4.0.0"
    Implementation-Vendor: "Oracle Corporation, Inc."
    So I have tried several combinations with the admin.jar and oc4j.jar from the
    OC4J-server in the PC for use with the JDeveloper, but I got only error messages.
    This problem might also be an issue with the JDKs:
    The Jdeveloper is running on a Windows2000-PC; java version "1.3.1_02". The OC4J 10g is running on a Sun Sparc with Solaris 8, On this server /usr/local/jdk/j2sdk1.4.1_07/bin/java shows a version "1.4.1_07".
    Regards
    Michael

    Thany you Steve,
    I think you are right. I have had created a new directory under JDeveloper and copied admin.jar and oc4j.jar (because admin.jar consist only of an MF-File, that points to the class com.evermind.client.orion.Oc4jAdminConsole which is included in oc4j.jar) from OC4J 10g. The new connection points to this directory.
    But I am not able to include this oc4j.jar-version of OC4J in the classpath of the JDeveloper. This should be possible in the deployment descriptor. Under Platform/OC4J Standalone, there is a tab. "Deploying EAR" with the entry "OC4J Deployment command line"
    ${java} ${jvm.max.heap.size} -jar ${admin.jar}
    ${oc4j.url} ${username} ${password}
    -deploy -file ${ear.file}
    -deploymentName ${j2ee.app.name}
    Still I got the following error message from the log-window of JDev 9031
    ----------8<------------------8<-------------------
    Invoking OC4J admin tool...
    C:\Programme\Oracle\JDeveloper9031\jdk\jre\bin\javaw.exe -jar C:\Programme\Oracle\JDeveloper9031\Condor\admin.jar ormi://c3po.isae.condor-versicherungen.de:23791 admin **** -deploy -file C:\Programme\Oracle\JDeveloper9031\jdev\mywork\244_19_Aktion\TestDeploy\deploy\C3PO_OC4J_9_0_4-PDK3.ear -deploymentName 2ndC3PO_OC4J_9_0_4-PDK
    Error: javax.management.NotCompliantMBeanException
    java.lang.NoClassDefFoundError: javax.management.NotCompliantMBeanException
         com.evermind.server.ThreadState com.evermind.server.ThreadState.getCurrentState()
              ThreadState.java:206
         void com.evermind.server.rmi.RMIConnection.checkServletCaller()
              RMIConnection.java:3441
    ........and so on................................
    ----------8<------------------8<-------------------
    Has someone an idea. Otherwise, I must "upgrade" to JDev 9.0.4 as suggested by METALINK....
    Best Regards
    Michael

  • Error creating table on MS SQL Server with OC4J standalone

    Hi there,
    I'm trying to deploy an EJB application to OC4J standalone using a MS SQL Server 2000 database, MS SQL Server JDBC Drivers and OC4J 9.0.3 standalone but i keep getting this error:
    Auto-creating table: create table Functieprofiel_competentieNiveau_CompetentieNiveau_functieprofiel_LBOS_Ear_LBOS_Ejb (Functieprofiel_FUNCTIE_ID bigint identity not null, COMP_ID bigint identity null, NIVEAU_ID sql_variant(255) null)
    Error creating table: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Could not create IDENTITY attribute on nullable column 'COMP_ID', table 'Functieprofiel_competentieNiveau_CompetentieNiveau_functieprofiel_LBOS_Ear_LBOS_Ejb'.
    Deployment succeeds after this but the application does not run properly. Can anyone help me with this? I have no idea what to do.
    Rob Heikoop

    Rb -
    if you want to stop the auto-creation of tables, try going to the j2ee/home/config directory of your OC4J installation. Open the application.xml file and modify the attribute autocreate-tables to be set to false.
    That should stop the default table creation as a global property, unless you specifically override it at the specific deployed application level.
    You can then manually create the tables on the sql-server database instance. If you keep the column names the same as the field names in the bean, then you shouldn't need to do any manual mapping. To be sure of the column names to use, take a look in the orion-ejb-jar.xml which gets generated in the j2ee/home/application-deployments/<app-name>/<ejb-module-name> to see what table/column names the generator defaulted to
    -steve-
    -steve-

Maybe you are looking for