Re: Jasper: Error running javac.exe compiler (tc4.1.24)

2003-03-27 Thread Sven Köhler
im on Windows XP pro, jdk1.4.1_02, tomcat 4.1.24. my guess would be the
classpath is too long and gets truncated hence the "C:\Tomc?".
thois would be a good point for ANT-guys! because they could use the 
CLASSPATH-env-variable instead, so the command-line would stay short.

"[javac] Since fork is true, ignoring compiler setting."

i would try it without fork, but where can i set this?
in the web.xml in c:\tomcat\conf (i guess)



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


RE: Jasper: Error running javac.exe compiler (tc4.1.24)

2003-03-27 Thread Chad Johnson
Thomas,
  Is javac.exe in Tomcat's path?  My guess is that Ant can't find
javac.exe

-Chad Johnson

(you may be better off asking this in tomcat-user)

-Original Message-
From: Thomas Heller [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 27, 2003 10:05 AM
To: [EMAIL PROTECTED]
Subject: Jasper: Error running javac.exe compiler (tc4.1.24)


hi all,

i just installed tomcat 4.1.24 on my dev server and since then i can't
call ANY jsp file. jasper always fails with the following exception
reports.

its pretty long so i extracted the main parts:

[snip]
Error running javac.exe compiler
 at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeEx
tern
alCompile(DefaultCompilerAdapter.java:455)
 at
org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExter
nal.
java:81)
 at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:840)
 at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)

[/snip]

[snip]
--- Nested Exception ---
Caused by: java.io.IOException: CreateProcess: javac.exe -classpath
"C:\projects\webapps\stats\WEB-INF\classes;C:\projects\webapps\stats\WEB
-INF
\lib\struts.jar;C:\Tomcat 4.1\shared\classes;C:\Tomcat
4.1\common\classes;C:\Tomcat
4.1\common\endorsed\xercesImpl.jar;C:\Tomcat
4.1\common\endorsed\xmlParserAPIs.jar;C:\Tomcat
4.1\common\lib\activation.jar;C:\Tomcat 4.1\common\lib\ant.jar;C:\Tomcat
4.1\common\lib\catalina-ant.jar;C:\Tomcat
4.1\common\lib\commons-collections.jar;C:\Tomcat
4.1\common\lib\commons-dbcp.jar;C:\Tomcat
4.1\common\lib\commons-logging-api.jar;C:\Tomcat
4.1\common\lib\commons-pool.jar;C:\Tomcat
4.1\common\lib\jasper-compiler.jar;C:\Tomcat
4.1\common\lib\jasper-runtime.jar;C:\Tomcat
4.1\common\lib\jdbc2_0-stdext.jar;C:\Tomcat
4.1\common\lib\jndi.jar;C:\Tomcat 4.1\common\lib\jta.jar;C:\Tomcat
4.1\common\lib\mail.jar;C:\Tomcat
4.1\common\lib\naming-common.jar;C:\Tomcat
4.1\common\lib\naming-factory.jar;C:\Tomcat
4.1\common\lib\naming-resources.jar;C:\Tomcat
4.1\common\lib\pgjdbc2.jar;C:\Tomcat 4.1\common\lib\servlet.jar;C:\Tomc?
 at java.lang.Win32Process.create(Native Method)
 at java.lang.Win32Process.(Win32Process.java:63)
 at java.lang.Runtime.execInternal(Native Method)
 at java.lang.Runtime.exec(Runtime.java:566)

[/snip]

im on Windows XP pro, jdk1.4.1_02, tomcat 4.1.24. my guess would be the
classpath is too long and gets truncated hence the "C:\Tomc?".

"[javac] Since fork is true, ignoring compiler setting."

i would try it without fork, but where can i set this?

bye,
thomas


PS: the full report


-


2003-03-27 16:45:17 Error compiling file: C:\Tomcat
4.1\work\Standalone\localhost\stats\/index_jsp.java
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.


2003-03-27 16:45:17 Info: Compile: javaFileName=C:\Tomcat
4.1\work\Standalone\localhost\stats\/index_jsp.java

classpath=/C:/projects/webapps/stats/WEB-INF/classes/;/C:/projects/webap
ps/s
tats/WEB-INF/lib/struts.jar;/C:/projects/webapps/stats/WEB-INF/classes/;
/C:/
projects/webapps/stats/WEB-INF/lib/struts.jar;C:/Tomcat
4.1/shared/classes/;C:/Tomcat 4.1/common/classes/;C:/Tomcat
4.1/common/endorsed/xercesImpl.jar;C:/Tomcat
4.1/common/endorsed/xmlParserAPIs.jar;C:/Tomcat
4.1/common/lib/activation.jar;C:/Tomcat 4.1/common/lib/ant.jar;C:/Tomcat
4.1/common/lib/catalina-ant.jar;C:/Tomcat
4.1/common/lib/commons-collections.jar;C:/Tomcat
4.1/common/lib/commons-dbcp.jar;C:/Tomcat
4.1/common/lib/commons-logging-api.jar;C:/Tomcat
4.1/common/lib/commons-pool.jar;C:/Tomcat
4.1/common/lib/jasper-compiler.jar;C:/Tomcat
4.1/common/lib/jasper-runtime.jar;C:/Tomcat
4.1/common/lib/jdbc2_0-stdext.jar;C:/Tomcat
4.1/common/lib/jndi.jar;C:/Tomcat 4.1/common/lib/jta.jar;C:/Tomcat
4.1/common/lib/mail.jar;C:/Tomcat
4.1/common/lib/naming-common.jar;C:/Tomcat
4.1/common/lib/naming-factory.jar;C:/Tomcat
4.1/common/lib/naming-resources.jar;C:/Tomcat
4.1/common/lib/pgjdbc2.jar;C:/Tomcat
4.1/common/lib/servlet.jar;C:/Tomcat
4.1/common/lib/tools.jar
 cp=C:\projects\webapps\stats\WEB-INF\classes
 cp=C:\projects\webapps\stats\WEB-INF\lib\struts.jar
 cp=C:\projects\webapps\stats\WEB-INF\classes
 cp=C:\projects\webapps\stats\WEB-INF\lib\struts.jar
 cp=C:\Tomcat 4.1\shared\classes
 cp=C:\Tomcat 4.1\common\classes
 cp=C:\Tomcat 4.1\common\endorsed\xercesImpl.jar
 cp=C:\Tomcat 4.1\common\endorsed\xmlParserAPIs.jar
 cp=C:\Tomcat 4.1\common\lib\activation.jar
 cp=C:\Tomcat 4.1\common\lib\ant.jar
 cp=C:\Tomcat 4.1\common\lib\catalina-ant.jar
 cp=C:\Tomcat 4.1\common\lib\commons-collections.jar
 cp=C:\Tomcat 4.1\common\lib\commons-dbcp.jar
 cp=C:\Tomcat 4.1\common\lib\commons-logging-api.jar
 cp=C:\Tomcat 4.1\common\lib\commons-pool.jar
 cp=C:\Tomcat 4.1\common\lib\jasper-compiler.jar
 cp=C:\Tomcat 4.1\common\lib\jasper-runtime.jar