Re: Compiling JSP files

2005-05-24 Thread Marco Pöhler
You have to add jsp-api.jar to the classpath.

hth 
Marco

---
http://www.kontaktlinsen-preisvergleich.de
http://www.faq-kontaktlinsen.de

Am Dienstag, den 24.05.2005, 08:46 -0500 schrieb Charles P. Killmer:
 I am having a problem where one of my jsp files won't compile.  Tomcat
 successfully creates the java file but it never creates the class file
 and hence never responds to the request for the page.  
  
 I am looking for what needs to be in the command line in order to
 manually compile the java file the gets created in order to look for
 errors in that process.
  
 This is what I have so far but I am getting errors.
 c:\jdk1.5.0\bin\javac -classpath
 %CLASSPATH%;C:\tomcat\work\Catalina\Site1\_;C:\tomcat\common\lib\servlet
 .jar test_jsp.java
  
 
 Errors:
 test_jsp.java:5: package javax.servlet.jsp does not exist
 import javax.servlet.jsp.*;
 ^
 test_jsp.java:8: package org.apache.jasper.runtime does not exist
 public final class test_jsp extends
 org.apache.jasper.runtime.HttpJspBase
  ^
 test_jsp.java:9: package org.apache.jasper.runtime does not exist
 implements org.apache.jasper.runtime.JspSourceDependent {
 ^
  
 
 Thanks
 Charles


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



RE: Compiling JSP files

2005-05-24 Thread Charles P. Killmer
Thanks.  Now I am stuck at:

test_jsp.java:55: cannot find symbol
symbol  : method getAttribute(java.lang.String)
location: interface javax.servlet.http.HttpSession
   USER_ID = session.getAttribute(USER_ID).toString();
^ 

What jar file is javax.servlet.http in?  I am already including servlet.jar.

Charles


-Original Message-
From: Marco Pöhler [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 24, 2005 8:51 AM
To: tomcat-user@jakarta.apache.org
Subject: Re: Compiling JSP files

You have to add jsp-api.jar to the classpath.

hth
Marco

---
http://www.kontaktlinsen-preisvergleich.de
http://www.faq-kontaktlinsen.de

Am Dienstag, den 24.05.2005, 08:46 -0500 schrieb Charles P. Killmer:
 I am having a problem where one of my jsp files won't compile.  Tomcat 
 successfully creates the java file but it never creates the class file 
 and hence never responds to the request for the page.
  
 I am looking for what needs to be in the command line in order to 
 manually compile the java file the gets created in order to look for 
 errors in that process.
  
 This is what I have so far but I am getting errors.
 c:\jdk1.5.0\bin\javac -classpath
 %CLASSPATH%;C:\tomcat\work\Catalina\Site1\_;C:\tomcat\common\lib\servl
 et
 .jar test_jsp.java
  
 
 Errors:
 test_jsp.java:5: package javax.servlet.jsp does not exist import 
 javax.servlet.jsp.*; ^
 test_jsp.java:8: package org.apache.jasper.runtime does not exist 
 public final class test_jsp extends 
 org.apache.jasper.runtime.HttpJspBase
  ^
 test_jsp.java:9: package org.apache.jasper.runtime does not exist
 implements org.apache.jasper.runtime.JspSourceDependent {
 ^
  
 
 Thanks
 Charles


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



RE: Compiling JSP files

2005-05-24 Thread Charles P. Killmer
I just need a way to quickly determine why this script times out without 
compiling.  I have two scripts that create an admin interface to two different 
tables.  The only difference in the files is the underlying table structure.  
One works.  Even if I delete the _jsp.java and class files before making the 
request.  The other does not.  

Any ideas on how to resolve this issue would be appreciated.
Charles

-Original Message-
From: Bernhard Slominski [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 24, 2005 9:47 AM
To: 'Tomcat Users List'
Subject: AW: Compiling JSP files

Hi Charles,

what you can do is to use an ant task for do the precompilation.
This is a bit smarter than via the command line I guess.
The docu is under
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html#Web%20Appl
ication%20Compilation
It's not very well documented, it took me a while to finally get it working, 
but it's working fine for me now.
So if you want to give it a try, I can give you some further assistance, if 
needed.

Cheers 

Bernhard

 -Ursprüngliche Nachricht-
 Von: Charles P. Killmer [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 24. Mai 2005 15:47
 An: Tomcat Users List
 Betreff: Compiling JSP files
 
 
 I am having a problem where one of my jsp files won't compile.  Tomcat 
 successfully creates the java file but it never creates the class file 
 and hence never responds to the request for the page.
  
 I am looking for what needs to be in the command line in order to 
 manually compile the java file the gets created in order to look for 
 errors in that process.
  
 This is what I have so far but I am getting errors.
 c:\jdk1.5.0\bin\javac -classpath
 %CLASSPATH%;C:\tomcat\work\Catalina\Site1\_;C:\tomcat\common\l
 ib\servlet
 .jar test_jsp.java
  
  
 Errors:
 test_jsp.java:5: package javax.servlet.jsp does not exist import 
 javax.servlet.jsp.*; ^
 test_jsp.java:8: package org.apache.jasper.runtime does not exist 
 public final class test_jsp extends 
 org.apache.jasper.runtime.HttpJspBase
  ^
 test_jsp.java:9: package org.apache.jasper.runtime does not exist
 implements org.apache.jasper.runtime.JspSourceDependent {
 ^
  
  
 Thanks
 Charles
 

-
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: Compiling JSP files

2005-05-24 Thread Steve Kirk
Is there a reason why you can't let TC compile the JSP on demand and read
the log output?  Works for me.

Failing that, I suspect your cmd-line classpath has some errors.

What does echo %classpath% produce?

And are you sure these are right in your classpath (from your previous post
below):

C:\tomcat\work\Catalina\Site1\_
C:\tomcat\common\lib\servlet

Not sure what the first one is, and the second should read servlet-api.jar
not servlet.

You also need to add C:\tomcat\common\lib\jsp-api.jar to the classpath too
if you haven't already.

Also you should have all classes in the classpath that your class itself
imports - either explicitly include the full path to each class separately
(drop the .class extension), or a folder containing the class hierarchy in
folders, or the full path to one or more jars that include the classes.

 -Original Message-
 From: Charles P. Killmer [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday 24 May 2005 16:39
 To: Tomcat Users List
 Subject: RE: Compiling JSP files
 
 
 I just need a way to quickly determine why this script times 
 out without compiling.  I have two scripts that create an 
 admin interface to two different tables.  The only difference 
 in the files is the underlying table structure.  One works.  
 Even if I delete the _jsp.java and class files before making 
 the request.  The other does not.  
 
 Any ideas on how to resolve this issue would be appreciated.
 Charles
 
 -Original Message-
 From: Bernhard Slominski [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, May 24, 2005 9:47 AM
 To: 'Tomcat Users List'
 Subject: AW: Compiling JSP files
 
 Hi Charles,
 
 what you can do is to use an ant task for do the precompilation.
 This is a bit smarter than via the command line I guess.
 The docu is under
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.h
 tml#Web%20Appl
 ication%20Compilation
 It's not very well documented, it took me a while to finally 
 get it working, but it's working fine for me now.
 So if you want to give it a try, I can give you some further 
 assistance, if needed.
 
 Cheers 
 
 Bernhard
 
  -Ursprüngliche Nachricht-
  Von: Charles P. Killmer [mailto:[EMAIL PROTECTED]
  Gesendet: Dienstag, 24. Mai 2005 15:47
  An: Tomcat Users List
  Betreff: Compiling JSP files
  
  
  I am having a problem where one of my jsp files won't 
 compile.  Tomcat 
  successfully creates the java file but it never creates the 
 class file 
  and hence never responds to the request for the page.
   
  I am looking for what needs to be in the command line in order to 
  manually compile the java file the gets created in order to 
 look for 
  errors in that process.
   
  This is what I have so far but I am getting errors.
  c:\jdk1.5.0\bin\javac -classpath
  %CLASSPATH%;C:\tomcat\work\Catalina\Site1\_;C:\tomcat\common\l
  ib\servlet
  .jar test_jsp.java
   
   
  Errors:
  test_jsp.java:5: package javax.servlet.jsp does not exist import 
  javax.servlet.jsp.*; ^
  test_jsp.java:8: package org.apache.jasper.runtime does not exist 
  public final class test_jsp extends 
  org.apache.jasper.runtime.HttpJspBase
   ^
  test_jsp.java:9: package org.apache.jasper.runtime does not exist
  implements org.apache.jasper.runtime.JspSourceDependent {
  ^
   
   
  Thanks
  Charles
  
 
 -
 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: Compiling JSP files

2005-05-24 Thread Mark Leone
Steve Kirk mentioned this in his list of files you need to have in your 
classpath, but I'll repeat it as a direct answer to your question. The 
file servlet-api.jar provides the implementation of the 
javax.servlet.http package.


If you put that in your classpath, it should get rid of the compile 
error you listed below.


-Mark

Charles P. Killmer wrote:


Thanks.  Now I am stuck at:

test_jsp.java:55: cannot find symbol
symbol  : method getAttribute(java.lang.String)
location: interface javax.servlet.http.HttpSession
  USER_ID = session.getAttribute(USER_ID).toString();
   ^ 


What jar file is javax.servlet.http in?  I am already including servlet.jar.

Charles


-Original Message-
From: Marco Pöhler [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 24, 2005 8:51 AM

To: tomcat-user@jakarta.apache.org
Subject: Re: Compiling JSP files

You have to add jsp-api.jar to the classpath.

hth
Marco

---
http://www.kontaktlinsen-preisvergleich.de
http://www.faq-kontaktlinsen.de

Am Dienstag, den 24.05.2005, 08:46 -0500 schrieb Charles P. Killmer:
 

I am having a problem where one of my jsp files won't compile.  Tomcat 
successfully creates the java file but it never creates the class file 
and hence never responds to the request for the page.


I am looking for what needs to be in the command line in order to 
manually compile the java file the gets created in order to look for 
errors in that process.


This is what I have so far but I am getting errors.
c:\jdk1.5.0\bin\javac -classpath
%CLASSPATH%;C:\tomcat\work\Catalina\Site1\_;C:\tomcat\common\lib\servl
et
.jar test_jsp.java


Errors:
test_jsp.java:5: package javax.servlet.jsp does not exist import 
javax.servlet.jsp.*; ^
test_jsp.java:8: package org.apache.jasper.runtime does not exist 
public final class test_jsp extends 
org.apache.jasper.runtime.HttpJspBase

^
test_jsp.java:9: package org.apache.jasper.runtime does not exist
   implements org.apache.jasper.runtime.JspSourceDependent {
   ^


Thanks
Charles
   




-
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: Compiling jsp files

2001-04-20 Thread Bernhard Wraase

But You could add jikes.
--
Bernhard
NET.KOSMOS Projektentwicklung und Management GmbH
Tel.: +49 231 5522944
Fax: +49 231 5522930