Re: Re: Bean's problem
On Sun, Apr 25, 2004 at 12:57:53PM +0200, [EMAIL PROTECTED] wrote: : Yeah, I've changed my source code and add : package beanservlets; situation is the same. I'll assume the following: Tomcat sees the new, corrected .class file and not the old one (in WEB-INF/lib) Tomcat was restarted My only other idea is that there's a rogue JAR in one of: WEB-INF/lib {tomcat install}/common/lib {tomcat install}/server/lib Duplicate jars cause some very misleading error messages. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Bean's problem
Yeah, I've changed my source code and add package beanservlets; situation is the same. Really strange. With Tomcat 3.X i didnt have such a situations :/ Still fightin' n' still lookin' for your help Wojtek Użytkownik QM napisał: >On Fri, Apr 23, 2004 at 09:21:51AM +0200, Wojtek Gnus wrote: >: I\'ve changed my CLASPATH - didnt help me. >: Any ideas? > >Yes, and this is the big tipoff: > >[javac] class file contains wrong class: Select_zmiana > >Have you changed the source files to match the package designation? > >That is, you\'ve placed the files in a package dir of >{...}/WEB-INF/classes/beanservlets/ > > >but did you add >package beanservlets ; > >to the head of the source file? > >-QM > >-- > >software -- http://www.brandxdev.net >tech news -- http://www.RoarNetworX.com > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bean's problem
On Fri, Apr 23, 2004 at 09:21:51AM +0200, Wojtek Gnus wrote: : I've changed my CLASPATH - didnt help me. : Any ideas? Yes, and this is the big tipoff: [javac] class file contains wrong class: Select_zmiana Have you changed the source files to match the package designation? That is, you've placed the files in a package dir of {...}/WEB-INF/classes/beanservlets/ but did you add package beanservlets ; to the head of the source file? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bean's problem
I've changed my CLASPATH - didnt help me. Any ideas? Wojtek - Original Message - From: "Wojtek Gnus" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 22, 2004 10:27 AM Subject: Bean's problem > Hello > > I'm back in bussines but I've changed version of Tomcat > from 3.X to 4.1.24. And bean-problems appears! > > Here's my configuration: > Tomcat: Tomcat/4.1.24-LE-jdk14 > JSDK: j2sdk1.4.2_03 > WIN2000 > > And this is my error: > org.apache.jasper.JasperException: Unable to compile class for JSP > > An error occurred at line: -1 in the jsp file: null > > Generated servlet error: > [javac] Since fork is true, ignoring compiler setting. > [javac] Compiling 1 source file > [javac] Since fork is true, ignoring compiler setting. > [javac] C:\Program Files\Apache Group\Tomcat > 4.1\work\Standalone\localhost\rog\jsp\select_zmiana_jsp.java:50: cannot > access beanservlets.Select_zmiana > [javac] bad class file: C:\Program Files\Apache Group\Tomcat > 4.1\webapps\rog\WEB-INF\classes\beanservlets\Select_zmiana.class > [javac] class file contains wrong class: Select_zmiana > [javac] Please remove or make sure it appears in the correct > subdirectory of the classpath. > [javac] beanservlets.Select_zmiana select_zmiana = null; > [javac] ^ > [javac] 1 error > > I've found on this mailing-list that my problems are related with packages. > Well, in my java file I've declared use of beanservlets package and I've > created directory: > C:\Program Files\Apache Group\Tomcat > 4.1\webapps\rog\WEB-INF\classes\beanservlets > And in mu jsp file I've loaded my bean just like this: > > > But it looks that I must change something with my CLASSPATH. Am I right? > > Greetings > Wojtek > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bean's problem
Hello I'm back in bussines but I've changed version of Tomcat from 3.X to 4.1.24. And bean-problems appears! Here's my configuration: Tomcat: Tomcat/4.1.24-LE-jdk14 JSDK: j2sdk1.4.2_03 WIN2000 And this is my error: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\rog\jsp\select_zmiana_jsp.java:50: cannot access beanservlets.Select_zmiana [javac] bad class file: C:\Program Files\Apache Group\Tomcat 4.1\webapps\rog\WEB-INF\classes\beanservlets\Select_zmiana.class [javac] class file contains wrong class: Select_zmiana [javac] Please remove or make sure it appears in the correct subdirectory of the classpath. [javac] beanservlets.Select_zmiana select_zmiana = null; [javac] ^ [javac] 1 error I've found on this mailing-list that my problems are related with packages. Well, in my java file I've declared use of beanservlets package and I've created directory: C:\Program Files\Apache Group\Tomcat 4.1\webapps\rog\WEB-INF\classes\beanservlets And in mu jsp file I've loaded my bean just like this: But it looks that I must change something with my CLASSPATH. Am I right? Greetings Wojtek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]