Deploy standalone OC4J problem
I'm pretty new Jdeveloper So Please help me.
I'm very strange about my deploy.
I downloaded OC4J in c:/Oc4J, and I did ADF Runtime Installer for Standalone OC4J.
I can deploy my local host sucessfully.
So now I tyied to deploy to our compuany server.
I created application server, I put company's hostname at hostname when I created application server.
And I tried to deploy my application to the application server.
I got error.
This is very strange for me.
I downloaded OC4J at C:\OC4J_home, and I put OC4J_HOME for Oc4J root directory.
But this is working with D drive like below whenere I try to deploy my application.
What should I do?
Can I change this directory?
---- Deployment started. ---- Dec 11, 2006 11:43:08 AM
Target platform is Standalone OC4J 10g 10.1.3 (dev).
Running dependency analysis...
Wrote JAR file to C:\Documents and Settings\train2.SDC\Desktop\jdevstudio10131\jdev\mywork\customerMain1204\Model\deploy\ModelArchive.jar
Wrote WAR file to C:\Documents and Settings\train2.SDC\Desktop\jdevstudio10131\jdev\mywork\customerMain1204\ViewController\deploy\CustomerMaintenance.war
Wrote EAR file to C:\Documents and Settings\train2.SDC\Desktop\jdevstudio10131\jdev\mywork\customerMain1204\ViewController\deploy\CustomerMaintenance.ear
Uploading file CustomerMaintenance.ear ...
Uploading file CustomerMaintenance.ear ...
Uploading file CustomerMaintenance.ear ...
Uploading file CustomerMaintenance.ear ...
Uploading file CustomerMaintenance.ear ...
Uploading file CustomerMaintenance.ear ...
Uploading file CustomerMaintenance.ear ...
Uploading file CustomerMaintenance.ear ...
Application Deployer for CustomerMaintenance STARTS.
Copy the archive to D:\oc4j\j2ee\home\applications\CustomerMaintenance.ear
Initialize D:\oc4j\j2ee\home\applications\CustomerMaintenance.ear begins...
Unpacking CustomerMaintenance.ear
Done unpacking CustomerMaintenance.ear
Unpacking CustomerMaintenance.war
Done unpacking CustomerMaintenance.war
Initialize D:\oc4j\j2ee\home\applications\CustomerMaintenance.ear ends...
Starting application : CustomerMaintenance
Initializing ClassLoader(s)
Initializing EJB container
Loading connector(s)
Starting up resource adapters
Initializing EJB sessions
Committing ClassLoader(s)
Initialize CustomerMaintenance begins...
Initialize CustomerMaintenance ends...
Started application : CustomerMaintenance
Binding web application(s) to site default-web-site begins...
Binding CustomerMaintenance web-module for application CustomerMaintenance to site default-web-site under context root customerMain
Exception: NoClassDefFoundError: oracle/jbo/JboException
Operation failed with error:
oracle/jbo/JboException
Deployment failed
Elapsed time for deployment: 1 minute, 18 seconds
#### Deployment incomplete. #### Dec 11, 2006 11:44:24 AM
S,
Yes, causes a bit of a problem, the fact that all Oracle products tend to rely on the ORACLE_HOME environment variable.
In any case, this issue has been discussed previously in this forum. I suggest you search the forum archives for "ORACLE_HOME".
Good Luck,
Avi.
Similar Messages
-
10.1.3 EA1 library deployment to standalone oc4j problem
I'm having trouble getting a library to deploy with EA1. It deployed OK with 10.1.3 DP.
The deployment consists of the ViewController and Model projects (as created by jdev) plus a third project I created called businessobjects.
The problem lies with a library that fails to be deployed but is needed by the Model and businessobjects projects. This results in "Missing class" error messages. (BTW, the library consists of a directory and a jar).
With 10.1.3 EA1 under War Deployment Profile Properties>WEB-INF/lib>Contributers, the library does not show up whereas it does with 10.1.3 DP. As far as I can see it looks like I've specified all the dependancies and check-marked the appropriate boxes but obviously I must be doing something wrong.
The application runs as expected within jdev.
Anyone have any specific places I should double check?
Regards,
Al MalinDon't worry,
It just means that the embedded server inside JDeveloper is a developer preview version. The OC4J team uses a different way to name their "early access" releases. -
Problems running deployed JHeadstart Application on Standalone OC4J
Hi everybody,
I'm trying to testing my app made on JHeadStart in a Standalone OC4J AS (10.1.2). I could deploy the application, but now I'm receiving the error when I try to access it: (http://server:port/app/Startapp.do)
500 Internal Server Error
java.lang.NoClassDefFoundError: oracle/ord/im/OrdHttpUploadFile at oracle.jheadstart.controller.strutsadf.action.JhsStrutsPageLifecycleFactory.getJSPLifeCycle(JhsStrutsPageLifecycleFactory.java:83) at oracle.jheadstart.controller.strutsadf.action.JSPLifecycleFactory.getPageLifecycle(JSPLifecycleFactory.java:40) at oracle.adf.controller.struts.actions.DataActionMapping.freeze(DataActionMapping.java:212) at org.apache.struts.config.impl.ModuleConfigImpl.freeze(ModuleConfigImpl.java:503) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:474) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at oracle.jheadstart.controller.strutsadf.JhsActionServlet.init(JhsActionServlet.java:195) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpApplication.loadServlet(HttpApplication.java:2141) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpApplication.findServlet(HttpApplication.java:4582) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2608) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:640) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Unknown Source)
Is something missing in my Standalone OC4J installation regarding JHeadstart that I missed?
Thanks,Hi!
I have a same problem.
I use Standalone OC4J AS (9.0.4), Jdev 10.1.2.0.0, j2sdk1.4.2._07, Oracle db 10.1.0
After install and startup oc4j i run jdev ADF runinstaller (was succesefull)
After deploy my and run my-app in browser i see my fist page and when i try to login in db i see that
500 Internal Server Error
java.lang.NoClassDefFoundError: oracle/ord/im/OrdHttpUploadFile
at oracle.adf.controller.struts.actions.DefaultStrutsPageLifecycleFactory.getJSPLifeCycle(DefaultStrutsPageLifecycleFactory.java:34)
at oracle.adf.controller.struts.actions.DefaultStrutsPageLifecycleFactory.getPageLifecycle(DefaultStrutsPageLifecycleFactory.java:27)
at oracle.adf.controller.struts.actions.DataActionMapping.freeze(DataActionMapping.java:212)
at org.apache.struts.config.impl.ModuleConfigImpl.freeze(ModuleConfigImpl.java:503)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:474)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpApplication.loadServlet(HttpApplication.java:2094)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpApplication.findServlet(HttpApplication.java:4523)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2561)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:640)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
In embeded of jdev my app is worked.
I have red above topic but i understand how do it
Help me anybody
Message was edited by:
user471907
Message was edited by:
user471907 -
Problems deploying PL/SQL Web Service example to standalone OC4J
I have built the PL/SQL Web Service example EMP_FETCHER in the tutorials that come with JDeveloper. When run with the embedded OC4J container, the web service works ok using the autogenerated client. However, while I can then successfully deploy the web service to a standalone OC4j instance running on a separate database server, when I point the client at it, a NoSuchMethodError exception is thrown by oc4j with the following stacktrace;
at tutorial_jdbc_connection.Emp_fetcher.get_emp(Emp_fetcher.sqlj:43)
at tutorial_jdbc_connection.__Emp_fetcherSPWrapper.invokeMethod(__Emp_fetcherSPWrapper.java:73)
at oracle.j2ee.ws.InvocationWrapper.invoke(InvocationWrapper.java:98)
at oracle.j2ee.ws.RpcWebService.doPost(RpcWebService.java:359)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:652)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
Looks like I'm missing some support libraries but I'm unsure which ones they are, and why they wouldn't be part of a standard OC4J installation.
I've tried including the SQLJ runtime and Oracle JDBC library support in the deployment and redeploying but the same error persists.
Any assistance would be appreciated
Regards
MichaelYou have an old version of java installed. That is what "java.lang.UnsupportedClassVersionError" tells.
-
Standalone OC4J deployment problem
Hi all,
I am experience an issue while trying to start OC4J.
I installed the Java EE 5.0 SDK on my machine and trying to run the oc4j, it is giving me the following error message
E:\OC4J\j2ee\home>java -jar oc4j.jar
Sep 15, 2009 1:10:23 PM com.evermind.server.XMLDataSourcesConfig parseRootNode
INFO: Legacy datasource detected...attempting to convert to new syntax.
09/09/15 13:10:30 WARNING: EJBContainer.postInit Error generating wrappers for f
ile:/E:/OC4J/j2ee/home/applications/admin_ejb.jarjava.lang.InstantiationExceptio
n: javac.exe not found under C:\Program Files\Java\jre1.5.0_04, please use a val
id jdk or specify the location of your java compiler in server.xml using the <ja
va-compiler .../> tag
at com.evermind.compiler.ExternalJavac.getJdkExecutable(ExternalJavac.ja
va:359)
at com.evermind.compiler.ExternalJavac.getSystemJavac(ExternalJavac.java
:392)
at com.evermind.compiler.ExternalJavac.getJavacCompiler(ExternalJavac.ja
va:248)
at com.evermind.compiler.ExternalJavac.checkIfValid(ExternalJavac.java:7
36)
at com.evermind.server.ApplicationServer.getCompiler(ApplicationServer.j
ava:2589)
at com.evermind.server.ejb.compilation.Compilation.<init>(Compilation.ja
va:155)
at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:889)
at com.evermind.server.ApplicationStateRunning.initializeApplication(App
licationStateRunning.java:235)
at com.evermind.server.Application.setConfig(Application.java:460)
at com.evermind.server.Application.setConfig(Application.java:361)
at com.evermind.server.ApplicationServer.initializeSystemApplication(App
licationServer.java:1612)
at com.evermind.server.ApplicationServer.initializeAutoDeployedApplicati
ons(ApplicationServer.java:1599)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.jav
a:1034)
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLa
uncher.java:131)
at java.lang.Thread.run(Unknown Source)
2009-09-15 13:10:30.296 ERROR J2EE EJB-03027 [system] An error occured deploying
EJB module: java.lang.InstantiationException: Error generating wrappers for fil
e:/E:/OC4J/j2ee/home/applications/admin_ejb.jar: javac.exe not found under C:\Pr
ogram Files\Java\jre1.5.0_04, please use a valid jdk or specify the location of
your java compiler in server.xml using the <java-compiler .../> tag
09/09/15 13:10:30 WARNING: Application.setConfig Application: system is in faile
d state as initialization failed.
java.lang.InstantiationException: Error initializing ejb-modules: Error generati
ng wrappers for file:/E:/OC4J/j2ee/home/applications/admin_ejb.jar: javac.exe no
t found under C:\Program Files\Java\jre1.5.0_04, please use a valid jdk or speci
fy the location of your java compiler in server.xml using the <java-compiler ...
/> tag
09/09/15 13:10:30 Error initializing server: Application: system is in failed st
ate as initialization failed
09/09/15 13:10:31 Fatal error: server exiting
I found a thread with the same issue but, I could not figure out the issue.
Here the environmental variable that are exisiting in the system properties:
Under User Variables for Administrator:
PATH: C:\Sun\SDK\jdk\bin (SUN is the folder where I installed Java EE 5.0 SDK)
Under System Variables:
ODI_JAVA_HOME: E:\OraHome_1\jre\1.4.2
ORACLE_HOME: E:\OC4J ( This is where I extracted the oc4j_extended_101350.zip folder)
JAVA_HOME: C:\Sun\SDK\jdk\bin (Again, this is where I have installed the Java EE 5 SDK )
This is the first time I am installing a Java software and finding it difficult in figuring this out. Please help me outhi user11180938
This is what I have in a start-oc4j-101340.bat file to start a standalone OC4J:
title OC4J 10.1.3.4.0
set ORACLE_HOME=D:\oracle\oc4j_101340
set JAVA_HOME=D:\oracle\jdevstudio10134\jdk
set OC4J_JVM_ARGS=-XX:PermSize=256m -XX:MaxPermSize=512m
%ORACLE_HOME%\bin\oc4j.cmd -startIt uses "oc4j.cmd -start" and sets some environment variable to what I need them to be.
Maybe this can help.
(tip : You can use "Your Control Panel" to make your name visible in forum posts.)
success
Jan Vervecken -
Deploy ADF application to standalone OC4J 11g
Hi people!
I found some threads into the forums that deal with the subject but I did not find any solution, so I post a new thread...
In fact, I'd like to deploy a "war" on a standalone oc4j 11g.
The application was built with jdev 11g TP4.
I can't use the ADF runtime Installer of jdev, so I have to copy all the files by myself, but the problem is that I do not find the files in jdev11/BC4J/lib/ that I have to copy in oc4j/BC4J/lib...
There is no adfcm.jar, bc4jdomorcl.jar, etc ...
Is it normal ? Could someone indicate me how to configure the standalone oc4j 11g in order to deploy my "war" ?
Thanks a lot,
romain.
Edited by: Romain Testu on 24 sept. 2008 09:28Hi,
TP4 doesn't have a standalone OC4J.
Try to start embedded oc4j from jdeveloper in standalone mode.
see e.g. Re: Can Jdeveloper TP4 deploy apps to OC4J standalone TP4
BTW: The production release 11g is announced within next week and this release will contain Weblogic Server 10gR3 instead of OC4J.
JDeveloper 11g release this month?
regards
Peter -
Unable to deploy a simple WAR / EAR file on Standalone OC4J instance
All,
This issue is baffling me since yesterday and while I continue to look for options , would appreciate if anyone of you has run into something similar and give me some hints on how to proceed on this ..
I downloaded the Standalone OC4J ( 10.1.3 ) from otn.oracle.com and also downloaded JDK 1.5 Update 12 from the Sun Website and installed it on my local
Windows XP machine. Everything works well and the application gets deployed.
I then copied the 10.1.3 Standalone OC4J to the Solaris 5.9 box which already
has JDK 1.5 Update 12 installed. We extracted the OC4J to its own directory , set the Java_Home and the Oracle_Home environment variables and were able to
startup the OC4J instance.
However when trying to deploy even a simple HelloWorld.jsp file packaged as an EAR or WAR , we get these errors..
[Aug 8, 2008 9:40:27 AM] Application Deployer for CISS STARTS.
[Aug 8, 2008 9:40:27 AM] Copy the archive to /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/CISS.ear
[Aug 8, 2008 9:40:28 AM] Initialize /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/CISS.ear begins...
[Aug 8, 2008 9:40:28 AM] Unpacking CISS.ear
[Aug 8, 2008 9:40:28 AM] Error while unpacking CISS.ear java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:203) at java.util.jar.JarFile.(JarFile.java:132) at java.util.jar.JarFile.(JarFile.java:97) at oracle.oc4j.util.FileUtils.unjar(FileUtils.java:309) at oracle.oc4j.util.FileUtils.autoUnpack(FileUtils.java:488) at com.evermind.server.deployment.EnterpriseArchive.(EnterpriseArchive.java:234) at oracle.oc4j.admin.internal.ApplicationDeployer.initArchive(ApplicationDeployer.java:412) at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:187) at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93) at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52) at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298) at java.lang.Thread.run(Thread.java:595)
[Aug 8, 2008 9:40:28 AM] Operation failed with error: Unable to find/read file META-INF/application.xml in /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/CISS (META-INF/application.xml)
Using the above error messages , I certainly do not find the CISS.ear file getting copied to /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/CISS.ear
which explains the rest of the messages.
I have tried placing the EAR file both remote and local on the Application Server box but the results remain the same. Assuming it might be a permissions issue , we have opened up all the permissions on this OC4J home ( recursively )
to everyone ..
Is there a specific version of tar / unzip / jar required to deploy EARs / WARs on Solaris 5.9 running JDK 1.5 Update 12.
We had some issues when extracting OC4J to its directory but there were no errors displayed on the screen ... Only when we tried starting up the OC4J instance , it started complaining about missing XML files .. This was resolved by manually extracting the XML's from the corresponding jars and placing them in the proper directories ..
Also looked at Bug:6330834 but am not very sure if this applies to our case because all these drives are local to the Sun box.
Other than attempting a reinstall and opening an Service Request with Oracle , I am running out of ideas at this time ..
So any ideas / hints would be gladly accepted :)
VishwaWhen you say:
I then copied the 10.1.3 Standalone OC4J to the Solaris 5.9 box which already has JDK 1.5 Update 12 installed. We extracted the OC4J to its own directory , set the Java_Home and the Oracle_Home environment variables and were able to
startup the OC4J instance.
We had some issues when extracting OC4J to its directory but there were no errors displayed on the screen ... Only when we tried starting up the OC4J instance , it started complaining about missing XML files .. This was resolved by manually extracting the XML's from the corresponding jars and placing them in the proper directories ..
It sounds like you have some funky issues there with those missing XML files -- that is not expected or normal.
Do you mean you copied the same oc4j_extended.zip to the server and unzipped it, or you zipped up the directories you were using on the Windows box, copied that over, and unzipped it?
I don't know of any problems with Solaris, JDK5, U12.
What about if you do this to remove any issues with the remote copy aspect of the deployment.
1. Stop OC4J.
2. Manually copy CISS.ear to /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/
3. Edit the j2ee/home/config/server.xml file and add the entry to deploy the application
4. Edit the j2ee/home/config/default-web-site.xml and bind any web-modules you need.
5. Start the server and see what happens -- the application should be deployed.
Also, what happens if you use the $JAVA_HOME/bin/jar to try and view the contents of the CISS.ear file?
-steve- -
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 -
JspParse Error when trying to run jsp/jspx page deployed on standalone OC4J
I have ADF Faces Application, which is developed with JDev 11 TP3.
I have deployed the application to Standalone OC4J Server, packed within JDeveloper 11 TP3.
The problem comes, when i try to acess my login jsp or other JSPX page,then i receive the following error on the standalone OC4J Server console:
for the JSP:
JSP Servlet Error: Internal Error, registered Directive handlers MUST descend from JspDirective
oracle.jsp.parse.JspParseException: /login.jsp : Line 4,
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
The content of my JSP page (login.jsp) is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1251"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
for JSPX:
Directive handlers must descend from JSP Directive..
But i have:
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=windows-1251"/>
That works fine with JDev embedded OC4J.
Thank you in advance,
Krasimir
Message was edited by:
K.PenevSame trouble. Anyone have solution?
JDeveloper 11 TP4
OC4J 11 TP4 from this http://www.oracle.com/technology/tech/java/oc4j/index.html
Do this instruction http://www.oracle.com/technology/products/jdev/tips/muench/oc4j11gtp/index.html
Nothing to change.
Message was edited by:
user644372 -
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? -
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. -
Unable to deploy portlet into standalone oc4j
Hi,
I am very new to the portal development and I have been following the portal development/deployment instructions given on oracle for developing a Struts based portlet.
I have created the a new application server connection to the standalone oc4j 10g 10.1.3 and I have also created the deployment profile.
But when I try to deploy my application to this standalone connection I always receive the following error. Please help me find a solution for this as I have no idea why this is happening:
java.io.IOException: The process cannot access the file because another process has locked a portion of the file
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:194)
at oracle.jdevimpl.deploy.JarUtil.initStoredZipEntry(JarUtil.java:999)
at oracle.jdevimpl.deploy.JarUtil.writeJarFile(JarUtil.java:720)
at oracle.jdevimpl.deploy.war.WarDeployer.writeWarFile(WarDeployer.java:210)
at oracle.jdevimpl.deploy.war.WarDeployer.deploy(WarDeployer.java:67)
at oracle.jdevimpl.deploy.ModulePackager.deploy(ModulePackager.java:139)
at oracle.jdevimpl.deploy.DynamicDeployer.deploy(DynamicDeployer.java:84)
at oracle.jdevimpl.deploy.DynamicDeployer.deploy(DynamicDeployer.java:84)
at oracle.jdevimpl.deploy.BatchDeployer.deploy(BatchDeployer.java:46)
at oracle.jdevimpl.deploy.DynamicDeployer.deploy(DynamicDeployer.java:84)
at oracle.jdevimpl.deploy.BatchDeployer.deploy(BatchDeployer.java:46)
at oracle.jdevimpl.deploy.DynamicDeployer.deploy(DynamicDeployer.java:84)
at oracle.jdevimpl.deploy.J2eeProfileDt$CleanupTransientProfilesDeployer.deploy(J2eeProfileDt.java:71)
at oracle.jdevimpl.deploy.FinalDeployer.deploy(FinalDeployer.java:48)
at oracle.jdevimpl.deploy.AsyncDeployer$1.runImpl(AsyncDeployer.java:67)
at oracle.jdevimpl.deploy.AsyncDeployer$1.run(AsyncDeployer.java:53)
*** Warning: Caught class java.io.IOException while trying to process jar entry whose URL of origin is 'file:/C:/jdevstudio10133/j2ee/home/persistence/Oc4jJmsExceptionQueue'. Skipping this entry.
java.io.IOException: The process cannot access the file because another process has locked a portion of the file
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:194)
at oracle.jdevimpl.deploy.JarUtil.initStoredZipEntry(JarUtil.java:999)
at oracle.jdevimpl.deploy.JarUtil.writeJarFile(JarUtil.java:720)
at oracle.jdevimpl.deploy.war.WarDeployer.writeWarFile(WarDeployer.java:210)
at oracle.jdevimpl.deploy.war.WarDeployer.deploy(WarDeployer.java:67)
at oracle.jdevimpl.deploy.ModulePackager.deploy(ModulePackager.java:139)
at oracle.jdevimpl.deploy.DynamicDeployer.deploy(DynamicDeployer.java:84)
at oracle.jdevimpl.deploy.DynamicDeployer.deploy(DynamicDeployer.java:84)
at oracle.jdevimpl.deploy.BatchDeployer.deploy(BatchDeployer.java:46)
at oracle.jdevimpl.deploy.DynamicDeployer.deploy(DynamicDeployer.java:84)
at oracle.jdevimpl.deploy.BatchDeployer.deploy(BatchDeployer.java:46)
at oracle.jdevimpl.deploy.DynamicDeployer.deploy(DynamicDeployer.java:84)
at oracle.jdevimpl.deploy.J2eeProfileDt$CleanupTransientProfilesDeployer.deploy(J2eeProfileDt.java:71)
at oracle.jdevimpl.deploy.FinalDeployer.deploy(FinalDeployer.java:48)
at oracle.jdevimpl.deploy.AsyncDeployer$1.runImpl(AsyncDeployer.java:67)
at oracle.jdevimpl.deploy.AsyncDeployer$1.run(AsyncDeployer.java:53)
*** Warning: Caught class java.io.IOException while trying to process jar entry whose URL of origin is 'file:/C:/jdevstudio10133/j2ee/home/persistence/jms.state'. Skipping this entry.Can anyone please help me? I have tried everything but I am unable to resolve this problem...
-
Import not found when deploying to Standalone OC4J
Hi,
I'm developing a small application, consisting of a few classes and a few jsp pages. I'm using JDeveloper 9.0.3.1 with the sun j2sdk 1.4.2 for windows.
I test my application with the embedded OC4J in Jdeveloper, and it runs fine. But when I deploy it to the standalone OC4J, I get this error:
500 Internal Server Error
OracleJSP: oracle.jsp.provider.JspCompileException:
Errores de compilación:F:\programas\Oracle\jdeveloper\j2ee\home\application-deployments\Workspace4-WSWrappers-WS\WebServices\persistence\_pages\\_integrate2.java
Note: sun.tools.javac.Main has been deprecated.
F:\programas\Oracle\jdeveloper\j2ee\home\application-deployments\Workspace4-WSWrappers-WS\WebServices\persistence\_pages\_integrate2.java:6: Class webservices.Integrator not found in import.
import webservices.Integrator;
^
1 error, 1 warning
This error does not happen when using the embedded OC4J server, only when deploying to the standalone. Since leaving JDeveloper up all times to use de app is not an option :) I really would appreciate any help towards solving this matter. I suspect it has to do with deployment options and whatnot, but I can't find anything wrong. Of course, I'm fairly new to this (jsp/OC4J), so it can be an obvious mistake right under my nose.
thanks
JavierFixed. The problem was my Standalone OC4J was not properly installed, AND I was doin the deplyment wrong. Now it works by creating a war file, deploying to the war file and THEN deploying to the OC4J Standalone connection.
So, if you start seeing "import not found" when deploying to standalone and it works on the embedded, check you war files to see if they REALLY are packing the classes they are supposed to carry. -
Deploying OW4J to standalone oc4j
Hi,
I am trying to deploy the requisition demo for standalone oc4j server. I am using oc4j provided in the jdev905 preview. At step 3: run deploy.bat, in README-OW4JPreview.html first I had to edit oc4j_home/config/datasource.xml and add the data-source tag (below) to get around the problem described in post:
Re: OW4J Documentaion
<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="OW4JDS"
location="jdbc/OW4JCoreDS"
xa-location="jdbc/xa/OW4JXADS"
ejb-location="jdbc/OW4JDS"
connection-driver="oracle.jdbc.driver.OracleDriver"
username="dbuser"
password="dbpwd"
url="jdbc:oracle:thin:@dbmachine:dbport:sid"
inactivity-timeout="30"
/>
But now I get the error message below. How do I get around this?
03/12/26 14:40:05 Notification ==> Application Deployer for ow4jdemo STARTS [ 20
03-12-26T14:40:05.154CET ]
03/12/26 14:40:05 Notification ==> Undeploy previous deployment
03/12/26 14:40:05 Notification ==> Copy the archive to C:\jdev905\j2ee\home\appl
ications\ow4jdemo.ear
03/12/26 14:40:05 Notification ==> Unpack ow4jdemo.ear begins...
03/12/26 14:40:05 Auto-unpacking C:\jdev905\j2ee\home\applications\ow4jdemo.ear.
.. done.
03/12/26 14:40:05 Notification ==> Unpack ow4jdemo.ear ends...
03/12/26 14:40:05 Notification ==> Initialize ow4jdemo.ear begins...
03/12/26 14:40:05 Auto-unpacking C:\jdev905\j2ee\home\applications\ow4jdemo\ow4j
demo.war... done.
03/12/26 14:40:06 Notification ==> Initialize ow4jdemo.ear ends...
03/12/26 14:40:06 Notification ==> Initialize ow4jdemo begins...
03/12/26 14:40:06 Copying default deployment descriptor from archive at C:\jdev9
05\j2ee\home\applications\ow4jdemo\ow4jdemo/WEB-INF/orion-web.xml to deployment
directory C:\jdev905\j2ee\home\application-deployments\ow4jdemo\ow4jdemo...
03/12/26 14:40:06 Notification ==> Initialize ow4jdemo ends...
03/12/26 14:40:06 ArchiveContext: containsDirectory(META-INF) plus '/' found in
C:\jdev905\j2ee\home\applications\ow4jdemo\demoejb.jar in entry META-INF/MANIFES
T.MF
03/12/26 14:40:06 Copying default deployment descriptor from archive at C:\jdev9
05\j2ee\home\applications\ow4jdemo\demoejb.jar/META-INF/orion-ejb-jar.xml to dep
loyment directory C:\jdev905\j2ee\home\application-deployments\ow4jdemo\demoejb.
jar...
03/12/26 14:40:06 Auto-deploying - demoejb.jar (No previous deployment found)...
03/12/26 14:40:15 Auto-deploying - compiling and loading...
Error deploying file:/C:/jdev905/j2ee/home/applications/ow4jdemo/demoejb.jar hom
es: No javax.jms.Destination found at the specified destination-location (jms/No
tificationQueue) for MessageDrivenBean NotificationMDB
Error in application ow4jdemo: Error loading package at file:/C:/jdev905/j2ee/ho
me/applications/ow4jdemo/demoejb.jar, Error deploying file:/C:/jdev905/j2ee/home
/applications/ow4jdemo/demoejb.jar homes: No javax.jms.Destination found at the
specified destination-location (jms/NotificationQueue) for MessageDrivenBean Not
ificationMDB
03/12/26 14:40:21 done.
oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exc
eption Error in application ow4jdemo: Error loading package at file:/C:/jdev905/
j2ee/home/applications/ow4jdemo/demoejb.jar, Error deploying file:/C:/jdev905/j2
ee/home/applications/ow4jdemo/demoejb.jar homes: No javax.jms.Destination found
at the specified destination-location (jms/NotificationQueue) for MessageDrivenB
ean NotificationMDB
at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(Applica
tionDeployer.java:411)
at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDe
ployer.java:127)
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:73)
at com.evermind.server.administration.DefaultApplicationServerAdministra
tor.internalDeploy(DefaultApplicationServerAdministrator.java:378)
at com.evermind.server.administration.DefaultApplicationServerAdministra
tor.deploy(DefaultApplicationServerAdministrator.java:278)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:484)
---- Embedded exception
java.lang.InstantiationException: Error initializing ejb-module; Exception Error
in application ow4jdemo: Error loading package at file:/C:/jdev905/j2ee/home/ap
plications/ow4jdemo/demoejb.jar, Error deploying file:/C:/jdev905/j2ee/home/appl
ications/ow4jdemo/demoejb.jar homes: No javax.jms.Destination found at the speci
fied destination-location (jms/NotificationQueue) for MessageDrivenBean Notifica
tionMDB
at com.evermind.server.ejb.EJBContainer.throwInstantiationException(EJBC
ontainer.java:2424)
at com.evermind.server.ejb.EJBContainer.postInitBatch(EJBContainer.java:
2408)
at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:2191)
at com.evermind.server.Application.postInit(Application.java:553)
at com.evermind.server.Application.setConfig(Application.java:170)
at com.evermind.server.ApplicationServer.addApplication(ApplicationServe
r.java:1924)
at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(Applica
tionDeployer.java:407)
at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDe
ployer.java:127)
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:73)
at com.evermind.server.administration.DefaultApplicationServerAdministra
tor.internalDeploy(DefaultApplicationServerAdministrator.java:378)
at com.evermind.server.administration.DefaultApplicationServerAdministra
tor.deploy(DefaultApplicationServerAdministrator.java:278)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:484)
03/12/26 14:40:21 Notification ==> Application Deployer for ow4jdemo FAILED: Err
or initializing ejb-module; Exception Error in application ow4jdemo: Error loadi
ng package at file:/C:/jdev905/j2ee/home/applications/ow4jdemo/demoejb.jar, Erro
r deploying file:/C:/jdev905/j2ee/home/applications/ow4jdemo/demoejb.jar homes:
No javax.jms.Destination found at the specified destination-location (jms/Notifi
cationQueue) for MessageDrivenBean NotificationMDB [ 2003-12-26T14:40:21.748CET
03/12/26 14:40:21 Notification ==> Application UnDeployer for ow4jdemo STARTS [
Fri Dec 26 14:40:21 CET 2003 ]
03/12/26 14:40:22 [INFO] PropertyMessageResources - -Initializing, config='org.a
pache.struts.util.LocalStrings', returnNull=true
03/12/26 14:40:22 [INFO] PropertyMessageResources - -Initializing, config='org.a
pache.struts.action.ActionResources', returnNull=true
03/12/26 14:40:22 [INFO] PropertyMessageResources - -Initializing, config='view.
ApplicationResources', returnNull=true
03/12/26 14:40:22 [INFO] PropertyMessageResources - -Initializing, config='org.a
pache.struts.util.LocalStrings', returnNull=true
03/12/26 14:40:22 [INFO] PropertyMessageResources - -Initializing, config='org.a
pache.struts.action.ActionResources', returnNull=true
03/12/26 14:40:23 [INFO] PropertyMessageResources - -Initializing, config='view.
ApplicationResources', returnNull=true
03/12/26 14:40:23 [INFO] PropertyMessageResources - -Initializing, config='org.a
pache.struts.util.LocalStrings', returnNull=true
03/12/26 14:40:23 [INFO] PropertyMessageResources - -Initializing, config='org.a
pache.struts.action.ActionResources', returnNull=true
03/12/26 14:40:24 [INFO] PropertyMessageResources - -Initializing, config='view.
ApplicationResources', returnNull=true
03/12/26 14:40:24 [INFO] PropertyMessageResources - -Initializing, config='org.a
pache.struts.util.LocalStrings', returnNull=true
03/12/26 14:40:24 [INFO] PropertyMessageResources - -Initializing, config='org.a
pache.struts.action.ActionResources', returnNull=true
03/12/26 14:40:24 [INFO] PropertyMessageResources - -Initializing, config='view.
ApplicationResources', returnNull=true
03/12/26 14:40:25 Notification ==> Application UnDeployer for ow4jdemo COMPLETES
[ Fri Dec 26 14:40:25 CET 2003 ]Hi Jasmina,
Looks like the JMS topics have not been set up. Please follow the instructions as mentioned in "3. Set up In-memory JMS Topics" of the README.
Cheers,
Raja -
Urgent :deployment to Standalone OC4J failed
Hi,
I am posting this problem for second time.
It is of utmost importance for me to solve the problem b'coz the whole progress of my project/application depends on successfully working of the application on Standalone OC4J.So can anybody plz help me.
1)I have developed an application using Struts framework(For the View and controller part ) and EJBs. When I run this application using the Embedded OC4J provided with JDeveloper,it runs fine.But when I try to deploy the same to the StandAlone OC4J(which I downloaded from OTN) or to the Application Server,I get the following error
--503 Service Unavailable,Servlet error: Parsing error processing resource path ---
2)The StandAlone OC4J version is 9.0.4.0.0 and I used JDK 1.4.
3)The same application runs fine when deployed to StandAlone OC4J when I developed it using only JSPs and EJB.
4)I even added the different libs for Struts inside WEB-XML folder under my Application Folder Structure.
5)The StandAlone OC4J Server runs fine and displays the First Page when it is started.
6)I even installed a totally new StandAlone OC4J and deployed all my previous applications to this new server.All the applications except where I used Struts Framework ran fine.
The Error Message is
04/11/01 10:36:44 Notification ==> Unpack EJBapplication.ear begins...
04/11/01 10:36:44 Auto-unpacking C:\OC4J\New Folder\j2ee\home\applications\EJBap
plication.ear... done.
04/11/01 10:36:44 Notification ==> Unpack EJBapplication.ear ends...
04/11/01 10:36:44 Notification ==> Initialize EJBapplication.ear begins...
04/11/01 10:36:44 Auto-unpacking C:\OC4J\New Folder\j2ee\home\applications\EJBap
plication\EJBDEMOwar.war... done.
04/11/01 10:36:45 Copying default deployment descriptor from archive at C:\OC4J\
New Folder\j2ee\home\applications\EJBapplication/META-INF/orion-application.xml
to deployment directory C:\OC4J\New Folder\j2ee\home\application-deployments\EJB
application...
04/11/01 10:36:45 Notification ==> Initialize EJBapplication.ear ends...
04/11/01 10:36:45 Notification ==> Initialize EJBDEMOwar begins...
04/11/01 10:36:45 Notification ==> Initialize EJBDEMOwar ends...
04/11/01 10:36:46 ArchiveContext: containsDirectory(META-INF) plus '/' found in
C:\OC4J\New Folder\j2ee\home\applications\EJBapplication\EJBDEMOear.jar in entry
META-INF/MANIFEST.MF
04/11/01 10:36:46 Copying default deployment descriptor from archive at C:\OC4J\
New Folder\j2ee\home\applications\EJBapplication\EJBDEMOear.jar/META-INF/orion-e
jb-jar.xml to deployment directory C:\OC4J\New Folder\j2ee\home\application-depl
oyments\EJBapplication\EJBDEMOear.jar...
04/11/01 10:36:46 Auto-deploying - EJBDEMOear.jar (No previous deployment found)
04/11/01 10:36:49 Auto-deploying - compiling and loading...
04/11/01 10:37:00 done.
04/11/01 10:37:00 Notification ==> Application Deployer for EJBapplication COMPL
ETES [ 2004-11-01T10:37:00.405IST ]
Nov 1, 2004 10:37:04 AM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru
e
Nov 1, 2004 10:37:04 AM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul
l=true
Nov 1, 2004 10:37:04 AM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
Utils.java:1789)
at org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
Utils.java:1684)
at org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
java:1713)
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:101
9)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule
.java:259)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingPa
rser.java:1181)
at oracle.xml.parser.v2.ValidatingParser.parseRootElement(ValidatingPars
er.java:138)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingP
arser.java:267)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
rvlet.java:1006)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
.java:955)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.
java:2094)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.
java:4523)
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpAppl
ication.java:4617)
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.
java:765)
at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:
497)
at com.evermind.server.Application.getHttpApplication(Application.java:8
86)
at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.jav
a:688)
at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:570)
at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:263)
at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplica
tionBinder.java:171)
at com.evermind.server.administration.DefaultApplicationServerAdministra
tor.bindWebApp(DefaultApplicationServerAdministrator.java:364)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
at com.evermind.util.OC4JSecureClassLoader.defineClassEntry(OC4JSecureCl
assLoader.java:172)
at com.evermind.naming.ContextClassLoader.defineClass(ContextClassLoader
.java:1154)
at com.evermind.naming.ContextClassLoader.findClass(ContextClassLoader.j
ava:390)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.j
ava:138)
at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
at com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.j
ava:138)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at org.apache.struts.config.FormBeanConfig.formBeanClass(FormBeanConfig.
java:320)
at org.apache.struts.config.FormBeanConfig.setType(FormBeanConfig.java:1
91)
... 40 more
Nov 1, 2004 10:37:04 AM org.apache.struts.action.ActionServlet handleConfigExcep
tion
SEVERE: Parsing error processing resource path
java.lang.reflect.InvocationTargetException
at org.apache.commons.digester.Digester.createSAXException(Digester.java
:2540)
at org.apache.commons.digester.Digester.createSAXException(Digester.java
:2566)
at org.apache.commons.digester.Digester.startElement(Digester.java:1276)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingPa
rser.java:1181)
at oracle.xml.parser.v2.ValidatingParser.parseRootElement(ValidatingPars
er.java:138)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingP
arser.java:267)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
rvlet.java:1006)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
.java:955)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.
java:2094)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.
java:4523)
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpAppl
ication.java:4617)
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.
java:765)
at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:
497)
at com.evermind.server.Application.getHttpApplication(Application.java:8
86)
at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.jav
a:688)
at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:570)
at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:263)
at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplica
tionBinder.java:171)
at com.evermind.server.administration.DefaultApplicationServerAdministra
tor.bindWebApp(DefaultApplicationServerAdministrator.java:364)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
Nov 1, 2004 10:38:25 AM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul
l=true
Nov 1, 2004 10:38:25 AM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
Utils.java:1789)
at org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
Utils.java:1684)
at org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
java:1713)
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:101
9)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule
.java:259)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingPa
rser.java:1181)
at oracle.xml.parser.v2.ValidatingParser.parseRootElement(ValidatingPars
er.java:138)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingP
arser.java:267)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
rvlet.java:1006)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
.java:955)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.
java:2094)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.
java:4523)
at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApp
lication.java:2561)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
tHandler.java:640)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:270)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:112)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
at com.evermind.util.OC4JSecureClassLoader.defineClassEntry(OC4JSecureCl
assLoader.java:172)
at com.evermind.naming.ContextClassLoader.defineClass(ContextClassLoader
.java:1154)
at com.evermind.naming.ContextClassLoader.findClass(ContextClassLoader.j
ava:390)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.j
ava:138)
at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
at com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.j
ava:138)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at org.apache.struts.config.FormBeanConfig.formBeanClass(FormBeanConfig.
java:320)
at org.apache.struts.config.FormBeanConfig.setType(FormBeanConfig.java:1
91)
... 29 more
Nov 1, 2004 10:38:25 AM org.apache.struts.action.ActionServlet handleConfigExcep
tion
SEVERE: Parsing error processing resource path
java.lang.reflect.InvocationTargetException
at org.apache.commons.digester.Digester.createSAXException(Digester.java
:2540)
at org.apache.commons.digester.Digester.createSAXException(Digester.java
:2566)
at org.apache.commons.digester.Digester.startElement(Digester.java:1276)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingPa
rser.java:1181)
at oracle.xml.parser.v2.ValidatingParser.parseRootElement(ValidatingPars
er.java:138)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingP
arser.java:267)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
rvlet.java:1006)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
.java:955)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.
java:2094)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.
java:4523)
at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApp
lication.java:2561)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
tHandler.java:640)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:270)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:112)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)Add to WEB-INF/lib
struts.jar
tiles.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
Maybe you are looking for
-
I have an iPhone 5c recently updated with iOS 8, i am having problems with my IMessage. when i try to IMessage my contacts, instead of sending the IMessage from my phone number the message is sent with my email. i also cannot be in a group chat due
-
Inplace upgrade SCCM 2012 R2 server OS from 2008 R2 to 2012R2 and SQL 2008R2 to 2012
Hi Is it possible to do inplace upgrade? I have Windows Server 2008 R2, SCCM 2012 R2 CU1, SQL 2008 R2, WSUS and MDT 2013. Can I upgrade to Windows server 2012 R2 and SQL server 2012? Are there any catches which I must know before upgrade? Do I start
-
Mynow.co.uk and Airport express problems
I use mynow.co.uk which is a wireless broadband provider ie. you dont need a phone line. I had this connected to my airport express using PPPoE. It worked fine until my airport express just stopped working (it was dead). I bought a new airport expres
-
NOW What?! My Entire Music Library GONE?!
It's not as bad as it first sounds but scary enough. For no reason known to me I suddenly get a pop-up that announces a damaged Library file. Then, go on to open iTunes and... Nothing. Nothing listed WHATSOEVER! I do a Find search at Finder level and
-
Hi I am trying to use the filter function in my Report Filters. Below is my SQL statement in the report filter but it throws an error that Filter needs an aggregate measure in the first expression. Finance.Date = FILTER(Max(Finance.date) USING ABC."R