Re: Tomcat 5.0.18 and symLinks

2004-02-16 Thread De Toffoli Garry
I use it, and run OK;

Guy Kaisin ha scritto:

Does anybody knows if the attribute for the Context (server.xml) is now working?
I've try to use symlink in my webapp but is seams that it is not working.
Here is my definition:
server.xml
---
Context path= docBase=mywebapp allowLinking=true /

And my webapp is like this:

/mywebapps/img/par_imgs

Where par_imgs is a symLink to /usr/graphics/par_imgs/
I store imgaes in this directory, but none are displayed in my browser.
Does anybody knows how to solve this?

Thank for help

 



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


Re: include files

2004-02-10 Thread De Toffoli Garry
Chris Daly ha scritto:

hi

i've tested a new version of my jsp include file (a header which is 
referenced by about 40 pages) on one jsp page, and its wokred ok.  
i've changed the coding of the include page though none of the other 
jsp pages have picked up the new include and are still looking to teh 
old one ?  i've stopped and started tomcat but its till not changed.

does anyone have any ideas ?  i've included a couple of new tag 
libraries but they are working ok and i cant see why it would be 
anything other than tomcat ?

cheers

chris

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

Have you tried to use the touch cmd on all the file that include you .jsp?



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


Re: include files

2004-02-10 Thread De Toffoli Garry
Chris Daly ha scritto:

everyhting under the work directory, all the directories

work/Standalone/localhost  etc etc ?  wont this delete the standlone 
server ?



At 10:09 10.02.2004 +, you wrote:

If you think everything else is working ok, stop tomcat delete 
everything
under the work directory and start again.

-Original Message-
From: Chris Daly [mailto:[EMAIL PROTECTED]
Sent: 10 February 2004 09:19
To: [EMAIL PROTECTED]
Subject: include files
hi

i've tested a new version of my jsp include file (a header which is
referenced by about 40 pages) on one jsp page, and its wokred ok.  i've
changed the coding of the include page though none of the other jsp 
pages
have picked up the new include and are still looking to teh old one 
?  i've
stopped and started tomcat but its till not changed.

does anyone have any ideas ?  i've included a couple of new tag 
libraries
but they are working ok and i cant see why it would be anything other 
than
tomcat ?

cheers

chris

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

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.
Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


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

You would delete only the directory relative of your site, under the 
work directory of tomcat;

for example, if you site is called www.test.org, you must delete the 
directory under tomcat work/www.test.org_8080;

probably the name may be different from release;

after delete it, you must restart tomcat;

But have you tried to use the touch cmd on all .jsp file that include 
your include.jsp? I use this mode, and all is OK, and I doesn't delete 
the work directory;

Best regards.



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


Re: include files

2004-02-10 Thread De Toffoli Garry
You would delete only the  file under the work directory; WEB-INF exist 
on the directory of your web site, and not under work;
if you have installed tomcat in /usr/tomcat, the work directory is: 
/usr/tomcat/work;
with your example: /usr/tomcat/Standalone/localhost/Website

the touch cmd is a unix cmd;
example: touch mytest.jsp;
touch change the date/time of the file mytest.jsp to the current date/time;
under Windows, you can open and save the file, without modify;
so, touching you jsp file where you include, tomcat can detect that 
the page mytest.jsp is changed, so recompile it;

Best regards.



Chris Daly ha scritto:

thanks.

do i delete the name of the app under tomcat, for example 
work/Standalone/localhost/Website ?  and all the $... files and the 
two directories -  Help and WEB-INF under this directory ?

what is the touch cmd ?  i cant find it in my wrox tomcat book ?

cheers

chris

You would delete only the directory relative of your site, under the 
work directory of tomcat;
for example, if you site is called www.test.org, you must delete the 
directory under tomcat work/www.test.org_8080;
probably the name may be different from release;
after delete it, you must restart tomcat;
But have you tried to use the touch cmd on all .jsp file that include 
your include.jsp? I use this mode, and all is OK, and I doesn't delete 
the work directory;

At 11:25 10.02.2004 +0100, you wrote:

You would delete only the directory relative of your site, under the 
work directory of tomcat;

for example, if you site is called www.test.org, you must delete the 
directory under tomcat work/www.test.org_8080;

probably the name may be different from release;

after delete it, you must restart tomcat;

But have you tried to use the touch cmd on all .jsp file that include 
your include.jsp? I use this mode, and all is OK, and I doesn't 
delete the work directory;


-
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: Help!!! How to get a simple jsp page working

2004-02-10 Thread De Toffoli Garry
Avinash Sridhar ha scritto:

hi,
  I am usng Tomcat 5.0.16 And facing the below mentioned problem
I have a directory by name sampleapp,now I have made a directory named ROOT inside the sampleapp directory.
I have written a simple MyJsp.jsp jsp file and placed it in the above mentioned ROOT ,now my question is 

How does one write the Context /Context for this JSP page in the TOMCAT_HOME/conf/server.xml.

Context path=/sampleapp docBase=e:/sampleapp/ROOT debug=0 reloadable=true 
/Context Is this the right way?



Kindly let me know 

Thanking you 
AS 
 

Yes, your example would be ok.

But I write the context file under tomcat/conf/Catalina/localhost, as 
the example present on tomcat.

Best regards.



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


Re: Tomcat Loads Deleted Context?

2004-02-09 Thread De Toffoli Garry
Shapira, Yoav ha scritto:

Howdy,

 

Is META-INF/context.xml a standard way to provide a default context in
   

a
 

war? Or is it tomcat specific?
   

It is tomcat-specific.

Yoav Shapira



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]
 

But where is documented? How it run? How is possible change a context 
during the life of Tomcat?

Thank you.



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


How configure ADMIN for DefaultContext

2004-02-04 Thread De Toffoli Garry
Hi to all,

   I would like to modify the Administration of Tomcat for adding the 
functionality of DefaultContext;

   someone has an example, or some directive for doing it?

   Thank you.



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


Problem compiling JSP under TOMCAT 5.0.18

2004-02-03 Thread De Toffoli Garry
Hi to all,

  I would like to pass from tomcat 3.2.x to tomcat 5.0.18;

  under tomcat 3.2.x I have some package under the WEB-INF/classes of 
all my sites, and run OK;

  passing to tomcat 5.0.18 I have changed only tomcat, leaving 
untouched all the directory where resides the sites; but when I call a 
.jsp that use a package, I have this error:

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

An error occurred at line: 6 in the jsp file: /tst_sitengine/testDB.jsp

Generated servlet error:
  [javac] Compiling 1 source file
/usr/jakarta-tomcat-5.0.18/work/Catalina/www.test.it/_/org/apache/jsp/tst_005fsitengine/testDB_jsp.java:7: 
package db does not exist
import db.*;
^

On catalina.log I have a detail about the error, where is reported the 
classpath where jasper is looking for, and doesn't appear WEB-INF;
I think that this is why I have the error;

but How can I correct this?

Please, could someone help me? I have the same error with tomcat 5.0.16;

here there is the content of catalina.log
2-feb-2004 17.50.46 org.apache.jasper.compiler.Compiler generateClass
GRAVE: Javac exception
Compile failed; see the compiler error output for details.
  at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:978)
  at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:799)
  at 
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:390)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
  at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
  at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552) 

  at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291) 

  at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
  at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) 

  at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) 

  at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 

  at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
  at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245) 

  at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 

  at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:509) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) 

  at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) 

  at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
  at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 

  at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) 

  at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
  at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 

  at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
  at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
  at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
  at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
  at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700) 

  at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) 

  at java.lang.Thread.run(Thread.java:534)
2-feb-2004 17.50.46 org.apache.jasper.compiler.Compiler generateClass
GRAVE: Env: Compile: 

Re: Problem compiling JSP under TOMCAT 5.0.18

2004-02-03 Thread De Toffoli Garry
De Toffoli Garry ha scritto:

Hi to all,

  I would like to pass from tomcat 3.2.x to tomcat 5.0.18;

  under tomcat 3.2.x I have some package under the WEB-INF/classes of 
all my sites, and run OK;

  passing to tomcat 5.0.18 I have changed only tomcat, leaving 
untouched all the directory where resides the sites; but when I call a 
.jsp that use a package, I have this error:

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

An error occurred at line: 6 in the jsp file: /tst_sitengine/testDB.jsp

Generated servlet error:
  [javac] Compiling 1 source file
/usr/jakarta-tomcat-5.0.18/work/Catalina/www.test.it/_/org/apache/jsp/tst_005fsitengine/testDB_jsp.java:7: 
package db does not exist
import db.*;
^

On catalina.log I have a detail about the error, where is reported the 
classpath where jasper is looking for, and doesn't appear WEB-INF;
I think that this is why I have the error;

but How can I correct this?

Please, could someone help me? I have the same error with tomcat 5.0.16;

here there is the content of catalina.log
2-feb-2004 17.50.46 org.apache.jasper.compiler.Compiler generateClass
GRAVE: Javac exception
Compile failed; see the compiler error output for details.
  at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:978)
  at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:799)
  at 
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:390)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
  at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
  at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552) 

  at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291) 

  at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
  at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
  at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) 

  at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) 

  at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 

  at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) 

  at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245) 

  at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 

  at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:509) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) 

  at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) 

  at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) 

  at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 

  at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) 

  at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) 

  at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 

  at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) 

  at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
  at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
  at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828) 

  at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700) 

  at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584) 

  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584) 

  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) 

  at java.lang.Thread.run(Thread.java:534)
2-feb-2004 17.50.46 org.apache.jasper.compiler.Compiler generateClass
GRAVE: Env: Compile: 
javaFileName=/usr/jakarta-tomcat-5.0.18/work

Re: Problem compiling JSP under TOMCAT 5.0.18

2004-02-03 Thread De Toffoli Garry
Remy Maucherat ha scritto:

De Toffoli Garry wrote:

De Toffoli Garry ha scritto:

Hi to all,

  I would like to pass from tomcat 3.2.x to tomcat 5.0.18;

  under tomcat 3.2.x I have some package under the WEB-INF/classes 
of all my sites, and run OK;

  passing to tomcat 5.0.18 I have changed only tomcat, leaving 
untouched all the directory where resides the sites; but when I call 
a .jsp that use a package, I have this error:

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

An error occurred at line: 6 in the jsp file: /tst_sitengine/testDB.jsp

Generated servlet error:
  [javac] Compiling 1 source file
/usr/jakarta-tomcat-5.0.18/work/Catalina/www.test.it/_/org/apache/jsp/tst_005fsitengine/testDB_jsp.java:7: 
package db does not exist
import db.*;
^

On catalina.log I have a detail about the error, where is reported 
the classpath where jasper is looking for, and doesn't appear WEB-INF;
I think that this is why I have the error;

but How can I correct this?

Please, could someone help me? I have the same error with tomcat 
5.0.16;

here there is the content of catalina.log
2-feb-2004 17.50.46 org.apache.jasper.compiler.Compiler generateClass
GRAVE: Javac exception
Compile failed; see the compiler error output for details.
  at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:978)
  at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:799)
  at 
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:390)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
  at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
  at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552) 

  at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291) 

  at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) 

  at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
  at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) 

  at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) 

  at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 

  at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) 

  at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245) 

  at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 

  at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:509) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) 

  at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) 

  at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) 

  at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 

  at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) 

  at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) 

  at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 

  at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) 

  at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
  at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
  at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828) 

  at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700) 

  at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584) 

  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584) 

  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) 

  at java.lang.Thread.run(Thread.java:534)
2-feb-2004 17.50.46 org.apache.jasper.compiler.Compiler generateClass
GRAVE: Env

Re: Problem compiling JSP under TOMCAT 5.0.18

2004-02-03 Thread De Toffoli Garry
De Toffoli Garry ha scritto:

Remy Maucherat ha scritto:

De Toffoli Garry wrote:

De Toffoli Garry ha scritto:

Hi to all,

  I would like to pass from tomcat 3.2.x to tomcat 5.0.18;

  under tomcat 3.2.x I have some package under the WEB-INF/classes 
of all my sites, and run OK;

  passing to tomcat 5.0.18 I have changed only tomcat, leaving 
untouched all the directory where resides the sites; but when I 
call a .jsp that use a package, I have this error:

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

An error occurred at line: 6 in the jsp file: 
/tst_sitengine/testDB.jsp

Generated servlet error:
  [javac] Compiling 1 source file
/usr/jakarta-tomcat-5.0.18/work/Catalina/www.test.it/_/org/apache/jsp/tst_005fsitengine/testDB_jsp.java:7: 
package db does not exist
import db.*;
^

On catalina.log I have a detail about the error, where is reported 
the classpath where jasper is looking for, and doesn't appear WEB-INF;
I think that this is why I have the error;

but How can I correct this?

Please, could someone help me? I have the same error with tomcat 
5.0.16;

here there is the content of catalina.log
2-feb-2004 17.50.46 org.apache.jasper.compiler.Compiler generateClass
GRAVE: Javac exception
Compile failed; see the compiler error output for details.
  at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:978)
  at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:799)
  at 
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:390)
  at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
  at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
  at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552) 

  at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291) 

  at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) 

  at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
  at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) 

  at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) 

  at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 

  at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) 

  at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245) 

  at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 

  at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:509) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) 

  at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) 

  at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) 

  at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 

  at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) 

  at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) 

  at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156) 

  at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 

  at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) 

  at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
  at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206) 

  at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828) 

  at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700) 

  at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584) 

  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584) 

  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) 

  at java.lang.Thread.run(Thread.java:534)
2-feb-2004 17.50.46

Problem Compiling JSP under TOMCAT 5.0.18; please help me

2004-02-02 Thread De Toffoli Garry
Hi to all,

   I would like to pass from tomcat 3.2.x to tomcat 5.0.18;

   under tomcat 3.2.x I have some package under the WEB-INF/classes of 
all my sites, and run OK;

   passing to tomcat 5.0.18 I have changed only tomcat, leaving 
untouched all the directory where resides the sites; but when I call a 
.jsp that use a package, I have this error:

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

An error occurred at line: 6 in the jsp file: /tst_sitengine/testDB.jsp

Generated servlet error:
   [javac] Compiling 1 source file
/usr/jakarta-tomcat-5.0.18/work/Catalina/www.test.it/_/org/apache/jsp/tst_005fsitengine/testDB_jsp.java:7:
 package db does not exist
import db.*;
^
On catalina.log I have a detail about the error, where is reported the 
classpath where jasper is looking for, and doesn't appear WEB-INF;
I think that this is why I have the error;

but How can I correct this?

Please, could someone help me? I have the same error with tomcat 5.0.16;

here there is the content of catalina.log
2-feb-2004 17.50.46 org.apache.jasper.compiler.Compiler generateClass
GRAVE: Javac exception
Compile failed; see the compiler error output for details.
   at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:978)
   at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:799)
   at 
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:390)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
   at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
   at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
   at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
   at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:509)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
   at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
   at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
   at java.lang.Thread.run(Thread.java:534)
2-feb-2004 17.50.46 org.apache.jasper.compiler.Compiler generateClass
GRAVE: Env: Compile: 

Problem compiling JSP under TOMCAT 5.0.16

2004-01-23 Thread De Toffoli Garry
Hi to all,

	my name is De Toffoli Garry, and I have installed the Tomcat 5.0.16;

	I have the same problem reported by Simone Chiaretta:

	on a my site, under the WEB-INF/classes exist a package named db, but 
when I run a test page, I have this error:

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

	and the class the is not found exist on WEB-INF/classes;

	on previous release of Tomcat I have no problem;

	on catalina.log I read that Jasper doesn't have the WEB-INF/classes 
or WEB-INF/lib on the path, and this is why it cannot compile my test page;

	but WHY is not present?

	may be a bag on Tomcat version 5.0.16?

	here you will find catalina.log;

	Thank you very much.

on the log catalina.log I read these informations:
19-gen-2004 18.00.05 org.apache.jasper.compiler.Compiler generateClass
GRAVE: Env: Compile: 
javaFileName=/usr/jakarta-tomcat-5.0.16/work/Catalina/www.vishopping.it/_//org/apache/jsp/ricerche_jsp.java

classpath=/usr/jakarta-tomcat-5.0.16/work/Catalina/www.vishopping.it/_:/usr/jakarta-tomcat-5.0.16/shared/classes/:/usr/jakarta-tomcat-5.0.16/common/classes/:/usr/jakarta-tomcat-5.0.16/common/endorsed/xercesImpl.jar:/usr/jakarta-tomcat-5.0.16/common/endorsed/xmlParserAPIs.jar:/usr/jakarta-tomcat-5.0.16/common/lib/jasper-compiler.jar:/usr/jakarta-tomcat-5.0.16/common/lib/jmx-remote-tools.jar:/usr/jakarta-tomcat-5.0.16/common/lib/commons-dbcp-1.1.jar:/usr/jakarta-tomcat-5.0.16/common/lib/jmx.jar:/usr/jakarta-tomcat-5.0.16/common/lib/commons-el.jar:/usr/jakarta-tomcat-5.0.16/common/lib/commons-collections.jar:/usr/jakarta-tomcat-5.0.16/common/lib/naming-java.jar:/usr/jakarta-tomcat-5.0.16/common/lib/commons-pool-1.1.jar:/usr/jakarta-tomcat-5.0.16/common/lib/jmx-remote.jar:/usr/jakarta-tomcat-5.0.16/common/lib/jasper-runtime.jar:/usr/jakarta-tomcat-5.0.16/common/lib/naming-factory.jar:/usr/jakarta-tomcat-5.0.16/common/lib/servlet-api.jar:/usr/jakarta-tomcat-5.0.16/common/lib/namin
g-resources.jar:/usr/jakarta-tomcat-5.0.16/common/lib/ant.jar:/usr/jakarta-tomcat-5.0.16/common/lib/naming-common.jar:/usr/jakarta-tomcat-5.0.16/common/lib/jsp-api.jar:/usr/j2sdk1.4.2_02/lib/tools.jar:/usr/jakarta-tomcat-5.0.16/bin/bootstrap.jar:/usr/jakarta-tomcat-5.0.16/bin/commons-logging-api.jar:/usr/j2sdk1.4.2_02/jre/lib/ext/sunjce_provider.jar:/usr/j2sdk1.4.2_02/jre/lib/ext/dnsns.jar:/usr/j2sdk1.4.2_02/jre/lib/ext/ldapsec.jar:/usr/j2sdk1.4.2_02/jre/lib/ext/localedata.jar
cp=/usr/java/lib/tools.jar:/usr/tomcat/bin/bootstrap.jar:/usr/tomcat/bin/commons-logging-api.jar
cp=/usr/jakarta-tomcat-5.0.16/work/Catalina/www.vishopping.it/_
cp=/usr/jakarta-tomcat-5.0.16/shared/classes
cp=/usr/jakarta-tomcat-5.0.16/common/classes
cp=/usr/jakarta-tomcat-5.0.16/common/endorsed/xercesImpl.jar
cp=/usr/jakarta-tomcat-5.0.16/common/endorsed/xmlParserAPIs.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/jasper-compiler.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/jmx-remote-tools.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/commons-dbcp-1.1.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/jmx.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/commons-el.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/commons-collections.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/naming-java.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/commons-pool-1.1.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/jmx-remote.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/jasper-runtime.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/naming-factory.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/servlet-api.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/naming-resources.jar 
cp=/usr/j2sdk1.4.2_02/lib/tools.jar
cp=/usr/jakarta-tomcat-5.0.16/bin/bootstrap.jar
cp=/usr/jakarta-tomcat-5.0.16/bin/commons-logging-api.jar
cp=/usr/j2sdk1.4.2_02/jre/lib/ext/sunjce_provider.jar
cp=/usr/j2sdk1.4.2_02/jre/lib/ext/dnsns.jar
cp=/usr/j2sdk1.4.2_02/jre/lib/ext/ldapsec.jar
cp=/usr/j2sdk1.4.2_02/jre/lib/ext/localedata.jar
work dir=/usr/jakarta-tomcat-5.0.16/work/Catalina/www.vishopping.it/_
extension dir=/usr/j2sdk1.4.2_02/jre/lib/ext
srcDir=/usr/jakarta-tomcat-5.0.16/work/Catalina/www.vishopping.it/_
include=org/apache/jsp/ricerche_jsp.java

19-gen-2004 18.00.05 org.apache.jasper.compiler.Compiler generateClass
GRAVE: Error compiling file: 
/usr/jakarta-tomcat-5.0.16/work/Catalina/www.vishopping.it/_//org/apache/jsp/ricerche_jsp.java 
[javac] Compiling 1 source file

/usr/jakarta-tomcat-5.0.16/work/Catalina/www.vishopping.it/_/org/apache/jsp/ricerche_jsp.java:6: 
package db does not exist

cp=/usr/jakarta-tomcat-5.0.16/common/lib/ant.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/naming-common.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/jsp-api.jar
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]