- This topic has 1 reply, 2 voices, and was last updated 21 years, 3 months ago by
Scott Anderson.
-
AuthorPosts
-
LasseMemberI have a project setup. I can deploy it without problems on Tomcat5.
I installed Oracle OC4J – latest version. The server I need to deploy on for production. I didn’t change any settings.
If I deploy to the OC4J server I can see that it creates files in:
d:\java\oc4j\application-autodeploy
(tried both exploded and WAR)When I start the OC4J from the commandline it does not give any errors. It just say OC4J initialized. I can open the homepage at localhost:8888
When I try to access http://localhost:8888/MyProject
I get a 404 from the server.If I try to start OC4J from inside Eclipse3M6 I get an exception:
java.util.zip.ZipException: File Not Found
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
at java.util.jar.JarFile.<init>(JarFile.java:127)
at java.util.jar.JarFile.<init>(JarFile.java:65)
Exception in thread “main”
— and a msgbox with a “fatal exception”What do I try next ?
Thanks.
Scott AndersonParticipantAs far as the deployment goes, make sure you’ve told OC4J to use the autodeployment feature by adjusting top of the server.xml file so that it similar to the following:
<application-server application-directory="../applications" application-auto-deploy-directory="../application-autodeploy" deployment-directory="../application-deployments" connector-directory="../connectors" >
Please note the application-autodeploy entry.
As for this:
If I try to start OC4J from inside Eclipse3M6 I get an exception:
java.util.zip.ZipException: File Not Found
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
at java.util.jar.JarFile.<init>(JarFile.java:127)
at java.util.jar.JarFile.<init>(JarFile.java:65)It appears you’re not running OC4J with JDK 1.4.1 or higher and it’s trying to access 1.4+ functionality to open zip files. The classes it’s looking for are part of rt.jar in a 1.4+ distribution.
-
AuthorPosts