Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. JspCompilerImpl.compile() has thrown a JasperException
    Unsorted
    0
    1
    0
  2. Compiler.compile() has thrown a JasperException
    Tomcat Jasper Compiler
    54
    12
    15

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
org.apache.jasper.JasperException: 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:
5 matching frames hidden
    at org.apache.jasper.JspC.execute(JspC.java:1159)
    at org.codehaus.mojo.jspc.compiler.tomcat6.JspCompilerImpl.compile(JspCompilerImpl.java:111)

External results for this pattern (2)

  1. GregDThomasvia GitHub1 year 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:
    Show stack trace
  2. Apache Jenkins Servervia axis-java-dev2 years 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 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:
    Show stack trace