Class not found in import
When my JSPs compile, they can't find imported classes (for example javax.ejb.CreateException). The above example is in the j2ee.jar file and I've included it in my CLASSPATH. In fact, I've run javap javax.ejb.CreateException just to make sure. Is there so where in Tomcat (on NT) that you can specify global jar files to include, or some eniviroment variable I'm missing? Note, my J2EE_CLASSPATH, PATH, and CLASSPATH are all set. CLASSPATH=e:\j2sdkee1.3\bin\j2ee.jar The error is: E:\Program Files\Apache Tomcat 4.0\work\localhost\Fitch\EJBTester$jsp.java:9: Class javax.ejb.CreateException not found in import. javax.ejb.CreateException; Thanks for the help. -geoff
Class not found on import
Hi. From the Linux version of Tomcat I get an error something like "class test.testbean not found on import." I don't understand how the exact web app, testbean.class, etc. will run on my Windows machine which I'm using for development, but bombs on my Linux sever. The testbean.class resides in the "test" directory within the Web-inf's classes directory, exactly how it's laid out on the win machine. Anyone have an idea why Tomcat Linux wouldn't recognize the bean? Thanks! Matt
RE: Class not found on import
Title: RE: Class not found on import In your development environment, you probably need to include the WEF-INF path in your CLASSPATH. You shouldn't have this for starting the server but for compiling your code, you do. Phil -Original Message- From: Matt Becker [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 19, 2000 3:19 PM To: tomcat mailing list Subject: Class not found on import Hi. From the Linux version of Tomcat I get an error something like class test.testbean not found on import. I don't understand how the exact web app, testbean.class, etc. will run on my Windows machine which I'm using for development, but bombs on my Linux sever. The testbean.class resides in the test directory within the Web-inf's classes directory, exactly how it's laid out on the win machine. Anyone have an idea why Tomcat Linux wouldn't recognize the bean? Thanks! Matt
RE: Class not found on import
I should be able to take the exact web app from my Windows machine and transfer it over to my Linux machine without compiling the java code, right? Matt At 02:01 PM 12/19/00, you wrote: In your development environment, you probably need to include the WEF-INF path in your CLASSPATH. You shouldn't have this for starting the server but for compiling your code, you do. Phil -Original Message- From: Matt Becker [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 19, 2000 3:19 PM To: tomcat mailing list Subject: Class not found on import Hi. From the Linux version of Tomcat I get an error something like class test.testbean not found on import. I don't understand how the exact web app, testbean.class, etc. will run on my Windows machine which I'm using for development, but bombs on my Linux sever. The testbean.class resides in the test directory within the Web-inf's classes directory, exactly how it's laid out on the win machine. Anyone have an idea why Tomcat Linux wouldn't recognize the bean? Thanks! Matt
Re: Class not found on import
darn right you should, Java should do that for you, unless you have coded any JNI or other platform specific code in your application ;-) Filip - Original Message - From: Matt Becker To: [EMAIL PROTECTED] Sent: Tuesday, December 19, 2000 2:29 PM Subject: RE: Class not found on import I should be able to take the exact web app from my Windows machine and transfer it over to my Linux machine without compiling the java code, right?MattAt 02:01 PM 12/19/00, you wrote: In your development environment, you probably need to include the WEF-INF path in your CLASSPATH. You shouldn't have this for starting the server but for compiling your code, you do.Phil -Original Message- From: Matt Becker [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 19, 2000 3:19 PM To: tomcat mailing list Subject: Class not found on import Hi. From the Linux version of Tomcat I get an error something like "class test.testbean not found on import." I don't understand how the exact web app, testbean.class, etc. will run on my Windows machine which I'm using for development, but bombs on my Linux sever. The testbean.class resides in the "test" directory within the Web-inf's classes directory, exactly how it's laid out on the win machine. Anyone have an idea why Tomcat Linux wouldn't recognize the bean? Thanks! Matt
Re: Class not found on import
Hey Matt, Funny I was just thinking of you a couple of days ago when we drove by that Dim-Sum restaurant we saw you in a couple of years ago... how are things going? Are you still in DC? Idon't remember where you were as of reunions daniel Matt Becker wrote: I should be able to take the exact web app from my Windows machine and transfer it over to my Linux machine without compiling the java code, right? Matt At 02:01 PM 12/19/00, you wrote: In your development environment, you probably need to include the WEF-INF path in your CLASSPATH. You shouldn't have this for starting the server but for compiling your code, you do. Phil -Original Message- From: Matt Becker [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 19, 2000 3:19 PM To: tomcat mailing list Subject: Class not found on import Hi. From the Linux version of Tomcat I get an error something like "class test.testbean not found on import." I don't understand how the exact web app, testbean.class, etc. will run on my Windows machine which I'm using for development, but bombs on my Linux sever. The testbean.class resides in the "test" directory within the Web-inf's classes directory, exactly how it's laid out on the win machine. Anyone have an idea why Tomcat Linux wouldn't recognize the bean? Thanks! Matt