org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 1 in the generated java file The type org.apache.axiom.om.OMElement cannot be resolved. It is indirectly referenced from required .class files An error occurred at line: 1 in the generated java file The type org.apache.axiom.om.OMNamespace cannot be resolved. It is indirectly referenced from required .class files An error occurred at line: 18 in the generated java file The import org.apache.axiom.om.OMElement cannot be resolved An error occurred at line: 19 in the generated java file Only a type can be imported. org.apache.axiom.om.OMFactory resolves to a package An error occurred at line: 20 in the generated java file The import org.apache.axiom.om.OMNamespace cannot be resolved An error occurred at line: 21 in the generated java file Only a type can be imported. org.apache.axiom.om.OMAbstractFactory resolves to a package An error occurred at line: 319 in the jsp file: /axis2-web/HappyAxis.jsp OMElement cannot be resolved to a type 316: 317: private String value; 318: 319: private OMElement createEnvelope() { 320: OMFactory fac = OMAbstractFactory.getOMFactory(); 321: OMNamespace omNs = fac.createOMNamespace("http://axisversion.sample", "ns1"); 322: OMElement method = fac.createOMElement("getVersion", omNs); An error occurred at line: 320 in the jsp file: /axis2-web/HappyAxis.jsp OMFactory cannot be resolved to a type 317: private String value; 318: 319: private OMElement createEnvelope() { 320: OMFactory fac = OMAbstractFactory.getOMFactory(); 321: OMNamespace omNs = fac.createOMNamespace("http://axisversion.sample", "ns1"); 322: OMElement method = fac.createOMElement("getVersion", omNs); 323: OMElement value = fac.createOMElement("myValue", omNs); An error occurred at line: 320 in the jsp file: /axis2-web/HappyAxis.jsp OMAbstractFactory cannot be resolved 317: private String value; 318: 319: private OMElement createEnvelope() { 320: OMFactory fac = OMAbstractFactory.getOMFactory(); 321: OMNamespace omNs = fac.createOMNamespace("http://axisversion.sample", "ns1"); 322: OMElement method = fac.createOMElement("getVersion", omNs); 323: OMElement value = fac.createOMElement("myValue", omNs); An error occurred at line: 321 in the jsp file: /axis2-web/HappyAxis.jsp OMNamespace cannot be resolved to a type 318: 319: private OMElement createEnvelope() { 320: OMFactory fac = OMAbstractFactory.getOMFactory(); 321: OMNamespace omNs = fac.createOMNamespace("http://axisversion.sample", "ns1"); 322: OMElement method = fac.createOMElement("getVersion", omNs); 323: OMElement value = fac.createOMElement("myValue", omNs); 324: method.addChild(value); An error occurred at line: 322 in the jsp file: /axis2-web/HappyAxis.jsp OMElement cannot be resolved to a type 319: private OMElement createEnvelope() { 320: OMFactory fac = OMAbstractFactory.getOMFactory(); 321: OMNamespace omNs = fac.createOMNamespace("http://axisversion.sample", "ns1"); 322: OMElement method = fac.createOMElement("getVersion", omNs); 323: OMElement value = fac.createOMElement("myValue", omNs); 324: method.addChild(value); 325: return method; An error occurred at line: 323 in the jsp file: /axis2-web/HappyAxis.jsp OMElement cannot be resolved to a type 320: OMFactory fac = OMAbstractFactory.getOMFactory(); 321: OMNamespace omNs = fac.createOMNamespace("http://axisversion.sample", "ns1"); 322: OMElement method = fac.createOMElement("getVersion", omNs); 323: OMElement value = fac.createOMElement("myValue", omNs); 324: method.addChild(value); 325: return method; 326: } An error occurred at line: 337 in the jsp file: /axis2-web/HappyAxis.jsp OMElement cannot be resolved to a type 334: ///axis2/axis2-web/services/version 335: IP = IP.replaceAll("axis2-web", ""); 336: 337: OMElement payload = createEnvelope(); 338: ConfigurationContext configctx = 339: ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null); 340: ServiceClient client = new ServiceClient(configctx, null); An error occurred at line: 337 in the jsp file: /axis2-web/HappyAxis.jsp The method createEnvelope() is undefined for the type HappyAxis_jsp 334: ///axis2/axis2-web/services/version 335: IP = IP.replaceAll("axis2-web", ""); 336: 337: OMElement payload = createEnvelope(); 338: ConfigurationContext configctx = 339: ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null); 340: ServiceClient client = new ServiceClient(configctx, null); An error occurred at line: 347 in the jsp file: /axis2-web/HappyAxis.jsp OMElement cannot be resolved to a type 344: options.setTo(targetEPR); 345: options.setTransportInProtocol(Constants.TRANSPORT_HTTP); 346: 347: OMElement result = client.sendReceive(payload); 348: StringWriter writer = new StringWriter(); 349: result.serialize(XMLOutputFactory.newInstance().createXMLStreamWriter(writer)); 350: writer.flush(); Stacktrace:

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via axis-java-dev by Apache Jenkins Server, 1 year ago
Unable to compile class for JSP: An error occurred at line: 1 in the generated java file The type org.apache.axiom.om.OMElement cannot be resolved. It is indirectly referenced from required .class files An error occurred at line: 1 in the generated
via axis-java-dev by Apache Jenkins Server, 1 year ago
Unable to compile class for JSP: An error occurred at line: 1 in the generated java file The type org.apache.axiom.om.OMElement cannot be resolved. It is indirectly referenced from required .class files An error occurred at line: 1 in the generated
via GitHub by GregDThomas
, 7 months ago
Unable to compile class for JSP: An error occurred at line: 7 in the generated java file Syntax error on token "import", Identifier expected after this token Stacktrace:
via Coderanch by Bryan Brown, 11 months ago
Unable to compile class for JSP: An error occurred at line: 2 in the jsp file: /ChooseReport.jsp orderreportgateway cannot be resolved to a type 1: <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 2: <jsp:useBean id="reportList
via GitHub by mumblez
, 2 years ago
Unable to compile class for JSP: An error occurred at line: 45 in the jsp file: /xlogout-done.jsp Syntax error on tokens, delete these tokens 42: 43: String currentUser = currentPrincipal; 44: 45: <% if
via GitHub by mumblez
, 2 years ago
Unable to compile class for JSP: An error occurred at line: 45 in the jsp file: /xlogout-done.jsp Syntax error on tokens, delete these tokens 42: 43: String currentUser = currentPrincipal; 44: 45: <% if
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 1 in the generated java file The type org.apache.axiom.om.OMElement cannot be resolved. It is indirectly referenced from required .class files An error occurred at line: 1 in the generated java file The type org.apache.axiom.om.OMNamespace cannot be resolved. It is indirectly referenced from required .class files An error occurred at line: 18 in the generated java file The import org.apache.axiom.om.OMElement cannot be resolved An error occurred at line: 19 in the generated java file Only a type can be imported. org.apache.axiom.om.OMFactory resolves to a package An error occurred at line: 20 in the generated java file The import org.apache.axiom.om.OMNamespace cannot be resolved An error occurred at line: 21 in the generated java file Only a type can be imported. org.apache.axiom.om.OMAbstractFactory resolves to a package An error occurred at line: 319 in the jsp file: /axis2-web/HappyAxis.jsp OMElement cannot be resolved to a type 316: 317: private String value; 318: 319: private OMElement createEnvelope() { 320: OMFactory fac = OMAbstractFactory.getOMFactory(); 321: OMNamespace omNs = fac.createOMNamespace("http://axisversion.sample", "ns1"); 322: OMElement method = fac.createOMElement("getVersion", omNs); An error occurred at line: 320 in the jsp file: /axis2-web/HappyAxis.jsp OMFactory cannot be resolved to a type 317: private String value; 318: 319: private OMElement createEnvelope() { 320: OMFactory fac = OMAbstractFactory.getOMFactory(); 321: OMNamespace omNs = fac.createOMNamespace("http://axisversion.sample", "ns1"); 322: OMElement method = fac.createOMElement("getVersion", omNs); 323: OMElement value = fac.createOMElement("myValue", omNs); An error occurred at line: 320 in the jsp file: /axis2-web/HappyAxis.jsp OMAbstractFactory cannot be resolved 317: private String value; 318: 319: private OMElement createEnvelope() { 320: OMFactory fac = OMAbstractFactory.getOMFactory(); 321: OMNamespace omNs = fac.createOMNamespace("http://axisversion.sample", "ns1"); 322: OMElement method = fac.createOMElement("getVersion", omNs); 323: OMElement value = fac.createOMElement("myValue", omNs); An error occurred at line: 321 in the jsp file: /axis2-web/HappyAxis.jsp OMNamespace cannot be resolved to a type 318: 319: private OMElement createEnvelope() { 320: OMFactory fac = OMAbstractFactory.getOMFactory(); 321: OMNamespace omNs = fac.createOMNamespace("http://axisversion.sample", "ns1"); 322: OMElement method = fac.createOMElement("getVersion", omNs); 323: OMElement value = fac.createOMElement("myValue", omNs); 324: method.addChild(value); An error occurred at line: 322 in the jsp file: /axis2-web/HappyAxis.jsp OMElement cannot be resolved to a type 319: private OMElement createEnvelope() { 320: OMFactory fac = OMAbstractFactory.getOMFactory(); 321: OMNamespace omNs = fac.createOMNamespace("http://axisversion.sample", "ns1"); 322: OMElement method = fac.createOMElement("getVersion", omNs); 323: OMElement value = fac.createOMElement("myValue", omNs); 324: method.addChild(value); 325: return method; An error occurred at line: 323 in the jsp file: /axis2-web/HappyAxis.jsp OMElement cannot be resolved to a type 320: OMFactory fac = OMAbstractFactory.getOMFactory(); 321: OMNamespace omNs = fac.createOMNamespace("http://axisversion.sample", "ns1"); 322: OMElement method = fac.createOMElement("getVersion", omNs); 323: OMElement value = fac.createOMElement("myValue", omNs); 324: method.addChild(value); 325: return method; 326: } An error occurred at line: 337 in the jsp file: /axis2-web/HappyAxis.jsp OMElement cannot be resolved to a type 334: ///axis2/axis2-web/services/version 335: IP = IP.replaceAll("axis2-web", ""); 336: 337: OMElement payload = createEnvelope(); 338: ConfigurationContext configctx = 339: ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null); 340: ServiceClient client = new ServiceClient(configctx, null); An error occurred at line: 337 in the jsp file: /axis2-web/HappyAxis.jsp The method createEnvelope() is undefined for the type HappyAxis_jsp 334: ///axis2/axis2-web/services/version 335: IP = IP.replaceAll("axis2-web", ""); 336: 337: OMElement payload = createEnvelope(); 338: ConfigurationContext configctx = 339: ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null); 340: ServiceClient client = new ServiceClient(configctx, null); An error occurred at line: 347 in the jsp file: /axis2-web/HappyAxis.jsp OMElement cannot be resolved to a type 344: options.setTo(targetEPR); 345: options.setTransportInProtocol(Constants.TRANSPORT_HTTP); 346: 347: OMElement result = client.sendReceive(payload); 348: StringWriter writer = new StringWriter(); 349: result.serialize(XMLOutputFactory.newInstance().createXMLStreamWriter(writer)); 350: writer.flush(); Stacktrace:
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
at org.apache.jasper.JspC.processFile(JspC.java:1010)
at org.apache.jasper.JspC.execute(JspC.java:1159)
at org.codehaus.mojo.jspc.compiler.tomcat6.JspCompilerImpl.compile(JspCompilerImpl.java:111)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:766)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:754)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
at org.codehaus.mojo.jspc.CompilationMojoSupport.execute(CompilationMojoSupport.groovy:333)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:100)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:66)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 6 months ago
35 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.