This content has been marked as final.
Show 11 replies
-
1. Re: Setting up package in server correctly !
843838 Oct 12, 2005 2:58 AM (in response to 843838)please post the error message..... -
2. Re: Setting up package in server correctly !
843838 Oct 12, 2005 3:03 AM (in response to 843838)javax.servlet.ServletException: Servlet execution threw an exception
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:222)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
.......
......
java.lang.NoClassDefFoundError: com/eprimes/common/DBConnect (wrong name: DBConnect)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) -
3. Re: Setting up package in server correctly !
843838 Oct 12, 2005 3:05 AM (in response to 843838)hi ! thanks for ur response
it cannot find DBConnect.java from com/eprimes/common folder which i placed in web-inf/classes
thks waiting for ur response -
4. Re: Setting up package in server correctly !
843838 Oct 12, 2005 3:20 AM (in response to 843838)hi
The error message in tomcat console is
<ERROR> http-8000-Processor22:ConfigSharedMem.setConfigMem() \tomcat5\webapps\sms\smsconfig.xml (The system c
annot find the path specified)
java.io.FileNotFoundException: \tomcat5\webapps\sms\smsconfig.xml (The system cannot find the path specified)
Still hanging on...pls check it out.. -
5. Re: Setting up package in server correctly !
794117 Oct 12, 2005 3:21 AM (in response to 843838)Please don't make your entire post bold.
The class com/eprimes/common/DBConnect should found in the file
WEB-INF/classes/com/eprimes/common/DBConnect.class
Check that
- the class is compiled successfully
- your name matches the case exactly
- you are using the full package name in your JSP
Cheers,
evnafets -
6. Re: Setting up package in server correctly !
843838 Oct 12, 2005 3:24 AM (in response to 843838)Do you set the environment variable JAVA_HOME & CATALINA_HOME properly?
Refer this page... http://www.moreservlets.com/Using-Tomcat-4.html#Development-Environment -
7. Re: Setting up package in server correctly !
843838 Oct 12, 2005 4:46 AM (in response to 843838)I have set path correctly adn other jsp with database works fine. The error in log is : com/eprimes.common cannot be found . Wrong(DBConnect)
com folder has java files and DBConnect,java and DBConnect.class both are placed.
And error on submit of jsp is : cannot find smsconfig.xml which i have placed in root directory and also in web-inf.
Also, i have placed com/eprimes/common folder in web-inf/classes
when i submit login page it cannot get to .class file and report further..instead it sayd file not found.. -
8. Re: Setting up package in server correctly !
843838 Oct 12, 2005 5:07 AM (in response to 843838)just try setting classpath to the web-inf/classes folder in your environment variables and let me see the result... also make sure folder name is 'WEB-INF' or 'web-inf' . use WEB-INF... -
9. Re: Setting up package in server correctly !
843838 Oct 12, 2005 5:18 AM (in response to 843838)thks for reply
i did as u told but still its not able to connect to DBConnect.class file...it is instead displaying error file which says file not found..Eventhough i have placed all files and set path for WEB-INF/classes -
10. Re: Setting up package in server correctly !
843838 Oct 12, 2005 6:01 AM (in response to 843838)root cause
java.lang.NoClassDefFoundError: com/eprimes/common/DBConnect (wrong name: DBConnect)
Thisis ultimate error i am getting when compiling jsp..pls helpin solving error. I have placed the above package and set path..
with regards -
11. Re: Setting up package in server correctly
843838 Oct 12, 2005 8:55 AM (in response to 843838)root cause
This error comes in one of the following two cases:
java.lang.NoClassDefFoundError:
com/eprimes/common/DBConnect (wrong name: DBConnect)
- either your Java File name is NOT DBConnect.java (It should be DBConnect.java)
- or the package declaration in the DBConnect is not correct.