RE: What to put into JAVA_HOME on Windows xp

2005-09-26 Thread Ramnish Kalsi
Remove bin from the JAVA_HOME. 

JAVA_HOME=C:\JDK1.4\AppServer\jdk

-ramnish.
-Original Message-
From: Markus Hapke [mailto:[EMAIL PROTECTED] 
Sent: 25 September 2005 21:27
To: tomcat-user@jakarta.apache.org
Subject: What to put into JAVA_HOME on Windows xp

Hello,

I just installed tomcat 5.0.28 successfully.

Then tested the samples in
C:\TOMCAT\webapps\jsp-examples\jsp2 - they worked.

Thed tried to test a .jsp of my own- getting the error msg in the MS
Internet-Explorer:
=== BEGIN of error Msg  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.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:97)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3
46)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)

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

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
95)

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:802)


root cause 

Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the
JDK

org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(C
ompilerAdapterFactory.java:106)
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)

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

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
95)

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:802)


note The full stack trace of the root cause is available in the Apache
Tomcat/5.0.28 logs.
=== END of error Msg= ==

I set the environment entry of JAVA_HOME to C:\JDK1.4\AppServer\jdk\bin

Is that correct?

OK, nobody of you could know where I have my J2EE (1.4) :
it is 'mounted' under:
C:\JDK1.4\AppServer
and i can find the javac.exe under: C:\JDK1.4\AppServer\jdk\bin

Is my entry of the JAVA_HOME correct? 

Is there another error?

Thanx in advance, Markus

--
,,

5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


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



RE: jasper jsp precompilation error

2005-09-07 Thread Ramnish Kalsi
This method was added in Servlet API version 2.3. 

Can you check if you are using that version ? 

Have a look at whats in your classpath at JSP precompilation time !!!


-Original Message-
From: Aaron Phillips [mailto:[EMAIL PROTECTED]
Sent: 06 September 2005 23:27
To: tomcat-user@jakarta.apache.org
Subject: jasper jsp precompilation error


Hi
I am trying to do JSP precompilation as described at 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html. I can run

the application fine if I do not precompile, but when I do attempt to 
precompile the JSP, I get the message: 

BUILD FAILED
/home/aaron/projects/cdquery/build.xml:307: java.lang.NoSuchMethodError: 
javax.servlet.ServletContext.getResourcePaths
(Ljava/lang/String;)Ljava/util/Set;

I am using Tomcat 5.0.30  Ant 1.6.2.
Does anyone have an idea what I should do? Below is my ant target XML.
Thanks,
Aaron

target name=jspc

taskdef classname=org.apache.jasper.JspC name=jasper2 
classpath id=jspc.classpath
pathelement location=${java.home}/../lib/tools.jar/
fileset dir=${catalina.home}/bin
include name=*.jar/
/fileset
fileset dir=${catalina.home}/server/lib
include name=*.jar/
/fileset
fileset dir=${catalina.home}/common/lib
include name=*.jar/
/fileset
/classpath
/taskdef

jasper2
validateXml=false
uriroot=${web.home}
webXmlFragment=${web.home}/WEB-INF/generated_web.xml
outputDir=${web.home}/WEB-INF/src /

/target


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


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



JSP Precompilation

2005-08-17 Thread Ramnish Kalsi
I am trying to use jasper2 to pre-compile the JSPs as part of build process.
The compiler is complaining with the message:

ERROR - the file 'blah/blah/jsp' generated the following general exception:
java.lang.NullPointerException'

After spending some time, i realized that the jsp files which had invalid
usage of tags were the culprits.

The errors disappeared after tag cleaning. Now this error is only coming for
2 files, and i am positive that there is nothing wrong with tags. 

What could be other possible reasons ?

Is there any way of configuring the compiler to output detailed stacktrace,
if it fails at any jsp file compilation.

Tomcat version is 4.1.

thanks,
ramnish.


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


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