We're having a bit of an issue here running the Axis2 1.5.1 WAR distribution 
inside of a directory with spaces in its name.  Specifically, our Tomcat is 
under the following:

D:\Program Files\ProactiveNet\pw\tomcat\webapps

5.1 WAR distribution inside of a directory with spaces in its name.  
Specifically, our Tomcat is under the following:

When we deploy Axis2 to this, with or without services, we get the following 
sort of errors:

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:

An error occurred at line: 6 in the generated java file
D:\Program 
Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:6:
 package org.apache.axis2 does not exist
import org.apache.axis2.AxisFault;
                       ^
--------------------------------------------------------------------------------

There are actually a lot more errors than that, so I've attached a copy of the 
HTML source that is being displayed.

Notice that this issue does not happen if we run in a Tomcat without spaces in 
the directory path.  Also, we took a look at the classpath that Tomcat is 
forming here and it looks like it is being escaped and formatted improperly:

classpath=/D:/Program%20Files/ProactiveNet/pw/tomcat/webapps/atriumws76/WEB-INF/classes/;/D:/Program%20Files/ProactiveNet/pw/t...

Notice the slash at the beginning of the drive name, and the conversion of 
spaces to %20.

One of our validation links shows the following JRE version:  
java.runtime.version=1.6.0_16-b01.  I know some issues existed previously with 
1.6 JDK, but I thought this revision would have that issue resolved.

Does anyone have an idea what the problem is or how we can fix it?
Title: Apache Tomcat/6.0.18 - Error report

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: 

An error occurred at line: 6 in the generated java file
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:6: package org.apache.axis2 does not exist
import org.apache.axis2.AxisFault;
                       ^


An error occurred at line: 7 in the generated java file
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:7: package org.apache.axis2 does not exist
import org.apache.axis2.Constants;
                       ^


An error occurred at line: 8 in the generated java file
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:8: package org.apache.axis2.addressing does not exist
import org.apache.axis2.addressing.EndpointReference;
                                  ^


An error occurred at line: 9 in the generated java file
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:9: package org.apache.axis2.client does not exist
import org.apache.axis2.client.Options;
                              ^


An error occurred at line: 10 in the generated java file
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:10: package org.apache.axis2.client does not exist
import org.apache.axis2.client.ServiceClient;
                              ^


An error occurred at line: 11 in the generated java file
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:11: package org.apache.axis2.context does not exist
import org.apache.axis2.context.ConfigurationContext;
                               ^


An error occurred at line: 12 in the generated java file
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:12: package org.apache.axis2.context does not exist
import org.apache.axis2.context.ConfigurationContextFactory;
                               ^


An error occurred at line: 13 in the generated java file
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:13: package org.apache.axis2.context does not exist
import org.apache.axis2.context.ServiceContext;
                               ^


An error occurred at line: 14 in the generated java file
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:14: package org.apache.axis2.context does not exist
import org.apache.axis2.context.ServiceGroupContext;
                               ^


An error occurred at line: 15 in the generated java file
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:15: package org.apache.axis2.deployment.util does not exist
import org.apache.axis2.deployment.util.PhasesInfo;
                                       ^


An error occurred at line: 16 in the generated java file
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:16: package org.apache.axis2.description does not exist
import org.apache.axis2.description.AxisModule;
                                   ^


An error occurred at line: 17 in the generated java file
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:17: package org.apache.axis2.description does not exist
import org.apache.axis2.description.AxisOperation;
                                   ^


An error occurred at line: 18 in the generated java file
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:18: package org.apache.axis2.description does not exist
import org.apache.axis2.description.AxisService;
                                   ^


An error occurred at line: 19 in the generated java file
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:19: package org.apache.axis2.description does not exist
import org.apache.axis2.description.AxisServiceGroup;
                                   ^


An error occurred at line: 20 in the generated java file
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:20: package org.apache.axis2.description does not exist
import org.apache.axis2.description.Parameter;
                                   ^


An error occurred at line: 21 in the generated java file
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:21: package org.apache.axis2.engine does not exist
import org.apache.axis2.engine.AxisConfiguration;
                              ^


An error occurred at line: 22 in the generated java file
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:22: package org.apache.axis2.engine does not exist
import org.apache.axis2.engine.Handler;
                              ^


An error occurred at line: 23 in the generated java file
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:23: package org.apache.axis2.engine does not exist
import org.apache.axis2.engine.Phase;
                              ^


An error occurred at line: 24 in the generated java file
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:24: package org.apache.axis2.transport.http does not exist
import org.apache.axis2.transport.http.AxisServlet;
                                      ^


An error occurred at line: 25 in the generated java file
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:25: package org.apache.axis2.util does not exist
import org.apache.axis2.util.JavaUtils;
                            ^


An error occurred at line: 51 in the jsp file: /axis2-web/include/httpbase.jsp
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:46: cannot find symbol
symbol  : class ConfigurationContext
location: class org.apache.jsp.axis2_002dweb.include.httpbase_jsp
    ConfigurationContext configctx = (ConfigurationContext) context.getAttribute(AxisServlet.CONFIGURATION_CONTEXT);
    ^

null

An error occurred at line: 51 in the jsp file: /axis2-web/include/httpbase.jsp
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:46: cannot find symbol
symbol  : class ConfigurationContext
location: class org.apache.jsp.axis2_002dweb.include.httpbase_jsp
    ConfigurationContext configctx = (ConfigurationContext) context.getAttribute(AxisServlet.CONFIGURATION_CONTEXT);
                                      ^

null

An error occurred at line: 51 in the jsp file: /axis2-web/include/httpbase.jsp
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:46: cannot find symbol
symbol  : variable AxisServlet
location: class org.apache.jsp.axis2_002dweb.include.httpbase_jsp
    ConfigurationContext configctx = (ConfigurationContext) context.getAttribute(AxisServlet.CONFIGURATION_CONTEXT);
                                                                                 ^

null

An error occurred at line: 51 in the jsp file: /axis2-web/include/httpbase.jsp
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:48: cannot find symbol
symbol  : class Parameter
location: class org.apache.jsp.axis2_002dweb.include.httpbase_jsp
        Parameter parameter = configctx.getAxisConfiguration().getParameter(Constants.HTTP_FRONTEND_HOST_URL);
        ^

null

An error occurred at line: 51 in the jsp file: /axis2-web/include/httpbase.jsp
D:\Program Files\ProactiveNet\pw\tomcat\work\Catalina\127.0.0.1\atriumws76\org\apache\jsp\axis2_002dweb\include\httpbase_jsp.java:48: cannot find symbol
symbol  : variable Constants
location: class org.apache.jsp.axis2_002dweb.include.httpbase_jsp
        Parameter parameter = configctx.getAxisConfiguration().getParameter(Constants.HTTP_FRONTEND_HOST_URL);
                                                                            ^
25 errors

null

Stacktrace:
	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
	org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:255)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
	java.security.AccessController.doPrivileged(Native Method)
	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
	java.security.AccessController.doPrivileged(Native Method)
	java.security.AccessController.doPrivileged(Native Method)
	org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
	org.apache.jsp.axis2_002dweb.index_jsp._jspService(index_jsp.java:59)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
	java.security.AccessController.doPrivileged(Native Method)
	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.


Apache Tomcat/6.0.18

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to