|
From: Chris H. <ch...@ha...> - 2003-12-03 08:36:19
|
There's not enough error listing from the compiler to work out exactly
what has gone wrong.
Here are some well-known Gates Gotchas to check.
You don't tell us which particular OS you are using. I'll assume it's
an earlier type of Windows. The DOS command system ( present, I think,
in all versions up to and including W2000) has a limited amount of
space allocated to the environment variables (in which the classpath,
java_home, jetty_home etc. etc. all have to be stored). I think the
shipped default is 256 bytes!
In your AUTOEXEC.BAT file you need to put
SHELL=command.com /e:32768
which should give you enough space for all needed environment
variables, including the classpath. If you have a later Windows
version you may have to hunt around to find out how to have the same
effect, or it may move it into the Registry for you on rebooting.
The other things to check are:
(1) Make sure the capitalization of all drive and file names matches
that shown when you use DOS to list the files,
(2) Here's a great one: You have correctly used the DOS 8-character
short-form (PROGRA~1) etc. *however* the serial number ~1, ~2 etc.
depends on how many other names have the same first 6 characters in
that same directory . So, if you set up a script which uses PROGRA~1
as the DOS alias for 'Program Files' and on a different machine there
is a second name 'ProgramFiles' (no space) to the same directory, the
abbreviated form of 'Program Files' (with a space) could change to
PROGRA~2. In other words the 8-character DOS abbreviated names
interact with one another! In your case I would be suspicious of
LOCALS~1.
HTH
Chris
<iv...@oo...>said
> I'm not sure what I could be doing wrong here. I've been using my
current
> setup succesfully for some time, but now that I'm using a different
> workstation with a few software upgrades (not directly related to
the
> project) things have gone all fubar. For some reason, Jetty fails
when it
> tries to compile a simple JSP.
> The jetty Server instance is programmatically configured and run
(via my
> IDE) as a stand alone application (ie: no special web crap). It
boots fine
> and even binds to port 80 happily.
> My classpath is quite long... so long in fact that when run in at
win32
> command prompt it breaks because the input buffer is too long. I'm
> wondering if that might have something to do with it ?
>
> Anyway, any comments/help very much appreciated..
>
>
> -snip ------ Error Log ----
> 16:01:00.852 EVENT Starting Jetty/4.2.14
> 16:01:01.223 EVENT Checking Resource aliases
> 16:01:01.553 EVENT Started
> WebApplicationContext[/,C:\work\trunk/webtier/zed/]
> 16:01:06.020 EVENT Started SocketListener on 0.0.0.0:80
> 16:01:06.020 EVENT Started org.mortbay.jetty.Server@860d49
> 16:01:15.523 EVENT Error compiling file:
> C:\DOCUME~1\usr\LOCALS~1\Temp\Jetty__80__\/index_jsp.java
[javac]
> Since fork is true, ignoring compiler setting.
> [javac] Compiling 1 source file
> [javac] Since fork is true, ignoring compiler setting.
> 16:01:15.523 EVENT Info: Compile:
>
javaFileName=C:\DOCUME~1\usr\LOCALS~1\Temp\Jetty__80__\/index_jsp.java
> <classpath dump omitted>
> work dir=C:\DOCUME~1\usr\LOCALS~1\Temp\Jetty__80__
> srcDir=C:\DOCUME~1\usr\LOCALS~1\Temp\Jetty__80__
> include=index_jsp.java
> Exception compiling Error running javac.exe compiler
>
> 16:01:15.533 WARN!! Exception:
> Error running javac.exe compiler
> at
>
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.execute
ExternalCompile(DefaultCompilerAdapter.java:455)
> at
>
org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExt
ernal.java:81)
> at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:840)
> at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
> at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
> at
>
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.
java:473)
> at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.
java:190)
> at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:29
5)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:356)
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by OSDN's Audience Survey.
> Help shape OSDN's sites and tell us what you think. Take this
> five minute survey and you could win a $250 Gift Certificate.
> http://www.wrgsurveys.com/2003/osdntech03.php?site=8
> _______________________________________________
> Jetty-support mailing list
> Jet...@li...
> https://lists.sourceforge.net/lists/listinfo/jetty-support
>
>
|