Re: Tomcat does not compiles my .jsp! -> the solution!

2004-06-24 Thread Niklas Lindholm

Hi!

I tried skipping using jsvc and start Tomcat using startup.sh instead 
(which starts java directly) and now it works for me too!

Although using jsvc works fine in my old environment..

Thanks for the hint!

/Niklas


On Thu, 24 Jun 2004, Cyberjobe wrote:

> Hi!
> 
> Well...its working! But just when I run the server with the script
> "startup.sh", NOT the Tomcat5.sh (from /bin/jsvc-src dir).
> 
> It created the org/apache/jsp/index_jsp.java and index_jsp.class on
> work/Catalina/localhost/jsp1 dir.
> 
> So... may this be a bug? (the Tomcat5.sh script is wrong! At least to me :)
> 
> Now I have to make a new start-up script to put on my /etc/rc.d dir...
> 
> 
> Thanks everybody!
> Cyberjobe

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



Re: Tomcat does not compiles my .jsp! -> the solution!

2004-06-24 Thread Cyberjobe
Hi!

Well...its working! But just when I run the server with the script
"startup.sh", NOT the Tomcat5.sh (from /bin/jsvc-src dir).

It created the org/apache/jsp/index_jsp.java and index_jsp.class on
work/Catalina/localhost/jsp1 dir.

So... may this be a bug? (the Tomcat5.sh script is wrong! At least to me :)

Now I have to make a new start-up script to put on my /etc/rc.d dir...


Thanks everybody!
Cyberjobe


- Original Message - 
From: "Niklas Lindholm" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, June 24, 2004 4:17 PM
Subject: Re: Tomcat does not compiles my .jsp!


> Hi!
>
> I think I have the same problem as you have.
>
> I have been using Tomcat 5.0.19 in a RedHat 8.0 system. (Using JDK 1.4.2
> and Ant 1.6.1) and everything has been working fine.
>
> Now I have installed the same thing on a laptop using VMWare and I have
> run into this error. I have tried installing Tomcat 5.0.25 instead but
> that didn't help.
>
> I start Tomcat using jsvc from the root account. When I run "ant install"
> (with another user) the webapp deploys ok and a directory containing a
> tldCache.ser file is created in work/Catalina/localhost. But when I try to
> access a jsp file I get the compilation error exception. No directories or
> files have been created in the work directory.
>
> Tne only thing I get in the logs when the error happens is the
> FileNotFoundException (with the huge stack trace).
>
> I'm totally clueless..
>
> /Niklas
>


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



Re: Tomcat does not compiles my .jsp!

2004-06-24 Thread Niklas Lindholm
Hi!

I think I have the same problem as you have.

I have been using Tomcat 5.0.19 in a RedHat 8.0 system. (Using JDK 1.4.2 
and Ant 1.6.1) and everything has been working fine.

Now I have installed the same thing on a laptop using VMWare and I have 
run into this error. I have tried installing Tomcat 5.0.25 instead but 
that didn't help.

I start Tomcat using jsvc from the root account. When I run "ant install" 
(with another user) the webapp deploys ok and a directory containing a 
tldCache.ser file is created in work/Catalina/localhost. But when I try to 
access a jsp file I get the compilation error exception. No directories or 
files have been created in the work directory.

Tne only thing I get in the logs when the error happens is the 
FileNotFoundException (with the huge stack trace).

I'm totally clueless..

/Niklas

On Thu, 24 Jun 2004, Cyberjobe wrote:

> No, my work dir is ok.
> 
> And... if I use the Ant the .jsp will "compile". (make a _jsp.java file)
> 
> What more can I do?
> 
> Thanks,
> Cyberjobe
> 
> 
> - Original Message - 
> From: "David Smith" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, June 24, 2004 9:18 AM
> Subject: Re: Tomcat does not compiles my .jsp!
> 
> 
> > I'm fairly sure the problem is tomcat is having some trouble writing to 
> > the work directory when it writes your jsp as a java class.  Quick test:
> > 
> > su tomcat (if done from root, no password required)
> > cd /usr/local/jakarta-tomcat-5.0.25/work
> > vi testfile.txt
> > type some junk and try to write the file.
> > 
> > If this fails, you have your problem.  Exit the su session and take a 
> > look at file permissions on the work directory.  Be sure tomcat owns it 
> > and has write access.  I'd recommend tomcat user and group have full 
> > permissions (rw, x for directories), others have nothing.
> > 
> > --David
> 
> 
> -
> 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: RE: Tomcat does not compiles my .jsp!

2004-06-24 Thread Casas, Claudia
The version of tomcat that I am using is tomcat-4.1.30
I just included  in my classpath the servlet.jar, but NO results yet.
 

-Original Message-
From: deepak shripat mane [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 24, 2004 9:28 AM
To: Tomcat Users List
Subject: Re: RE: Tomcat does not compiles my .jsp!

 Hii..
Let me know wat is version of ur tomcat server
if u r using tomcat 4.x then u have to specify servlet.jar in classpath
for tomcat 5.x u can specify servlet-api.jar into classpath file



On Thu, 24 Jun 2004 Januski,Ken wrote :
>I seem to recall I had this problem once and it occurred because
servlet.jar
>wasn't where it should be (/tomcat/common/lib in my setup).
>
>
>-Original Message-
> From: David Smith [mailto:[EMAIL PROTECTED]
>Sent: Thursday, June 24, 2004 11:21 AM
>To: Tomcat Users List
>Subject: Re: Tomcat does not compiles my .jsp!
>
>
>Take a look at your log files for around the time you try to access the
>jsps.  Seems to me there has to be some info related to this error.
>Does the .java file get created in the work directory tree at all?
Also
>check the volume your work directory is on -- is there enough space and
>have you run fsck on it recently?
>
>The last time I experienced what you saw, it was r/w permissions on the
>work directory for user tomcat.  I couldn't see the error until I su'd
>into the tomcat user account and tried to write a file.  Obviously your
>situation is different somehow.
>
>Good luck.  That's all my ideas.
>
>--David
>
>Cyberjobe wrote:
>
> >No, my work dir is ok.
> >
> >And... if I use the Ant the .jsp will "compile". (make a _jsp.java
file)
> >
> >What more can I do?
> >
> >Thanks,
> >Cyberjobe
> >
> >
> >----- Original Message -----
> >From: "David Smith" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Thursday, June 24, 2004 9:18 AM
> >Subject: Re: Tomcat does not compiles my .jsp!
> >
> >
> >
> >
> >>I'm fairly sure the problem is tomcat is having some trouble writing
to
> >>the work directory when it writes your jsp as a java class.  Quick
test:
> >>
> >>su tomcat (if done from root, no password required)
> >>cd /usr/local/jakarta-tomcat-5.0.25/work
> >>vi testfile.txt
> >>type some junk and try to write the file.
> >>
> >>If this fails, you have your problem.  Exit the su session and take
a
> >>look at file permissions on the work directory.  Be sure tomcat owns
it
> >>and has write access.  I'd recommend tomcat user and group have full
> >>permissions (rw, x for directories), others have nothing.
> >>
> >>--David
> >>
> >>
> >
> >
> >-
> >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]



Re: RE: Tomcat does not compiles my .jsp!

2004-06-24 Thread deepak shripat mane
 Hii..
Let me know wat is version of ur tomcat server
if u r using tomcat 4.x then u have to specify servlet.jar in classpath
for tomcat 5.x u can specify servlet-api.jar into classpath file



On Thu, 24 Jun 2004 Januski,Ken wrote :
>I seem to recall I had this problem once and it occurred because servlet.jar
>wasn't where it should be (/tomcat/common/lib in my setup).
>
>
>-Original Message-
> From: David Smith [mailto:[EMAIL PROTECTED]
>Sent: Thursday, June 24, 2004 11:21 AM
>To: Tomcat Users List
>Subject: Re: Tomcat does not compiles my .jsp!
>
>
>Take a look at your log files for around the time you try to access the
>jsps.  Seems to me there has to be some info related to this error.
>Does the .java file get created in the work directory tree at all?  Also
>check the volume your work directory is on -- is there enough space and
>have you run fsck on it recently?
>
>The last time I experienced what you saw, it was r/w permissions on the
>work directory for user tomcat.  I couldn't see the error until I su'd
>into the tomcat user account and tried to write a file.  Obviously your
>situation is different somehow.
>
>Good luck.  That's all my ideas.
>
>--David
>
>Cyberjobe wrote:
>
> >No, my work dir is ok.
> >
> >And... if I use the Ant the .jsp will "compile". (make a _jsp.java file)
> >
> >What more can I do?
> >
> >Thanks,
> >Cyberjobe
> >
> >
> >----- Original Message -----
> >From: "David Smith" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Thursday, June 24, 2004 9:18 AM
> >Subject: Re: Tomcat does not compiles my .jsp!
> >
> >
> >
> >
> >>I'm fairly sure the problem is tomcat is having some trouble writing to
> >>the work directory when it writes your jsp as a java class.  Quick test:
> >>
> >>su tomcat (if done from root, no password required)
> >>cd /usr/local/jakarta-tomcat-5.0.25/work
> >>vi testfile.txt
> >>type some junk and try to write the file.
> >>
> >>If this fails, you have your problem.  Exit the su session and take a
> >>look at file permissions on the work directory.  Be sure tomcat owns it
> >>and has write access.  I'd recommend tomcat user and group have full
> >>permissions (rw, x for directories), others have nothing.
> >>
> >>--David
> >>
> >>
> >
> >
> >-
> >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: Tomcat does not compiles my .jsp!

2004-06-24 Thread Januski, Ken
I seem to recall I had this problem once and it occurred because servlet.jar
wasn't where it should be (/tomcat/common/lib in my setup).


-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 11:21 AM
To: Tomcat Users List
Subject: Re: Tomcat does not compiles my .jsp!


Take a look at your log files for around the time you try to access the 
jsps.  Seems to me there has to be some info related to this error.  
Does the .java file get created in the work directory tree at all?  Also 
check the volume your work directory is on -- is there enough space and 
have you run fsck on it recently?

The last time I experienced what you saw, it was r/w permissions on the 
work directory for user tomcat.  I couldn't see the error until I su'd 
into the tomcat user account and tried to write a file.  Obviously your 
situation is different somehow.

Good luck.  That's all my ideas.

--David

Cyberjobe wrote:

>No, my work dir is ok.
>
>And... if I use the Ant the .jsp will "compile". (make a _jsp.java file)
>
>What more can I do?
>
>Thanks,
>Cyberjobe
>
>
>- Original Message - 
>From: "David Smith" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Thursday, June 24, 2004 9:18 AM
>Subject: Re: Tomcat does not compiles my .jsp!
>
>
>  
>
>>I'm fairly sure the problem is tomcat is having some trouble writing to 
>>the work directory when it writes your jsp as a java class.  Quick test:
>>
>>su tomcat (if done from root, no password required)
>>cd /usr/local/jakarta-tomcat-5.0.25/work
>>vi testfile.txt
>>type some junk and try to write the file.
>>
>>If this fails, you have your problem.  Exit the su session and take a 
>>look at file permissions on the work directory.  Be sure tomcat owns it 
>>and has write access.  I'd recommend tomcat user and group have full 
>>permissions (rw, x for directories), others have nothing.
>>
>>--David
>>
>>
>
>
>-
>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: Tomcat does not compiles my .jsp!

2004-06-24 Thread David Smith
Take a look at your log files for around the time you try to access the 
jsps.  Seems to me there has to be some info related to this error.  
Does the .java file get created in the work directory tree at all?  Also 
check the volume your work directory is on -- is there enough space and 
have you run fsck on it recently?

The last time I experienced what you saw, it was r/w permissions on the 
work directory for user tomcat.  I couldn't see the error until I su'd 
into the tomcat user account and tried to write a file.  Obviously your 
situation is different somehow.

Good luck.  That's all my ideas.
--David
Cyberjobe wrote:
No, my work dir is ok.
And... if I use the Ant the .jsp will "compile". (make a _jsp.java file)
What more can I do?
Thanks,
Cyberjobe
- Original Message - 
From: "David Smith" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, June 24, 2004 9:18 AM
Subject: Re: Tomcat does not compiles my .jsp!

 

I'm fairly sure the problem is tomcat is having some trouble writing to 
the work directory when it writes your jsp as a java class.  Quick test:

su tomcat (if done from root, no password required)
cd /usr/local/jakarta-tomcat-5.0.25/work
vi testfile.txt
type some junk and try to write the file.
If this fails, you have your problem.  Exit the su session and take a 
look at file permissions on the work directory.  Be sure tomcat owns it 
and has write access.  I'd recommend tomcat user and group have full 
permissions (rw, x for directories), others have nothing.

--David
   


-
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: Tomcat does not compiles my .jsp!

2004-06-24 Thread Cyberjobe
No, my work dir is ok.

And... if I use the Ant the .jsp will "compile". (make a _jsp.java file)

What more can I do?

Thanks,
Cyberjobe


- Original Message - 
From: "David Smith" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, June 24, 2004 9:18 AM
Subject: Re: Tomcat does not compiles my .jsp!


> I'm fairly sure the problem is tomcat is having some trouble writing to 
> the work directory when it writes your jsp as a java class.  Quick test:
> 
> su tomcat (if done from root, no password required)
> cd /usr/local/jakarta-tomcat-5.0.25/work
> vi testfile.txt
> type some junk and try to write the file.
> 
> If this fails, you have your problem.  Exit the su session and take a 
> look at file permissions on the work directory.  Be sure tomcat owns it 
> and has write access.  I'd recommend tomcat user and group have full 
> permissions (rw, x for directories), others have nothing.
> 
> --David


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



Re: Tomcat does not compiles my .jsp!

2004-06-24 Thread David Smith
I'm fairly sure the problem is tomcat is having some trouble writing to 
the work directory when it writes your jsp as a java class.  Quick test:

su tomcat (if done from root, no password required)
cd /usr/local/jakarta-tomcat-5.0.25/work
vi testfile.txt
type some junk and try to write the file.
If this fails, you have your problem.  Exit the su session and take a 
look at file permissions on the work directory.  Be sure tomcat owns it 
and has write access.  I'd recommend tomcat user and group have full 
permissions (rw, x for directories), others have nothing.

--David
Cyberjobe wrote:
Well, this is my new index.jsp file:


Hi!


And this the same error message (complete now):
...
  HTTP Status 500 -
  type Exception report
  message
  description The server encountered an internal error () that prevented it
from fulfilling this request.
  exception
org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j
ava:519)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
ava: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)
  root cause
java.io.FileNotFoundException:
/usr/local/jakarta-tomcat-5.0.25/work/Catalina/l
ocalhost/jsp1/org/apache/jsp/index_jsp.java
   java.io.FileOutputStream.open(Native Method)
   java.io.FileOutputStream.(FileOutputStream.java:176)
   java.io.FileOutputStream.(FileOutputStream.java:70)
   org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:188)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j
ava:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
ava: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)
...
My server is on Linux and I create a tomcat user to run it.
What may be wrong?
Thanks,
Cyberjobe
- Original Message - 
From: "Jérôme Duval" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, June 23, 2004 5:38 PM
Subject: RE: Tomcat does not compiles my .jsp!

 

Corrected a stupid mistake:
You probably have an error in you jsp file. To test this write a normal
   

html
 

file with a jsp extension. If you aren't familiar with html, just go to
   

any
 

website and copy the source of the page and use that...
   


-
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: Tomcat does not compiles my .jsp!

2004-06-23 Thread Cyberjobe
Well, this is my new index.jsp file:



Hi!



And this the same error message (complete now):
...
   HTTP Status 500 -

   type Exception report

   message

   description The server encountered an internal error () that prevented it
from fulfilling this request.

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

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j
ava:519)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
ava: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)

   root cause
java.io.FileNotFoundException:
/usr/local/jakarta-tomcat-5.0.25/work/Catalina/l
ocalhost/jsp1/org/apache/jsp/index_jsp.java
java.io.FileOutputStream.open(Native Method)
java.io.FileOutputStream.(FileOutputStream.java:176)
java.io.FileOutputStream.(FileOutputStream.java:70)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:188)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j
ava:511)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
ava: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)
...

My server is on Linux and I create a tomcat user to run it.

What may be wrong?


Thanks,
Cyberjobe


- Original Message - 
From: "Jérôme Duval" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, June 23, 2004 5:38 PM
Subject: RE: Tomcat does not compiles my .jsp!


> Corrected a stupid mistake:
>
> You probably have an error in you jsp file. To test this write a normal
html
> file with a jsp extension. If you aren't familiar with html, just go to
any
> website and copy the source of the page and use that...


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



RE: Tomcat does not compiles my .jsp!

2004-06-23 Thread Jérôme Duval
 Corrected a stupid mistake:

You probably have an error in you jsp file. To test this write a normal html
file with a jsp extension. If you aren't familiar with html, just go to any
website and copy the source of the page and use that...


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



RE: Tomcat does not compiles my .jsp!

2004-06-23 Thread Jérôme Duval
You probably have an error in you jsp file. To test this right a normal html
file with a jsp extension. If you aren't familiar with html, just go to any
website and copy the source of the page and use that...

-Original Message-
From: Cyberjobe [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 23, 2004 3:59 PM
To: [EMAIL PROTECTED]
Subject: Tomcat does not compiles my .jsp!

Hi!

I have followed the tomcat's installation manual and I did make the Servlets
work. But not the .jsp files!

So... I modified the server.xml and put this:


On the /home/cyberjobe/jsp1 I have the file index.jsp (just a test) . I also
have a dir "WEB-INF".

I restart the Tomcat and... try to conect on localhost:8080/jsp1/index.jsp.
I got this messages:

.
org.apache.jasper.JasperException: Unable to compile class for JSP
(...)
java.io.FileNotFoundException:
/usr/local/.../localhost/jsp1/org/apache/jsp/index_jsp.java
(...)
.

What can I do to solve this?

Thanks,
Cyberjobe


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