Re: TOMCAT 4.1.0 and JIKES

2002-09-13 Thread Glenn Nielsen

[EMAIL PROTECTED] wrote:
> Hello, 
> 
> I would like to use Jikes with Tomcat. 
> There is in the documentation of Tomcat: 
> 
> If you wish to use Jikes to compile JSP pages: 
> Download and install jikes. 
> Set the init parameter compiler to jikes. 
> Define the property -Dbuild.compiler.emacs=true when starting Tomcat. 
> If you get an error reporting that jikes can't use UTF8 encoding, try 
> setting the init parameter javaEncoding to ISO-8859-1. 
> 
> I thus downloaded Jikes 1.16 at IBM 
> I added it to the CLASSPATH 
> 
> Then, in $CATALINA_HOME/conf/web.xml  I added these lines: 
> 
> jsp
>  org.apache.jasper.servlet.JspServlet
> 
> jspCompilerPlugin
>  org.apache.jasper.compiler.JikesJavaCompiler
> 
> 
> logVerbosityLevel
> WARNING
> 
> 3
> 
> 

The documentation in the Tomcat 4.1.10 CATALINA_HOME/conf/web.xml is wrong.
Jasper 2 in Tomcat 4 no longer uses the "jspCompilerPlugin" init parameter.
You must use the "compiler" init parameter and set it to "jikes".

> After I do not understand documentation: 
> Define the property -Dbuild.compiler.emacs=true when starting Tomcat. 

Add "-Dbuild.compiler.emacs=true" to your CATALINA_OPTS env variable.
This changes how jikes outputs error message so that Jasper can tell you
what line number in your JSP the error occurred in.

> If you get an error reporting that jikes can't use UTF8 encoding, try 
> setting the init parameter javaEncoding to ISO-8859-1. 

The new documentation on the jakarta site for Jasper is written based on
the current source in CVS.  There was a bug in the Tomcat 4.1.10 release
and Jasper 2 which caused it to not use the javaEncoding you set in the
init paramter. If you are having problems with jikes and encoding you
will either have to use the nightly Tomcat 4.1.x build or wait for the
next Tomcat 4.1.11 release.

> 
> Can somebody help me? 
> 
> (If you are French, answer me of French) 
> (Si vous êtes français, répondez moi en français)
> 
> Thank you in advance. 
> 
> Greetings. 
> 
> Ch.BAROIN




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




RE: Tomcat 4.1.0 fresh configuration problem

2002-09-09 Thread Partycki Piotr

Partycki Piotr wrote:
>> Hi
>> I have a problem with fresh Tomcat 4.1.0 installation.
>> When I try http://127.0.0.1:8080/admin/ I get:
>> "org.apache.jasper.JasperException: Unable to compile
>> class for JSP" ,
>> 
>> and in log I get:
>> 
>> 2002-09-09 12:14:57 Error compiling file:
>> D:\Java\tomcat\work\Standalone\localhost\admin\/login_jsp.java
>> [javac] Compiling 1 source file
>> D:\Java\tomcat\work\Standalone\localhost\admin\login_jsp.java:69: package
>> org.apache.struts.taglib.html does not exist
>>   org.apache.struts.taglib.html.HtmlTag _jspx_th_html_html_0 =
>> (org.apache.struts.taglib.html.HtmlTag)
>>
_jspx_tagPool_html_html_locale.get(org.apache.struts.taglib.html.HtmlTag.cla
>> ss);
>> 
>> My JAVA_HOME variable is set correctly. What could cause this problem?
>
>Install Tomcat on the C: drive.
>(this is apparently caused by an Ant bug; there will be a workaround in 
>4.1.11)
>
>Remy

Thank you, now it works



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




Re: Tomcat 4.1.0 fresh configuration problem

2002-09-09 Thread Remy Maucherat

Partycki Piotr wrote:
> Hi
> I have a problem with fresh Tomcat 4.1.0 installation.
> When I try http://127.0.0.1:8080/admin/ I get:
> "org.apache.jasper.JasperException: Unable to compile
> class for JSP" ,
> 
> and in log I get:
> 
> 2002-09-09 12:14:57 Error compiling file:
> D:\Java\tomcat\work\Standalone\localhost\admin\/login_jsp.java
> [javac] Compiling 1 source file
> D:\Java\tomcat\work\Standalone\localhost\admin\login_jsp.java:69: package
> org.apache.struts.taglib.html does not exist
>   org.apache.struts.taglib.html.HtmlTag _jspx_th_html_html_0 =
> (org.apache.struts.taglib.html.HtmlTag)
> _jspx_tagPool_html_html_locale.get(org.apache.struts.taglib.html.HtmlTag.cla
> ss);
> 
> My JAVA_HOME variable is set correctly. What could cause this problem?

Install Tomcat on the C: drive.
(this is apparently caused by an Ant bug; there will be a workaround in 
4.1.11)

Remy


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




RE: tomcat 4.1.0

2002-09-06 Thread Turner, John


Any.

John


> -Original Message-
> From: Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 12:06 PM
> To: Tomcat Users List
> Subject: tomcat 4.1.0
> 
> 
> the new tomcat 4.1.0 what uses? the mod_jk or the mod_webapps? (linux)
> thanks
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




RE: Tomcat 4.1.0 nightly build - problem deploying

2002-05-30 Thread Kurt Heston

I had the same problem on my W2K machine.

The JVM was looking to create files in a folder called "temp" in the
directory from which Tomcat was started as indicated by this JVM property:

java.io.tmpdir=.\temp

Since I was starting Tomcat from the %TOMCAT_HOME% directory with the
command "bin\startup", creating a folder called "temp" under "TOMCAT_HOME"
did the trick.

Hope this helps.

--Kurt

-Original Message-
From: Jakarta Tomcat Newsgroup
[mailto:@[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 6:25 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.0 nightly build - problem deploying


Subject: Tomcat 4.1.0 nightly build - problem deploying
From: "Chris Miller" <[EMAIL PROTECTED]>
 ===
I'm trying to deploy an app on the latest nightly build of Tomcat 4.1.
Several of the WEB-INF/lib/*.jar files are not being deployed, and the error
is the same for each one (shown below). Any ideas what is causing this? I
assume that there's "something" wrong with the jar file, but I have no idea
what that something is...  What is Tomcat actually doing with the jar file
at this point?

Any help greatly appreciated!

Thanks,
Chris


2002-05-23 14:04:45 WebappLoader[]: Deploy JAR /WEB-INF/lib/oscache.jar to
C:\mydocs\deploy\swebcms\bin\..\webapps\swebcms\WEB-INF\lib\oscache.jar

...

2002-05-23 14:04:45 WebappLoader[]: Reloading checks are enabled for this
Context
2002-05-23 14:04:47 ContextConfig[] Exception processing JAR at resource
path /WEB-INF/lib/oscache.jar
javax.servlet.ServletException: Exception processing JAR at resource path
/WEB-INF/lib/oscache.jar
 at org.apache.catalina.startup.ContextConfig.tldScanJar(Unknown Source)
 at org.apache.catalina.startup.ContextConfig.tldScan(Unknown Source)
 at org.apache.catalina.startup.ContextConfig.start(Unknown Source)
 at org.apache.catalina.startup.ContextConfig.lifecycleEvent(Unknown Source)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown
Source)
 at org.apache.catalina.core.StandardContext.start(Unknown Source)
 at org.apache.catalina.core.ContainerBase.start(Unknown Source)
 at org.apache.catalina.core.StandardHost.start(Unknown Source)
 at org.apache.catalina.core.ContainerBase.start(Unknown Source)
 at org.apache.catalina.core.StandardEngine.start(Unknown Source)
 at org.apache.catalina.core.StandardService.start(Unknown Source)
 at org.apache.catalina.core.StandardServer.start(Unknown Source)
 at org.apache.catalina.startup.Catalina.start(Unknown Source)
 at org.apache.catalina.startup.Catalina.execute(Unknown Source)
 at org.apache.catalina.startup.Catalina.process(Unknown Source)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
- Root Cause -
java.io.IOException: The system cannot find the path specified
 at java.io.Win32FileSystem.createFileExclusively(Native Method)
 at java.io.File.checkAndCreate(File.java:1162)
 at java.io.File.createTempFile(File.java:1247)
 at java.io.File.createTempFile(File.java:1284)
 at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:143)
 at java.security.AccessController.doPrivileged(Native Method)
 at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:138)
 at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:43)
 at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:81)
 at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:88)
 at
sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:7
2)
 at org.apache.catalina.startup.ContextConfig.tldScanJar(Unknown Source)
 at org.apache.catalina.startup.ContextConfig.tldScan(Unknown Source)
 at org.apache.catalina.startup.ContextConfig.start(Unknown Source)
 at org.apache.catalina.startup.ContextConfig.lifecycleEvent(Unknown Source)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown
Source)
 at org.apache.catalina.core.StandardContext.start(Unknown Source)
 at org.apache.catalina.core.ContainerBase.start(Unknown Source)
 at org.apache.catalina.core.StandardHost.start(Unknown Source)
 at org.apache.catalina.core.ContainerBase.start(Unknown Source)
 at org.apache.catalina.core.StandardEngine.start(Unknown Source)
 at org.apache.catalina.core.StandardService.start(Unknown Source)
 at org.apache.catalina.core.StandardServer.start(Unknown Source)
 at org.apache.catalina.startup.Catalina.start(Unknown Source)
 at org.apache.catalina.startup.Catalina.execute(Unknown Source)
 at org.apache.catalina.startup.Catalina.process(Unknown Source)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Unknown Source)



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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