Re: jasper error compiling jsp

2004-10-26 Thread Sarath PS




thanks for your replay. But i am using linux !
No i got what went wrong. Actually it a Java Error.  When we use
classes with out package in jsp file, Jasper will create import
statement with out class name. If we are using jdk1.4 it will through
error since after 1.4 Java is more strict about packages.  You can find
it in jdk compatibility docs. Also look previous reply to my questions.


references:
<>http://java.sun.com/j2se/1.4/compatibility.html#incompatibilities1.4
http://forum.java.sun.com/thread.jsp?thread=466368&forum=31&message=2145193&forum=31&message=2145193

thanks every body 
Sarath 

Sheetal Dabadghav wrote:

  Jasper errors are seen very commonly when it encounters a space in the
filepath.
Is the Tomcat on your machince installed inside Program Files ?
If yes, You can try:
1) Instead of having your application in webapps folder, keep it on a local
directory elsewhere (no spaces in the filepath please). Point your
applications context in web.xml to that directory.

This must work.. If not you can try to
2) Uninstall Tomcat from Progeam Files and reinstall it on the root say D:\

Hope this helps.
-Sheetal

-Original Message-
From: Sarath PS [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 22, 2004 12:34 PM
To: [EMAIL PROTECTED]
Subject: jasper error compiling jsp


hi all ,
   I get an an error  like this.


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] Compiling 1 source file

/usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp
.java:6: '.' expected
import Account;
  ^
1 error


	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandl
er.java:83)
	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:
315)
	org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:
511)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
274)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


at line 6 of index_jsp.java there is an import statement like this.

	import Account;

The class Account is very much there. I tried to put it in WEB-INF/classes,
WEB-INF/lib (after making a jar)

But nothing worked. What must be wrong ?



thanks in advance,

Sar




*
*



  




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: jasper error compiling jsp

2004-10-22 Thread Steve Kirk
Sorry - ignore my last post, it contained the wrong link.

Try this instead. Go to point 8, second bullet:
http://java.sun.com/j2se/1.4/compatibility.html#incompatibilities1.4

> -Original Message-
> From: Steve Kirk [mailto:[EMAIL PROTECTED] 
> Sent: Friday 22 October 2004 12:55
> To: 'Tomcat Users List'
> Subject: RE: jasper error compiling jsp
> 
> 
> Scroll down to point 8 under "Incompatibilities Between Java 
> 2 Platform,
> Standard Edition, v1.4.0 and v1.3", read the second bullet.  
> This confirms
> Alan's comments.
> http://forum.java.sun.com/thread.jsp?thread=466368
> <http://forum.java.sun.com/thread.jsp?thread=466368&forum=31&m
> essage=2145193
> > &forum=31&message=2145193
> 
> -Original Message-
> From: Flisch, Alan [mailto:[EMAIL PROTECTED] 
> Sent: Friday 22 October 2004 12:23
> To: Tomcat Users List
> Subject: RE: jasper error compiling jsp
> 
> 
> I wouldn't think so.  The changes necessary to the app are 
> likely to be
> pretty trivial, although you never know what else might be 
> lurking in there.
> 
> -Original Message-
> From: Sarath PS [mailto:[EMAIL PROTECTED]
> Sent: 22 October 2004 11:06
> To: Tomcat Users List
> Subject: Re: jasper error compiling jsp
> 
> 
> Thanks alan,
> 
> So you say it's not possible to run the app in my current 
> configuration
> ? (tomcat 4, j2sdk1.4.2_03)
> 
> regards,
> Sarath 
> 
> Flisch, Alan wrote: 
> 
> It's not Tomcat that is objecting, its javac, the java 
> compiler.  Perhaps
> some other version of the compiler was more forgiving at some 
> point.  I
> think getting the application fixed somehow, is your best option.
> 
> 
> 
> -Original Message-
> 
> From: Sarath PS [mailto:[EMAIL PROTECTED]
> 
> Sent: 22 October 2004 09:43
> 
> To: Tomcat Users List
> 
> Subject: Re: jasper error compiling jsp
> 
> 
> 
> 
> 
> hi,
> 
> Thanks for the replay . But this not an application i develop. I 
> 
> just want to deploy it on my tomcat. It seems the app is 
> developed for 
> 
> some other container.
> 
> Is there any work around to run it on tomcat ?
> 
> 
> 
> regards,
> 
> Sarath PS
> 
>   
> 
> Roland Carlsson wrote:
> 
> 
> 
>   
> 
> Hi!
> 
> 
> 
> 
> 
> I'm not sure but I don't think you can import classes from 
> the root-level.
> 
> 
> 
> Try to create a package and then
> 
> import mypackage.Account;
> 
> Or 
> 
> import mypackage.*;
> 
> 
> 
> Regards
> 
> Roland Carlsson
> 
> 
> 
> 
> 
> 
> 
> Den 04-10-22 09.03, skrev "Sarath PS"  <mailto:[EMAIL PROTECTED]>
> <[EMAIL PROTECTED]>:
> 
> 
> 
>  
> 
> 
> 
> 
> 
> hi all ,
> 
>   I get an an error  like this.
> 
> 
> 
> 
> 
> 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] Compiling 1 source file
> 
> 
> 
> /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache
> /jsp/index_jsp
> .j
> 
> ava:6: '.' expected
> 
> import Account;
> 
>  ^
> 
> 1 error
> 
> 
> 
> 
> 
> org.apache.jasper.compiler.DefaultErrorHandler.javacError(Defa
> ultErrorHandle
> r.
> 
> java:83)
> 
> 
> 
>
> 
> 
> 
>   
> 
> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDis
> patcher.java:3
> 15>
> 
> )
> 
>  
> 
> 
> 
> 
> 
> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406)
> 
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
> 
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
> 
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
> 
> 
> 
>
> 
> 
> 
>   
> 
> org.apache.jasper.JspCompilationContext.compile(JspCompilation
> Context.java:5
> 11>
> 
> )
> 
>  
> 
> 
> 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> Wrapper.java:2
> 74>
> 
> )
> 
>  
> 
> 
> 
> 
> 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:292)
> 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> 
> 
> 
> 
> 
> at line 6 of index_jsp.java there is an import statement like th

RE: jasper error compiling jsp

2004-10-22 Thread Steve Kirk
Scroll down to point 8 under "Incompatibilities Between Java 2 Platform,
Standard Edition, v1.4.0 and v1.3", read the second bullet.  This confirms
Alan's comments.
http://forum.java.sun.com/thread.jsp?thread=466368
<http://forum.java.sun.com/thread.jsp?thread=466368&forum=31&message=2145193
> &forum=31&message=2145193

-Original Message-
From: Flisch, Alan [mailto:[EMAIL PROTECTED] 
Sent: Friday 22 October 2004 12:23
To: Tomcat Users List
Subject: RE: jasper error compiling jsp


I wouldn't think so.  The changes necessary to the app are likely to be
pretty trivial, although you never know what else might be lurking in there.

-Original Message-
From: Sarath PS [mailto:[EMAIL PROTECTED]
Sent: 22 October 2004 11:06
To: Tomcat Users List
Subject: Re: jasper error compiling jsp


Thanks alan,

So you say it's not possible to run the app in my current configuration
? (tomcat 4, j2sdk1.4.2_03)

regards,
Sarath 

Flisch, Alan wrote: 

It's not Tomcat that is objecting, its javac, the java compiler.  Perhaps
some other version of the compiler was more forgiving at some point.  I
think getting the application fixed somehow, is your best option.



-Original Message-

From: Sarath PS [mailto:[EMAIL PROTECTED]

Sent: 22 October 2004 09:43

To: Tomcat Users List

Subject: Re: jasper error compiling jsp





hi,

Thanks for the replay . But this not an application i develop. I 

just want to deploy it on my tomcat. It seems the app is developed for 

some other container.

Is there any work around to run it on tomcat ?



regards,

Sarath PS

  

Roland Carlsson wrote:



  

Hi!





I'm not sure but I don't think you can import classes from the root-level.



Try to create a package and then

import mypackage.Account;

Or 

import mypackage.*;



Regards

Roland Carlsson







Den 04-10-22 09.03, skrev "Sarath PS"  <mailto:[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>:



 





hi all ,

  I get an an error  like this.





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] Compiling 1 source file



/usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp
.j

ava:6: '.' expected

import Account;

 ^

1 error





org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.

java:83)



   



  

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3
15>

)

 





org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)



   



  

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
11>

)

 



org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
74>

)

 





org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)

javax.servlet.http.HttpServlet.service(HttpServlet.java:810)





at line 6 of index_jsp.java there is an import statement like this.



import Account;



The class Account is very much there. I tried to put it in WEB-INF/classes,

WEB-INF/lib (after making a jar)



But nothing worked. What must be wrong ?







thanks in advance,



Sar









*

*



-

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]



 









  


  _  


Any opinions expressed in this E-mail may be those of the individual and not
necessarily the company. This E-mail and any files transmitted with it are
confidential and solely for the use of the intended recipient. If you are
not the intended recipient or the person responsible for delivering to the
intended recipient, be advised that you have received this E-mail in error
and that any use or copying is strictly prohibited. If you have received
this E-mail in error please notify the beCogent postmaster at
[EMAIL PROTECTED]

Unless expressly stated, opinions in this email are those of the individual
sender and not beCogent Ltd. You must take full responsibility for virus
checking this email and any attachments.

Please note that the content of this email or any of its attachments may
contain data that falls within the scope of the Data Protection Acts and
that you must ensure that any handling or processing of suc

Re: jasper error compiling jsp

2004-10-22 Thread Sarath PS
then alan, could you please give me any hints ?
The library i'm about to use is  proprietory and i don't have the source 
code. So refactoring the classes is not possible!

Flisch, Alan wrote:
I wouldn't think so.  The changes necessary to the app are likely to 
be pretty trivial, although you never know what else might be lurking 
in there.

-Original Message-
*From:* Sarath PS [mailto:[EMAIL PROTECTED]
*Sent:* 22 October 2004 11:06
*To:* Tomcat Users List
*Subject:* Re: jasper error compiling jsp
Thanks alan,
So you say it's not possible to run the app in my current
configuration ? (tomcat 4, j2sdk1.4.2_03)
   
regards,
Sarath

Flisch, Alan wrote:
It's not Tomcat that is objecting, its javac, the java compiler.  Perhaps some other 
version of the compiler was more forgiving at some point.  I think getting the 
application fixed somehow, is your best option.
-Original Message-
From: Sarath PS [mailto:[EMAIL PROTECTED]
Sent: 22 October 2004 09:43
To: Tomcat Users List
Subject: Re: jasper error compiling jsp
hi,
   Thanks for the replay . But this not an application i develop. I 
just want to deploy it on my tomcat. It seems the app is developed for 
some other container.
Is there any work around to run it on tomcat ?

regards,
Sarath PS
 
Roland Carlsson wrote:

 

Hi!
I'm not sure but I don't think you can import classes from the root-level.
Try to create a package and then
import mypackage.Account;
Or 
import mypackage.*;

Regards
Roland Carlsson

Den 04-10-22 09.03, skrev "Sarath PS" <[EMAIL PROTECTED]>:

   

hi all ,
 I get an an error  like this.
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] Compiling 1 source file
/usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.j
ava:6: '.' expected
import Account;
^
1 error
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.
java:83)
  

 

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315>
)
   

org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
  

 

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511>
)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274>
)
   

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at line 6 of index_jsp.java there is an import statement like this.
import Account;
The class Account is very much there. I tried to put it in WEB-INF/classes,
WEB-INF/lib (after making a jar)
But nothing worked. What must be wrong ?

thanks in advance,
Sar

*
*
-
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]

   


 


Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the co

RE: jasper error compiling jsp

2004-10-22 Thread Flisch, Alan



I wouldn't think 
so.  The changes necessary to the app are likely to be pretty trivial, 
although you never know what else might be lurking in there.

  -Original Message-From: Sarath PS 
  [mailto:[EMAIL PROTECTED]Sent: 22 October 2004 
  11:06To: Tomcat Users ListSubject: Re: jasper error 
  compiling jspThanks alan,    So 
  you say it's not possible to run the app in my current configuration ? (tomcat 
  4, j2sdk1.4.2_03)    regards,Sarath Flisch, 
  Alan wrote: 
  It's not Tomcat that is objecting, its javac, the java compiler.  Perhaps some other version of the compiler was more forgiving at some point.  I think getting the application fixed somehow, is your best option.

-Original Message-
From: Sarath PS [mailto:[EMAIL PROTECTED]]
Sent: 22 October 2004 09:43
To: Tomcat Users List
Subject: Re: jasper error compiling jsp


hi,
Thanks for the replay . But this not an application i develop. I 
just want to deploy it on my tomcat. It seems the app is developed for 
some other container.
Is there any work around to run it on tomcat ?

regards,
Sarath PS
  
Roland Carlsson wrote:

  
Hi!


I'm not sure but I don't think you can import classes from the root-level.

Try to create a package and then
import mypackage.Account;
Or 
import mypackage.*;

Regards
Roland Carlsson



Den 04-10-22 09.03, skrev "Sarath PS" <[EMAIL PROTECTED]>:

 


  hi all ,
  I get an an error  like this.


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] Compiling 1 source file

/usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.j
ava:6: '.' expected
import Account;
 ^
1 error


org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.
java:83)

   

  org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315>
)
 


  org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)

   

  org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511>
)
 

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274>
)
 


  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


at line 6 of index_jsp.java there is an import statement like this.

import Account;

The class Account is very much there. I tried to put it in WEB-INF/classes,
WEB-INF/lib (after making a jar)

But nothing worked. What must be wrong ?



thanks in advance,

Sar




*
*

-
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]

 



  
Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments.
Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998.


  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCo

Re: jasper error compiling jsp

2004-10-22 Thread Sarath PS




Thanks alan,

    So you say it's not possible to run the app in my current
configuration ? (tomcat 4, j2sdk1.4.2_03)
    
regards,
Sarath 

Flisch, Alan wrote:

  It's not Tomcat that is objecting, its javac, the java compiler.  Perhaps some other version of the compiler was more forgiving at some point.  I think getting the application fixed somehow, is your best option.

-Original Message-
From: Sarath PS [mailto:[EMAIL PROTECTED]]
Sent: 22 October 2004 09:43
To: Tomcat Users List
Subject: Re: jasper error compiling jsp


hi,
Thanks for the replay . But this not an application i develop. I 
just want to deploy it on my tomcat. It seems the app is developed for 
some other container.
Is there any work around to run it on tomcat ?

regards,
Sarath PS
  
Roland Carlsson wrote:

  
  
Hi!


I'm not sure but I don't think you can import classes from the root-level.

Try to create a package and then
import mypackage.Account;
Or 
import mypackage.*;

Regards
Roland Carlsson



Den 04-10-22 09.03, skrev "Sarath PS" <[EMAIL PROTECTED]>:

 



  hi all ,
  I get an an error  like this.


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] Compiling 1 source file

/usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.j
ava:6: '.' expected
import Account;
 ^
1 error


org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.
java:83)

   

  

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315>
)
 



  org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)

   

  

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511>
)
 

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274>
)
 



  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


at line 6 of index_jsp.java there is an import statement like this.

import Account;

The class Account is very much there. I tried to put it in WEB-INF/classes,
WEB-INF/lib (after making a jar)

But nothing worked. What must be wrong ?



thanks in advance,

Sar




*
*

-
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]

 


  
  

  
  

Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments.
Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998.


  
  

-
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: jasper error compiling jsp

2004-10-22 Thread Flisch, Alan
It's not Tomcat that is objecting, its javac, the java compiler.  Perhaps some other 
version of the compiler was more forgiving at some point.  I think getting the 
application fixed somehow, is your best option.

-Original Message-
From: Sarath PS [mailto:[EMAIL PROTECTED]
Sent: 22 October 2004 09:43
To: Tomcat Users List
Subject: Re: jasper error compiling jsp


hi,
Thanks for the replay . But this not an application i develop. I 
just want to deploy it on my tomcat. It seems the app is developed for 
some other container.
Is there any work around to run it on tomcat ?

regards,
Sarath PS
  
Roland Carlsson wrote:

>Hi!
>
>
>I'm not sure but I don't think you can import classes from the root-level.
>
>Try to create a package and then
> import mypackage.Account;
>Or 
> import mypackage.*;
>
>Regards
>Roland Carlsson
>
>
>
>Den 04-10-22 09.03, skrev "Sarath PS" <[EMAIL PROTECTED]>:
>
>  
>
>>hi all ,
>>   I get an an error  like this.
>>
>>
>>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] Compiling 1 source file
>>
>>/usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.j
>>ava:6: '.' expected
>>import Account;
>>  ^
>>1 error
>>
>>
>>org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.
>>java:83)
>>
>>
>>
>org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315>
>)
>  
>
>>org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406)
>>org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
>>org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
>>org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
>>
>>
>>
>org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511>
>)
>  
>
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274>
>)
>  
>
>>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>>javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>>
>>
>>at line 6 of index_jsp.java there is an import statement like this.
>>
>>import Account;
>>
>>The class Account is very much there. I tried to put it in WEB-INF/classes,
>>WEB-INF/lib (after making a jar)
>>
>>But nothing worked. What must be wrong ?
>>
>>
>>
>>thanks in advance,
>>
>>Sar
>>
>>
>>
>>
>>*
>>*
>>
>>-
>>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]
>
>  
>


Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Sv: jasper error compiling jsp

2004-10-22 Thread Sarath PS
hi,
   Thanks for the replay . But this not an application i develop. I 
just want to deploy it on my tomcat. It seems the app is developed for 
some other container.
Is there any work around to run it on tomcat ?

regards,
Sarath PS
 
Roland Carlsson wrote:

Hi!
I'm not sure but I don't think you can import classes from the root-level.
Try to create a package and then
import mypackage.Account;
Or 
import mypackage.*;

Regards
Roland Carlsson

Den 04-10-22 09.03, skrev "Sarath PS" <[EMAIL PROTECTED]>:
 

hi all ,
  I get an an error  like this.
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] Compiling 1 source file
/usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.j
ava:6: '.' expected
import Account;
 ^
1 error
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.
java:83)
   

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315>
)
 

org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
   

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511>
)
 

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274>
)
 

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at line 6 of index_jsp.java there is an import statement like this.
import Account;
The class Account is very much there. I tried to put it in WEB-INF/classes,
WEB-INF/lib (after making a jar)
But nothing worked. What must be wrong ?

thanks in advance,
Sar

*
*
-
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]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Sv: jasper error compiling jsp

2004-10-22 Thread Roland Carlsson
Hi!


I'm not sure but I don't think you can import classes from the root-level.

Try to create a package and then
 import mypackage.Account;
Or 
 import mypackage.*;

Regards
Roland Carlsson



Den 04-10-22 09.03, skrev "Sarath PS" <[EMAIL PROTECTED]>:

> hi all ,
>I get an an error  like this.
> 
> 
> 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] Compiling 1 source file
> 
> /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.j
> ava:6: '.' expected
> import Account;
>   ^
> 1 error
> 
> 
> org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.
> java:83)
> 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315>
)
> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
> 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511>
)
> 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274>
)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> 
> 
> at line 6 of index_jsp.java there is an import statement like this.
> 
> import Account;
> 
> The class Account is very much there. I tried to put it in WEB-INF/classes,
> WEB-INF/lib (after making a jar)
> 
> But nothing worked. What must be wrong ?
> 
> 
> 
> thanks in advance,
> 
> Sar
> 
> 
> 
> 
> *
> *
> 
> -
> 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]



jasper error compiling jsp

2004-10-22 Thread Sarath PS
hi all ,
  I get an an error  like this.
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] Compiling 1 source file
/usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.java:6: 
'.' expected
import Account;
 ^
1 error

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:83)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at line 6 of index_jsp.java there is an import statement like this. 

import Account;
The class Account is very much there. I tried to put it in WEB-INF/classes, WEB-INF/lib (after making a jar) 

But nothing worked. What must be wrong ? 


thanks in advance, 

Sar

*
*
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Jasper error compiling some .jsp files

2003-11-13 Thread Wendell Holmes
Hi,

I'm getting Jasper compile errors on a couple of .jsp files, most run fine.
The identical .jsp files compile okay on another machine.  I'm running
Tomcat 4.1.29 with IIS 5.0 on the problem computer.  Included below are
excerpts from both the /edulogweb and localhost log files.  Please note in
the localhost log file that the third line contains "Info: Compile:
javaFileName=C:\tomcat\work\Standalone\localhost\edulogweb\quicklookup\/quic
klookup_jsp.java".  Is the "\/" before the filename a problem?  Where could
this have come from?  

Also, 81 lines down, the javac.exe compiler instructions seem to be
truncated after 1010 bytes. Is this a problem with the path being too long,
or might this be a logger limitation?

Thanks,

Wendell Holmes
Education Logistics, Inc.
owh_at_edulog.com

When I try to access one of these .jsp's I get the following error in the
localhost log file:
*** localhost log file 
2003-11-13 13:44:42 Error compiling file:
C:\tomcat\work\Standalone\localhost\edulogweb\quicklookup\/quicklookup_jsp.j
ava [javac] Compiling 1 source file


2003-11-13 13:44:42 Info: Compile:
javaFileName=C:\tomcat\work\Standalone\localhost\edulogweb\quicklookup\/quic
klookup_jsp.java
 
classpath=/C:/tomcat/webapps/edulogweb/WEB-INF/classes/;/C:/tomcat/webapps/e
dulogweb/WEB-INF/classes/;C:/tomcat/shared/classes/;C:/tomcat/shared/lib/edu
log.jar;C:/tomcat/shared/lib/JFreeChart.jar;C:/tomcat/shared/lib/reports.jar
;C:/tomcat/common/classes/;C:/tomcat/common/endorsed/xercesImpl.jar;C:/tomca
t/common/endorsed/xmlParserAPIs.jar;C:/tomcat/common/lib/activation.jar;C:/t
omcat/common/lib/ant.jar;C:/tomcat/common/lib/commons-collections.jar;C:/tom
cat/common/lib/commons-dbcp-1.1.jar;C:/tomcat/common/lib/commons-logging-api
.jar;C:/tomcat/common/lib/commons-pool-1.1.jar;C:/tomcat/common/lib/jasper-c
ompiler.jar;C:/tomcat/common/lib/jasper-runtime.jar;C:/tomcat/common/lib/jdb
c2_0-stdext.jar;C:/tomcat/common/lib/jndi.jar;C:/tomcat/common/lib/jta.jar;C
:/tomcat/common/lib/mail.jar;C:/tomcat/common/lib/naming-common.jar;C:/tomca
t/common/lib/naming-factory.jar;C:/tomcat/common/lib/naming-resources.jar;C:
/tomcat/common/lib/servlet.jar;C:/tomcat/common/lib/tools.jar
 cp=C:\tomcat\webapps\edulogweb\WEB-INF\classes
 cp=C:\tomcat\webapps\edulogweb\WEB-INF\classes
 cp=C:\tomcat\shared\classes
 cp=C:\tomcat\shared\lib\edulog.jar
 cp=C:\tomcat\shared\lib\JFreeChart.jar
 cp=C:\tomcat\shared\lib\reports.jar
 cp=C:\tomcat\common\classes
 cp=C:\tomcat\common\endorsed\xercesImpl.jar
 cp=C:\tomcat\common\endorsed\xmlParserAPIs.jar
 cp=C:\tomcat\common\lib\activation.jar
 cp=C:\tomcat\common\lib\ant.jar
 cp=C:\tomcat\common\lib\commons-collections.jar
 cp=C:\tomcat\common\lib\commons-dbcp-1.1.jar
 cp=C:\tomcat\common\lib\commons-logging-api.jar
 cp=C:\tomcat\common\lib\commons-pool-1.1.jar
 cp=C:\tomcat\common\lib\jasper-compiler.jar
 cp=C:\tomcat\common\lib\jasper-runtime.jar
 cp=C:\tomcat\common\lib\jdbc2_0-stdext.jar
 cp=C:\tomcat\common\lib\jndi.jar
 cp=C:\tomcat\common\lib\jta.jar
 cp=C:\tomcat\common\lib\mail.jar
 cp=C:\tomcat\common\lib\naming-common.jar
 cp=C:\tomcat\common\lib\naming-factory.jar
 cp=C:\tomcat\common\lib\naming-resources.jar
 cp=C:\tomcat\common\lib\servlet.jar
 cp=C:\tomcat\common\lib\tools.jar
 work dir=C:\tomcat\work\Standalone\localhost\edulogweb
srcDir=C:\tomcat\work\Standalone\localhost\edulogweb
include=quicklookup/quicklookup_jsp.java
Exception compiling Error running javac.exe compiler

2003-11-13 13:44:42 Exception: 
Error running javac.exe compiler
at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExtern
alCompile(DefaultCompilerAdapter.java:451)
at
org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.
java:81)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
73)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
90)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveC

RE: Jasper Error wrong version of Object.class (48.0 , should be 47.0)

2003-04-03 Thread Robert Priest
I did have copies of tools.jar in the server\lib and common\lib dirs. I
think that they shipped with tomcat (I am using 4.1.7). But replacing those
jars with the one from my jdk1.4.1_01 installation did not help. But I do
have another copy of 4.1.7 (without all the apps I have running in the
problem tc version) which does not have the problem and uses the same jdk. I
will examine this further. This is something I need to get working. I do
appreciate the help and input however. It gave me the places to start
looking. If all else fails then I will probably look into pre-compiling the
jsp page and configuring it as a servlet in tomcat.

-Original Message-
From: Robert Priest 
Sent: Tuesday, April 01, 2003 5:06 PM
To: 'Tomcat Users List'
Subject: RE: Jasper Error wrong version of Object.class (48.0 , should
be 47.0)


Thanks for the reply.
I just downloaded 1.4.1_

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 3:27 PM
To: Tomcat Users List
Subject: RE: Jasper Error wrong version of Object.class (48.0 , should
be 47.0)



Howdy,
Make sure you're using:

- The JDK (not JRE)
- The right version of the JDK (preferably the latest stable version)
- An OS that has the patches required for the JDK, if any

This was a known bug in JDK 1.4.0b92 or something like that: search the
BugParade on java.sun.com.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Robert Priest [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 01, 2003 3:22 PM
>To: [EMAIL PROTECTED]
>Subject: Jasper Error wrong version of Object.class (48.0 , should be
47.0)
>
>I am receiving the following error when my jsp file attempts to
compile.
>Could there be another version of Object.class in the way?
>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]
>Compiling 1 source file D:\pw\tip\output\delivery\Program
>Files\Bentley\ProjectWise\WebServer\work\Standalone\localhost\uploadfil
e\js
>p\upload$jsp.java:12:
>cannot access java.lang.Object bad class file:
>C:\j2sdk1.4.1_01\jre\lib\rt.jar(java/lang/Object.class) class file has
>wrong version 48.0, should be 47.0 Please remove or make sure it
appears in
>the correct subdirectory of the classpath. public String
getServletInfo() {
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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: Jasper Error wrong version of Object.class (48.0 , should be 47.0)

2003-04-01 Thread Ralph Einfeldt
Is it possible that you have a tools.jar in the tomcat classpath
that is older than j2sdk1.4.1_01 ? (AFAIK some versions of
tomcat where delivered with tools.jar)

> -Original Message-
> From: Robert Priest [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 10:22 PM
> To: [EMAIL PROTECTED]
> Subject: Jasper Error wrong version of Object.class (48.0 , should be
> 47.0)
> 
> cannot access java.lang.Object bad class file: 
> C:\j2sdk1.4.1_01\jre\lib\rt.jar(java/lang/Object.class) class 
> file has wrong version 48.0, should be 47.0 Please remove or 
> make sure it appears in the correct subdirectory of the 
> classpath. public String getServletInfo() { 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Jasper Error wrong version of Object.class (48.0 , should be 47.0)

2003-04-01 Thread Robert Priest
Thanks for the reply.
I just downloaded 1.4.1_

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 3:27 PM
To: Tomcat Users List
Subject: RE: Jasper Error wrong version of Object.class (48.0 , should
be 47.0)



Howdy,
Make sure you're using:

- The JDK (not JRE)
- The right version of the JDK (preferably the latest stable version)
- An OS that has the patches required for the JDK, if any

This was a known bug in JDK 1.4.0b92 or something like that: search the
BugParade on java.sun.com.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Robert Priest [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 01, 2003 3:22 PM
>To: [EMAIL PROTECTED]
>Subject: Jasper Error wrong version of Object.class (48.0 , should be
47.0)
>
>I am receiving the following error when my jsp file attempts to
compile.
>Could there be another version of Object.class in the way?
>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]
>Compiling 1 source file D:\pw\tip\output\delivery\Program
>Files\Bentley\ProjectWise\WebServer\work\Standalone\localhost\uploadfil
e\js
>p\upload$jsp.java:12:
>cannot access java.lang.Object bad class file:
>C:\j2sdk1.4.1_01\jre\lib\rt.jar(java/lang/Object.class) class file has
>wrong version 48.0, should be 47.0 Please remove or make sure it
appears in
>the correct subdirectory of the classpath. public String
getServletInfo() {
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
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: Jasper Error wrong version of Object.class (48.0 , should be 47.0)

2003-04-01 Thread Robert Priest
Thanks.
It's still happening, though:

- The JDK (not JRE)
- The right version of the JDK (preferably the latest stable version)
just downloaded 1.4.1_02
afaik - the only version of rt.jar is in  C:\j2sdk1.4.1_02\jre\lib\rt.jar
I have down the JDK

- An OS that has the patches required for the JDK, if any
Running Windows 2000 Service Pack 3 

Is it possible that some other jar could be interfering (reaching)? 
e
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 3:27 PM
To: Tomcat Users List
Subject: RE: Jasper Error wrong version of Object.class (48.0 , should
be 47.0)



Howdy,
Make sure you're using:

- The JDK (not JRE)
- The right version of the JDK (preferably the latest stable version)
- An OS that has the patches required for the JDK, if any

This was a known bug in JDK 1.4.0b92 or something like that: search the
BugParade on java.sun.com.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Robert Priest [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 01, 2003 3:22 PM
>To: [EMAIL PROTECTED]
>Subject: Jasper Error wrong version of Object.class (48.0 , should be
47.0)
>
>I am receiving the following error when my jsp file attempts to
compile.
>Could there be another version of Object.class in the way?
>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]
>Compiling 1 source file D:\pw\tip\output\delivery\Program
>Files\Bentley\ProjectWise\WebServer\work\Standalone\localhost\uploadfil
e\js
>p\upload$jsp.java:12:
>cannot access java.lang.Object bad class file:
>C:\j2sdk1.4.1_01\jre\lib\rt.jar(java/lang/Object.class) class file has
>wrong version 48.0, should be 47.0 Please remove or make sure it
appears in
>the correct subdirectory of the classpath. public String
getServletInfo() {
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
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: Jasper Error wrong version of Object.class (48.0 , should be 47.0)

2003-04-01 Thread Shapira, Yoav

Howdy,
Make sure you're using:

- The JDK (not JRE)
- The right version of the JDK (preferably the latest stable version)
- An OS that has the patches required for the JDK, if any

This was a known bug in JDK 1.4.0b92 or something like that: search the
BugParade on java.sun.com.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Robert Priest [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 01, 2003 3:22 PM
>To: [EMAIL PROTECTED]
>Subject: Jasper Error wrong version of Object.class (48.0 , should be
47.0)
>
>I am receiving the following error when my jsp file attempts to
compile.
>Could there be another version of Object.class in the way?
>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]
>Compiling 1 source file D:\pw\tip\output\delivery\Program
>Files\Bentley\ProjectWise\WebServer\work\Standalone\localhost\uploadfil
e\js
>p\upload$jsp.java:12:
>cannot access java.lang.Object bad class file:
>C:\j2sdk1.4.1_01\jre\lib\rt.jar(java/lang/Object.class) class file has
>wrong version 48.0, should be 47.0 Please remove or make sure it
appears in
>the correct subdirectory of the classpath. public String
getServletInfo() {
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Jasper Error wrong version of Object.class (48.0 , should be 47.0)

2003-04-01 Thread Robert Priest
I am receiving the following error when my jsp file attempts to compile.
Could there be another version of Object.class in the way?
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] Compiling 1 source 
file D:\pw\tip\output\delivery\Program 
Files\Bentley\ProjectWise\WebServer\work\Standalone\localhost\uploadfile\jsp\upload$jsp.java:12:
 
cannot access java.lang.Object bad class file: 
C:\j2sdk1.4.1_01\jre\lib\rt.jar(java/lang/Object.class) class file has wrong version 
48.0, should be 47.0 Please remove or make sure it appears in the correct subdirectory 
of the classpath. public String getServletInfo() { 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Jasper error

2003-01-14 Thread Peng Tuck Kwok
Has anyone encountered an error like this?

org.apache.jasper.JasperException: connect: Address is invalid on local 
machine, or port is not valid on remote machine
	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

I'm using a jsp page to invoke a class which uses HTTPURL connection. 
The error only occurs intermitently .


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Tomcat 4.1 Jasper error in Win2K

2002-09-20 Thread John M . Hollingsworth

I am running Windows 2000 with JDK 1.4.0_01 build b03 with J2EE 1.3.1 on the system.  
I recently tried to install Tomcat 4.1.  I can now get the root web app to load, but 
when I go to  any other web apps, I get back an HTTP 500 error.  When I go to the work 
directory of the app (I've been trying to get admin to work), the .java file from the 
.jsp is built.  Unfortunately, when javac tries to compile it, I get the following.

login_jsp.java:19: cannot resolve symbol
symbol  : class TagHandlerPool
location: package runtime
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_html_locale;
   ^
login_jsp.java:20: cannot resolve symbol
symbol  : class TagHandlerPool
location: package runtime
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_bean_message_key;

[snippage]

And it goes on for about 25 more errors.  I think this has to do with my classpath, 
but I'm not sure and need help understanding this.  4.1 is so different in the way it 
compiles the JSPs.

Thanks in advance,
John


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[FIXED] RE: how to make tomcat faster [jasper error]

2002-07-13 Thread Jacob Hookom

I had to dump my working directory... thanks though for the speed tips.

Jacob Hookom
CS Student
University of Wisconsin, Eau Claire
===
http://www.swanked.net
you're not hip enough yet

-Original Message-
From: Jacob Hookom [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, July 13, 2002 11:21 AM
To: 'Tomcat Users List'
Subject: RE: how to make tomcat faster [jasper error]

I followed your example of importing the 4 jars from 1.7 to 0.4, but my
pages now are not displaying on the basis of:

javax.servlet.ServletException:
org.apache.jasper.runtime.HttpJspBase.getIncludes()Ljava/util/List;
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

I'm just wondering what may be causing this.  My page declare is:

<%@ page language="java" errorPage="errors/error_disp.jsp" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/dds.tld" prefix="dds" %>

if anyone can help me out, I would REALLY appreciate it!

Jacob Hookom
CS Student
University of Wisconsin, Eau Claire
===
http://www.swanked.net
you're not hip enough yet

-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, July 13, 2002 9:05 AM
To: Tomcat Users List
Subject: RE: how to make tomcat faster

well to install jasper from the 4.1.7 you only need to take 2 or 3 jar
files and replace the old ones in tc 4.0.4.

the jar files are from 
tc.4.1.7 : 

common/lib/jasper-compiler.jar
common/lib/jasper-runtime.jar
common/lib/commons-collections.jar

and if I remember it correctly I also moved the : 
common/lib/ant.jar 

to my tc.4.0.3 installation.


I am sorry but I will not explain connection pooling here, as it's been
done serveral times and you can search the mail-archive for information
on that matter, I use a pool from www.bitmechanic.com, but there are
several others available. Even sometimes a pool is distributed with the
JDBC driver, I'm not sure about the free one from microsoft, but it
might have some pooling implemented.
Caching is something you need to implement into your jsp-pages, it's
usually done by using cache-tags that implement "fine-grain-cacheing",
this will make you able to decide for how long each segment of your
response is cached. I've been using OSCache, from www.opensymphony.org,
there is also a cache-taglib in the jakarta domain. 

My guess is if you do this, your application will get 5 times faster
than it is right now maybe even alot more depending on how you do
it.
About the System.out.println, you should just implement Log4j logging,
it's powerfull, and easy to use. 

There are many things you could look at, for example, if you are using
HashMaps alot, you might find it alot faster to use FastHashMap, or if
you are using Vectors alot you might find it faster to use/iterate
through LinkedLists, if you are using out.write alot, you might want to
make use of StringBuffer, append to it while rendering the jsp, and only
writing that to the response (one out.write instead of many.. it should
be a little bit faster). 

For benchmark-testing I've used both jmeter and "Microsofts
Web-Application Stress Tool", and here I recomend the MS tool, it's very
powerfull, and gives you good reports.

hope it helps

 - [EMAIL PROTECTED]




> -Original Message-
> From: Anoop Kumar V [mailto:[EMAIL PROTECTED]]
> Sent: 13. júlí 2002 13:51
> To: 'Tomcat Users List'
> Subject: RE: how to make tomcat faster
> 
> 
> hi,
> 
> OK..maybe i shd hv included that in my first message..anyway its here.
> 
> This application has considerable database work with a few 
> reports thrown in
> here
> and there. I have just one servlet, remaining are all jsp's 
> (about 50 jsp's)
> and about 25 beans and other class files(MVC). I use MS-SQL 
> Server as the
> database.
> no connection pooling.. as i felt the number of users are too 
> small(100 -
> 250 
> at peak time) and yes, every request fetches info from the 
> database. So i
> guess
> i need to know how to enable connection pooling.
> Also the cache part.. 

RE: how to make tomcat faster [jasper error]

2002-07-13 Thread Jacob Hookom

I followed your example of importing the 4 jars from 1.7 to 0.4, but my
pages now are not displaying on the basis of:

javax.servlet.ServletException:
org.apache.jasper.runtime.HttpJspBase.getIncludes()Ljava/util/List;
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

I'm just wondering what may be causing this.  My page declare is:

<%@ page language="java" errorPage="errors/error_disp.jsp" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/dds.tld" prefix="dds" %>

if anyone can help me out, I would REALLY appreciate it!

Jacob Hookom
CS Student
University of Wisconsin, Eau Claire
===
http://www.swanked.net
you're not hip enough yet

-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, July 13, 2002 9:05 AM
To: Tomcat Users List
Subject: RE: how to make tomcat faster

well to install jasper from the 4.1.7 you only need to take 2 or 3 jar
files and replace the old ones in tc 4.0.4.

the jar files are from 
tc.4.1.7 : 

common/lib/jasper-compiler.jar
common/lib/jasper-runtime.jar
common/lib/commons-collections.jar

and if I remember it correctly I also moved the : 
common/lib/ant.jar 

to my tc.4.0.3 installation.


I am sorry but I will not explain connection pooling here, as it's been
done serveral times and you can search the mail-archive for information
on that matter, I use a pool from www.bitmechanic.com, but there are
several others available. Even sometimes a pool is distributed with the
JDBC driver, I'm not sure about the free one from microsoft, but it
might have some pooling implemented.
Caching is something you need to implement into your jsp-pages, it's
usually done by using cache-tags that implement "fine-grain-cacheing",
this will make you able to decide for how long each segment of your
response is cached. I've been using OSCache, from www.opensymphony.org,
there is also a cache-taglib in the jakarta domain. 

My guess is if you do this, your application will get 5 times faster
than it is right now maybe even alot more depending on how you do
it.
About the System.out.println, you should just implement Log4j logging,
it's powerfull, and easy to use. 

There are many things you could look at, for example, if you are using
HashMaps alot, you might find it alot faster to use FastHashMap, or if
you are using Vectors alot you might find it faster to use/iterate
through LinkedLists, if you are using out.write alot, you might want to
make use of StringBuffer, append to it while rendering the jsp, and only
writing that to the response (one out.write instead of many.. it should
be a little bit faster). 

For benchmark-testing I've used both jmeter and "Microsofts
Web-Application Stress Tool", and here I recomend the MS tool, it's very
powerfull, and gives you good reports.

hope it helps

 - [EMAIL PROTECTED]




> -Original Message-
> From: Anoop Kumar V [mailto:[EMAIL PROTECTED]]
> Sent: 13. júlí 2002 13:51
> To: 'Tomcat Users List'
> Subject: RE: how to make tomcat faster
> 
> 
> hi,
> 
> OK..maybe i shd hv included that in my first message..anyway its here.
> 
> This application has considerable database work with a few 
> reports thrown in
> here
> and there. I have just one servlet, remaining are all jsp's 
> (about 50 jsp's)
> and about 25 beans and other class files(MVC). I use MS-SQL 
> Server as the
> database.
> no connection pooling.. as i felt the number of users are too 
> small(100 -
> 250 
> at peak time) and yes, every request fetches info from the 
> database. So i
> guess
> i need to know how to enable connection pooling.
> Also the cache part.. there are some entries in server.xml 
> which seem to say
> "save session on restart", but i was not sure so i hv left 
> them alone. So
> tell me how
> can i enable cache too. 
> There is hardly any static content in my application, and 
> what i meant was a
> relative
> slow down compared to when Tomcat was stand-alone (or with 
> Apache). Yes,
> even i am using
> AJP1.3 connector with isapi_redirector.dll filter. 
> About System.out.println...yes i had quite a bit until now.. 
> which i hv
> removed.. but
> i do not see much of a performance improvement (need to check 
> at peak time,
> again).
>   Need some more pointers regarding jasper, does it coem 
> along wit

RE: Jasper error

2002-01-22 Thread Randy Layman


First, packages don't have to be used, but since not using packages
can lead to problems (name collision and difficulty of finding anything),
they are strongly discouraged.

WEB-INF\classes is where you put your individual class files (as in
not your JAR files).  For most applications this directory will have a few
other directories that will be the top level package.  Also any unpackaged
classes can go in this directory.  For example, if you had an unpackaged
class called UserData and a packaged class com.doradosoftware.UserData, your
classes directory would have a directory called com and a file
UserData.class.

In your JSP, practically speaking you must somehow import every
class that your JSP page will use.  If the classes are in a package you can
do a com.doradosoftware.*, but if they aren't in a package then you must
specifically import each class individually.

Randy

PS For the purpose of this email, packaged and unpackaged mean whether or
not the class file uses the package statement, not how the file might or
might not be bundled.


> -Original Message-
> From: Debby Dart [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 22, 2002 12:15 PM
> To: 'Tomcat Users List'
> Subject: RE: Jasper error
> 
> 
> Thanks for all the great response - but I'm still confused 
> about what the
> "WEB-INF\classes directory is for if packages have to be used.
> 
> Debby
> 
> -Original Message-
> From: Justin Rowles [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 22, 2002 5:21 AM
> To: 'Tomcat Users List'
> Subject: RE: Jasper error
> 
> 
> > I have looked at most of the documentation I can find and 
> tried to use
> > web.xml - going to this list with such a basic question is a
> > last resort.
> 
> Firstly well done - a decent effort with the docs is something to be
> congratulated upon.
> 
> > Class org.apache.jsp.UserData not found.
> 
> This is the line you need to pay attention to.  The line-fragment
> 'Class="UserData"' doesn't tell the compiler enough.  You 
> need to tell it
> more information about where to find the class, such as the 
> package, or it
> assumes it is in the same package as the thing it is 
> compiling - in this
> case org.apache.jsp.*
> 
> Justin.
> --
> You're only jealous cos the little penguins are talking to me.
> 
> 
> 
> ***
> For more information on Ordnance Survey products and services,
> visit our web site at http://www.ordnancesurvey.co.uk
> ***
> 
> 
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Jasper error

2002-01-22 Thread Debby Dart

Thanks for all the great response - but I'm still confused about what the
"WEB-INF\classes directory is for if packages have to be used.

Debby

-Original Message-
From: Justin Rowles [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 5:21 AM
To: 'Tomcat Users List'
Subject: RE: Jasper error


> I have looked at most of the documentation I can find and tried to use
> web.xml - going to this list with such a basic question is a
> last resort.

Firstly well done - a decent effort with the docs is something to be
congratulated upon.

> Class org.apache.jsp.UserData not found.

This is the line you need to pay attention to.  The line-fragment
'Class="UserData"' doesn't tell the compiler enough.  You need to tell it
more information about where to find the class, such as the package, or it
assumes it is in the same package as the thing it is compiling - in this
case org.apache.jsp.*

Justin.
--
You're only jealous cos the little penguins are talking to me.



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Jasper error

2002-01-22 Thread Justin Rowles

> I have looked at most of the documentation I can find and tried to use
> web.xml - going to this list with such a basic question is a 
> last resort.

Firstly well done - a decent effort with the docs is something to be
congratulated upon.

> Class org.apache.jsp.UserData not found.

This is the line you need to pay attention to.  The line-fragment
'Class="UserData"' doesn't tell the compiler enough.  You need to tell it
more information about where to find the class, such as the package, or it
assumes it is in the same package as the thing it is compiling - in this
case org.apache.jsp.*

Justin.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: Jasper error

2002-01-22 Thread Ralph Einfeldt

Wrong!

What happens, is that UserData belongs to no package.
So the compiler tries to find it in the package for 
the generated servlet (which is org.apache.jsp for 
tomcat and may be any name with other jsp engines).

To use a bean that belongs to no package (not a good 
practice anyway) you have to import it like
<%@ page import="UserData" %>

(Not shure if that really works, because I never 
used a bean without a package.)

> -Ursprüngliche Nachricht-
> Von: dderry [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 22. Januar 2002 12:56
> An: Tomcat Users List; [EMAIL PROTECTED]
> Betreff: Re: Jasper error
> 
> 
> Debby,
> 
> You need to import org.apache.jsp.UserData to use it in that 
> manner. (<%@
> page import="org.apache.jsp.UserData" %>).
> 
> the useBean declaration creates a scripting variable named 
> user, and does
> not require the import. But at line 3 (UserData user = null;) you are
> declaring a different variable (which will mask the variable 
> created by
> useBean). If you really intend to set the bean to null then just do an
> assignment rather than a declaration (user = null;).
> 
> Dave Derry

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: Jasper error

2002-01-22 Thread dderry

Debby,

You need to import org.apache.jsp.UserData to use it in that manner. (<%@
page import="org.apache.jsp.UserData" %>).

the useBean declaration creates a scripting variable named user, and does
not require the import. But at line 3 (UserData user = null;) you are
declaring a different variable (which will mask the variable created by
useBean). If you really intend to set the bean to null then just do an
assignment rather than a declaration (user = null;).

Dave Derry


- Original Message -
From: "Debby Dart" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, January 21, 2002 8:08 PM
Subject: Jasper error


> ...
> org.apache.jasper.JasperException: Unable to compile class for JSP
>
> An error occurred at line: 3 in the jsp file: /SaveName.jsp
>
> Generated servlet error:
> C:\java-apps\Apache Tomcat
4.0\work\localhost\testapp\SaveName$jsp.java:65:
> Class org.apache.jsp.UserData not found.
> UserData user = null;
> ...
>
> Line 3 in the script is :
> 
>
> I thought all I needed to do was to place the file UserData.class into the
> webapps\testapp\Web-inf\classes directory, but apparently I'm missing
> something.
>
>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: Jasper error

2002-01-22 Thread RSEQUEIRA







"Debby Dart" <[EMAIL PROTECTED]> on 01/21/2002 07:08:32 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   "'Tomcat Users List'" <[EMAIL PROTECTED]>
cc:

Subject:  Jasper error


I'm a newbie to Tomcat and JSP and fairly new to Java.  While running a
test
script with Tomcat 4.0, I get the following error:

...
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 3 in the jsp file: /SaveName.jsp

Generated servlet error:
C:\java-apps\Apache Tomcat 4.0\work\localhost\testapp\SaveName$jsp.java:65:
Class org.apache.jsp.UserData not found.
UserData user = null;
...

Line 3 in the script is :


I thought all I needed to do was to place the file UserData.class into the
webapps\testapp\Web-inf\classes directory, but apparently I'm missing
something.

The "WEB-INF" should be in uppercase rather than mixed case.

I have looked at most of the documentation I can find and tried to use
web.xml - going to this list with such a basic question is a last resort.

Thanks for your patience and all help you can provide.


Hope this helps.
Thanks.
RS

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>









--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: Jasper error

2002-01-21 Thread Dave Whitla

It would seem that the default package within the Jasper compiler is
org.apache.jsp.

Use a fully qualified class name and this will work.
eg com.mycompany.testapp.UserData

Your path to the UserData class file below WEB-INF would be
/com/mycompany/testapp/UserData.class

> Class org.apache.jsp.UserData not found.



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Jasper error

2002-01-21 Thread Dave Whitla

Woops

- Original Message -
From: "Dave Whitla" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Tuesday, January 22, 2002 11:09 AM
Subject: Re: Jasper error


> You have to import the UserData class.
>
> <%@ page import="java.sql.Timestamp" %>
>

Ignore the above - brain failed.


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: Jasper error

2002-01-21 Thread Dave Whitla

You have to import the UserData class.

<%@ page import="java.sql.Timestamp" %>

- Original Message -
From: "Debby Dart" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, January 22, 2002 11:08 AM
Subject: Jasper error


>
> I'm a newbie to Tomcat and JSP and fairly new to Java.  While running a
test
> script with Tomcat 4.0, I get the following error:
>
> ...
> org.apache.jasper.JasperException: Unable to compile class for JSP
>
> An error occurred at line: 3 in the jsp file: /SaveName.jsp
>
> Generated servlet error:
> C:\java-apps\Apache Tomcat
4.0\work\localhost\testapp\SaveName$jsp.java:65:
> Class org.apache.jsp.UserData not found.
> UserData user = null;
> ...
>
> Line 3 in the script is :
> 
>
> I thought all I needed to do was to place the file UserData.class into the
> webapps\testapp\Web-inf\classes directory, but apparently I'm missing
> something.
>
> I have looked at most of the documentation I can find and tried to use
> web.xml - going to this list with such a basic question is a last resort.
>
> Thanks for your patience and all help you can provide.
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Jasper error

2002-01-21 Thread Debby Dart


I'm a newbie to Tomcat and JSP and fairly new to Java.  While running a test
script with Tomcat 4.0, I get the following error:

...
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 3 in the jsp file: /SaveName.jsp

Generated servlet error:
C:\java-apps\Apache Tomcat 4.0\work\localhost\testapp\SaveName$jsp.java:65:
Class org.apache.jsp.UserData not found.
UserData user = null;
...

Line 3 in the script is :


I thought all I needed to do was to place the file UserData.class into the
webapps\testapp\Web-inf\classes directory, but apparently I'm missing
something.

I have looked at most of the documentation I can find and tried to use
web.xml - going to this list with such a basic question is a last resort.

Thanks for your patience and all help you can provide.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: