This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Axis 2 Installation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis 2 Installation" Watch "Axis 2 Installation" New topic
Author

Axis 2 Installation

Shariq Roomi
Ranch Hand

Joined: Oct 19, 2004
Posts: 31
Hi,

I installed tomcat and it is working fine then I followed instructions given on this page http://ws.apache.org/axis/java/install.html but could not install axis.

Any help is appreciated. Thanks

I did following things.

1-Extracted axis zip file
2- Copy following two folders

C:\axis\webapp\axis2-web
C:\axis\webapp\web-inf

to this location C:\Tomcat 5.5\webapps\axis

Accessed localhost:8080/axis

and I am getting this

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 12 in the jsp file: /include/httpbase.jsp
ConfigurationContext cannot be resolved to a type
9:
10: public void jspInit() {
11: ServletContext context = this.getServletConfig().getServletContext();
12: ConfigurationContext configctx = (ConfigurationContext) context.getAttribute(AxisServlet.CONFIGURATION_CONTEXT);
13: Parameter parameter = configctx.getAxisConfiguration().getParameter(Constants.HTTP_FRONTEND_HOST_URL);
14: if (parameter != null) {
15: frontendHostUrl = (String) parameter.getValue();

An error occurred at line: 12 in the jsp file: /include/httpbase.jsp
ConfigurationContext cannot be resolved to a type
9:
10: public void jspInit() {
11: ServletContext context = this.getServletConfig().getServletContext();
12: ConfigurationContext configctx = (ConfigurationContext) context.getAttribute(AxisServlet.CONFIGURATION_CONTEXT);
13: Parameter parameter = configctx.getAxisConfiguration().getParameter(Constants.HTTP_FRONTEND_HOST_URL);
14: if (parameter != null) {
15: frontendHostUrl = (String) parameter.getValue();


An error occurred at line: 12 in the jsp file: /include/httpbase.jsp
AxisServlet.CONFIGURATION_CONTEXT cannot be resolved to a type
9:
10: public void jspInit() {
11: ServletContext context = this.getServletConfig().getServletContext();
12: ConfigurationContext configctx = (ConfigurationContext) context.getAttribute(AxisServlet.CONFIGURATION_CONTEXT);
13: Parameter parameter = configctx.getAxisConfiguration().getParameter(Constants.HTTP_FRONTEND_HOST_URL);
14: if (parameter != null) {
15: frontendHostUrl = (String) parameter.getValue();


An error occurred at line: 13 in the jsp file: /include/httpbase.jsp
Parameter cannot be resolved to a type
10: public void jspInit() {
11: ServletContext context = this.getServletConfig().getServletContext();
12: ConfigurationContext configctx = (ConfigurationContext) context.getAttribute(AxisServlet.CONFIGURATION_CONTEXT);
13: Parameter parameter = configctx.getAxisConfiguration().getParameter(Constants.HTTP_FRONTEND_HOST_URL);
14: if (parameter != null) {
15: frontendHostUrl = (String) parameter.getValue();
16: }


An error occurred at line: 13 in the jsp file: /include/httpbase.jsp
Constants.HTTP_FRONTEND_HOST_URL cannot be resolved to a type
10: public void jspInit() {
11: ServletContext context = this.getServletConfig().getServletContext();
12: ConfigurationContext configctx = (ConfigurationContext) context.getAttribute(AxisServlet.CONFIGURATION_CONTEXT);
13: Parameter parameter = configctx.getAxisConfiguration().getParameter(Constants.HTTP_FRONTEND_HOST_URL);
14: if (parameter != null) {
15: frontendHostUrl = (String) parameter.getValue();
16: }


Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:965)
org.apache.jsp.index_jsp._jspService(index_jsp.java:67)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
Shariq Roomi
Ranch Hand

Joined: Oct 19, 2004
Posts: 31
Okay I found the problem. jars were mising from lib folder
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis 2 Installation
 
Similar Threads
When JSP page is compiled?
The import cannot be resolved
unable to compile class for jsp
HF - S & JSP book : tomcat error
Tomcat server webpage error