Rara Levis

Greenhorn
+ Follow
since Sep 10, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rara Levis

Hi !
I am trying to connect to Oracle 9i, while running servlets on Tomcat.
I get the above error the moment I execute an query.
A response would be highly appreciated.
Chow !
19 years ago
Thanx a ton Wayne... I have been in a position to resolve the problem using your suggestion. Thanx once again !!
19 years ago
You need to perform the following to Deploy Web app on Tomcat:-
1. Created the web application folder and its directory structure in {tomcat}/webapps/ folder (.. I suppose this you have already done.)
2. Map servlets in the web.xml file.
3. Make a context entry in the {tomcat}/conf/server.xml file.
4. Stop and Start the tomcat server again
Chow !
19 years ago
Hi There !
I am trying to connect to Oracle from within Java. Cant find suitable OracleDriver.class file.
As per my R&D, I need classes12.zip / classes12.jar.. but cant trace it anywhere.
Please Help !!
19 years ago

Originally posted by Rara Levis:
I have compiled my Web application on a Windows NT machine. Then, I placed the classes in the jar file and moved the jar file to : {tomcat}/common/lib
On running an applet / servlet I get the following chained exception :-
javax.servlet.ServletException: Error allocating a servlet instance
at org.apache.catalina.core.StandardWrapper.allocate
root cause
java.lang.ClassFormatError: orcLocal (Invalid start_pc/length in local var table)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java, Compiled Code)
Just cant get over this problem... Please Help !!


Sorry !!
I Forgot to mention that I have moved the webapplication to a Compaq Server running on 264 Unix platform i.e. I have compiled the Webapplication on a Windows NT platform and placed the jar(ed) classes on a Tomcat server running on the aforesaid Compaq machine.
Thanx for your Patience !
19 years ago
I have compiled my Web application on a Windows NT machine. Then, I placed the classes in the jar file and moved the jar file to : {tomcat}/common/lib
On running an applet / servlet I get the following chained exception :-
javax.servlet.ServletException: Error allocating a servlet instance
at org.apache.catalina.core.StandardWrapper.allocate
root cause
java.lang.ClassFormatError: orcLocal (Invalid start_pc/length in local var table)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java, Compiled Code)
Just cant get over this problem... Please Help !!
19 years ago

Originally posted by Rob Ross:
[QB]What do you mean by "root" - do you mean classes within the lib folder, or classes *inside* the Jar file?
Also, have you set up your tomacat server to re-load its class files? If you haven't, each time you make changes to the lib or classes directory, you have to recycle the server.
Thank You Rob for your reply. I have mentioned in my post that I have placed the classes in a jar file. What I meant by root was the root of the jar file.

19 years ago

Originally posted by William Brogden:
Note that you do not have to take Tomcat down and restart it to "recycle" a web application. The management interface lets you take applications off-line or restart them individually.
Bill


Thanx William, your suggestion was vital. I have made use of the Management Interface, successfully.
19 years ago

Originally posted by Rob Ross:
What do you mean by "root" - do you mean classes within the lib folder, or classes *inside* the Jar file?
Also, have you set up your tomacat server to re-load its class files? If you haven't, each time you make changes to the lib or classes directory, you have to recycle the server.
Since this is a tomcat-specific question I'm going to move this thread there.

19 years ago
Hi
I have placed my application jar file in directory {tomcat}/webapps/Appl/WEB-INF/lib.
Tomcat finds all classes that are at the root of the jar files, but classes that are within the directory structure in the jar file, Tomcat cant find them.

Please Help !
19 years ago
Hi
I have placed my applications jar file in {Tomcat}/webapps/WEB-INF/lib.
Tomcat finds all Classes at the root of the jar file but the ones that lie within the directory structure, Tomcat cant find them.
If someone can help me on this !!
Regards
19 years ago