org.apache.jasper.JasperException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Build failed in Jenkins: Axis2-trunk-java-1.6 #1450
    via by Apache Jenkins Server,
  • Build failed in Jenkins: Axis2-trunk-java-1.6 #1366
    via by Apache Jenkins Server,
  • GitHub comment 6#106326788
    via GitHub by GregDThomas
    ,
  • GWT and struts2 exception
    via Stack Overflow by Avi A
    ,
    • 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.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.java:198) at org.codehaus.mojo.jspc.CompilationMojoSupport.execute(CompilationMojoSupport.groovy:333) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) 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 org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) 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 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) 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

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    andyglick
    12 times, last one,
    34 more bugmates