Pre_compiling jsp's with weblogic.jspc error

Hi all,
Im using weblogic 11g weblogic.jspc to try to pre-compile JSP's that were created with struts 1.2.x under OC4J 9.0.x.
The jsp's do compile under OC4J's jsp compiler.
Im getting many errors that seem to be related to the version difference between struts1.2.x used with OC4J and the struts bundled with weblogic.
I'm trying to "force" the weblogic.jspc to use the older version of struts but have not been successful.
This is on Windows XP SP4 box.
So far I've tried:
adding the -classpath option
adding the -d option to specify a directory
adding the -backwardcompatible option
adding the -librarydir option
here's my command line format:
java weblogic.jspc -classpath .;c:\...\struts.jar;WEB-INF\struts-bean.tld;c:\...\struts-validator.jar;c:\...\struts-nested.jar;c:\...\strutstest2.0.0.jar...
-backwardcompatible -d WEB-INF addNote.jsp
heres a sample of output:
jspc failed with errors :weblogic.servlet.jp.CompilationException:
addNote.jsp:11:57 The method setContent(String) in the type PutTag is not applicable for the arguments (Object)
<template:put name="title" direct="true" content="<%=request.getAttribute(Constants.TITLE)%>"/>
addNote.jsp:15:31: Th method setAction(String) in the type FormTag is not applicable for the arguments (Object)
<html:form action="<%=request.getAttribute(Constants.ACTION)%>" focus="notBean.subject">
I couldn't add the jsp snippets becuase this input form is complaining about the tags.
Any help would be greatly appreciated.

Hi all,
Im using weblogic 11g weblogic.jspc to try to pre-compile JSP's that were created with struts 1.2.x under OC4J 9.0.x.
The jsp's do compile under OC4J's jsp compiler.
Im getting many errors that seem to be related to the version difference between struts1.2.x used with OC4J and the struts bundled with weblogic.
I'm trying to "force" the weblogic.jspc to use the older version of struts but have not been successful.
This is on Windows XP SP4 box.
So far I've tried:
adding the -classpath option
adding the -d option to specify a directory
adding the -backwardcompatible option
adding the -librarydir option
here's my command line format:
java weblogic.jspc -classpath .;c:\...\struts.jar;WEB-INF\struts-bean.tld;c:\...\struts-validator.jar;c:\...\struts-nested.jar;c:\...\strutstest2.0.0.jar...
-backwardcompatible -d WEB-INF addNote.jsp
heres a sample of output:
jspc failed with errors :weblogic.servlet.jp.CompilationException:
addNote.jsp:11:57 The method setContent(String) in the type PutTag is not applicable for the arguments (Object)
<template:put name="title" direct="true" content="<%=request.getAttribute(Constants.TITLE)%>"/>
addNote.jsp:15:31: Th method setAction(String) in the type FormTag is not applicable for the arguments (Object)
<html:form action="<%=request.getAttribute(Constants.ACTION)%>" focus="notBean.subject">
I couldn't add the jsp snippets becuase this input form is complaining about the tags.
Any help would be greatly appreciated.

Similar Messages

  • JSP dealing with run time error

    I tried a small program. When I launch http://server/ExceptionTest.jsp, it should
    hava exception occurs in test() method, but it still cannot go to error.jsp.
    any ideas? thanks!!
    ExceptionTest.jsp
    ===================
    <%@ page errorPage="error.jsp" %>
    <%@ page import="com.myproj.helper.*" %>
    <%
    ConnectorHelper sch = new ConnectorHelper();
    sch.test();
    %>
    error.jsp
    =========
    <%@ page isErrorPage="true" %>
    <H2>Error has occured</H2>
    ConnectorHelper.java
    =====================
    package com.myproj.helper;
    public class ConnectorHelper
         public void test()
         {     try
              {     int x = 3/0;
              catch(Exception e)
              {     e.printStackTrace();

    don't know,but maybe try using a single page directive:
    <%@ page errorPage="error.jsp" import="com.myproj.helper.*" %>

  • Compilation error in jsp script with weblogic 9.1 server

    Hi All,
              i am using weblogic 9.1 compiler to compile my jsp code.
              it gives me compilation error.
              The root cause of the error is %% which comes in the code.
              for e.g take this code:-
              <%
              System.out.println("%%abc");
              %>
              this code will give error while error.
              here it is identifing %% as termination tag!
              same code works in tomcat & weblogic 8.1
              can anyone give any information in this regard.
              Reagrds
              Rahul

    I am also getting the same error. If you have solved this issue please share the solution.
              Thanks,
              Dikshit

  • JSP issue with WebLogic 9.1 but not with 8.1

    I am getting the following errors when i am trying to build an existing web application. I was able to build it successfully using weblogic 8.1.
              Below are the versions i am using
              Weblogic 9.1
              Ant1.6.2
              JDK 1.5.0_04
              ===================================================
              Results.jsp:596:63: The qualifier of this name is a package, which cannot contai
              n methods.
              onclick="PopupURLMenu('<%=ResultsUtil.getMyDoc(oDocs,cou
              nt).getUrl()%>',
              ^------^
              Results.jsp:598:28: No match was found for method getDisplayName() in type <erro
              r>.
              <%=ResultsUtil.getMyDoc(oDocs,count).getDisplayName()%>
              ^------------------------------------------------^
              Results.jsp:598:40: The qualifier of this name is a package, which cannot contai
              n methods.
              <%=ResultsUtil.getMyDoc(oDocs,count).getDisplayName()%>
              ^------^
              Results.jsp:606:55: No match was found for method getUrl() in type <error>.
              onclick="PopupURLMenu('<%=ResultsUtil.getMyDoc(oDocs
              ,count+1).getUrl()%>',
              ^-------------------------
              -----------------^
              Results.jsp:606:67: The qualifier of this name is a package, which cannot contai
              n methods.
              onclick="PopupURLMenu('<%=ResultsUtil.getMyDoc(oDocs
              ,count+1).getUrl()%>',
              ^------^
              Results.jsp:608:32: No match was found for method getDisplayName() in type <erro
              r>.
              <%=ResultsUtil.getMyDoc(oDocs,count+1).getDisplayNam
              e()%>
              ^------------------------------------------------
              --^
              Results.jsp:608:44: The qualifier of this name is a package, which cannot contai
              n methods.
              <%=ResultsUtil.getMyDoc(oDocs,count+1).getDisplayNam
              e()%>
              ^------^
              Results.jsp:638:21: No match was found for method getDisplayName() in type <erro
              r>.
              if (ResultsUtil.getMyDoc(oDocs,q).getDisplayName().equals("") )
              ^--------------------------------------------^
              Results.jsp:638:21: No match was found for method equals(java.lang.String) in ty
              pe <error>.
              if (ResultsUtil.getMyDoc(oDocs,q).getDisplayName().equals("") )
              ^-------------------------------------------------------^
              Results.jsp:638:33: The qualifier of this name is a package, which cannot contai
              n methods.
              if (ResultsUtil.getMyDoc(oDocs,q).getDisplayName().equals("") )
              ^------^
              at weblogic.servlet.jsp.jspc20.runBodyInternal(jspc20.java:424)
              at weblogic.servlet.jsp.jspc20.runJspc(jspc20.java:195)
              at weblogic.servlet.jsp.JspcInvoker.compile(JspcInvoker.java:239)
              at weblogic.application.compiler.AppcUtils.compileWAR(AppcUtils.java:348
              at weblogic.application.compiler.WARCompiler.compile(WARCompiler.java:74
              at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCo
              mpilerFlow.java:113)
              at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompile
              rFlow.java:43)
              at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDri
              ver.java:55)
              at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
              river.java:26)
              at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:24)
              at weblogic.application.compiler.Appc.runBody(Appc.java:151)
              at weblogic.utils.compiler.Tool.run(Tool.java:158)
              at weblogic.utils.compiler.Tool.run(Tool.java:115)
              at weblogic.application.compiler.Appc.main(Appc.java:162)
              at weblogic.appc.main(appc.java:14)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
              java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain(CompilerTask.java:
              290)
              at weblogic.ant.taskdefs.j2ee.Appc.privateExecute(Appc.java:243)
              at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java:154)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
              at org.apache.tools.ant.Task.perform(Task.java:364)
              at org.apache.tools.ant.Target.execute(Target.java:341)
              at org.apache.tools.ant.Target.performTasks(Target.java:369)
              at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
              at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
              at org.apache.tools.ant.Main.runBuild(Main.java:673)
              at org.apache.tools.ant.Main.startAnt(Main.java:188)
              at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
              at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
              ====================================
              Is this a problem with the classpath ?
              Thanks in advance,
              Bye

    I am also getting the same error. If you have solved this issue please share the solution.
              Thanks,
              Dikshit

  • Unable to run simple empty jsp page with weblogic 10.3.6.0.

    Dears,
    I have a simple war with simple empty welcome jsp page, when i deploy my project on AdminServer domain, jsp displays correctly, but if i deploy it on other domain i got this exception :
    java.lang.ClassCastException: org.apache.jasper.runtime.JspWriterImpl cannot be cast to weblogic.servlet.jsp.ByteWriter
         at jsp_servlet.__index._jspService(__index.java:63)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:416)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:327)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    I'm using weblogic 10.3.6, any help will be appreciated.
    regards.

    dunnsoftinc wrote:
    During the initial pass, I decided to leave this password null in both places, which is documented within the peopletools 8.53.00 installation guide. Maybe, it's time to further test. Thank you Nicolas.To be honest I've never tried to leave it blank in previous releases, thought that was mandatory (it was not prompted in psadmin menu as it is with PT8.53).
    I don't have a PTools 8.53 instance in hands right now, but after a quick test over here on PT8.51, I have the same issue as yours.
    Let me also remind you that there are two separate scenarios that may be received via the sign-on page:
    1.) "The application server is down" status message without the "bea.jolt.ServiceException: TPESVCERR - server error while handling request" error.
    2.) "The application server is down" status message including the "bea.jolt.ServiceException: TPESVCERR - server error while handling request" error.As I said earlier, you should get more clue in the webserver logfiles.
    Nicolas.

  • JSP on BEA  Weblogic: random error when loading a jsp page that uses a Bean

    Hi!
    I wrote a simple jsp page that stores a String in a JavaBean, and then forwards to another jsp page to display that String. The jsp pages are deployed on a BEA Weblogic 6 Server, but I get a weird behaviour when loading the page into my browser. Usually I get an error message:
    /Response.jsp(9): class 'query.jsp.QueryBean' could not be loaded
    probably occurred due to an error in /Query.jsp line 9:
    <jsp:useBean id = "queryBean" scope = "request" class = "query.jsp.QueryBean" />
    But the funny thing is that after reloading the page a few times it eventually works. The bahaviour seems to be totally random - sometimes it works, sometimes it claims not finding the JavaBean class.
    Anyone experienced something similar?
    Thank you very much,
    Charlie

    Is QueryBean.class located under '<appname>/Web_inf/query/jsp/'?
    If it is please try changing the package name to something else like com.myclass or something like that.

  • Why not perform the ${attribute} syntax in the jsp context with weblogic?

    In the action an attribute has been put in request object, example request.setAttribute("userName","Xue Chen").
    in the forward jsp , use the syntax ${userName}, can not get the attribute "Xue Chen" from request, but the "${userName}" be printed in the page.
    The same code with Tomcat, it work well.
    It maybe the syntax ${userName} in jsp is not standard for all application server, only work in Tomcat, or it need special confiugre in weblogic, this syntax can work.
    Does anyone do me a favors?

    Hi,
    go to the context of your view,
    to the attribute of your date,
    and set the attribute input help mode to disabled
    grtz,
    Koen

  • Another JSP qn for weblogic

              Hi
              I have this JSP , where I make use of interface Enumeration
              There is no import statement in JSP for Enumeration. It gives me an error in
              my IDE (wsad) and this JSP does not run inside WSAD.
              If I deploy this JSP in weblogic it works without a problem
              How does this work in weblogic .
              Please advise
              JSP is given below
              <html>
              <head>
              </head>
              <%
                   boolean isExpire = false;
                   System.err.println("Beginning of JSP");
                   if(request.getParameter("action")!=null){      
                        System.err.println("before calling clean session");
                        cleanSession(session);
                        System.err.println("after calling clean session");
                        if (request.getParameter("action").trim().equalsIgnoreCase("expire"))
                             isExpire = true;     
                   System.out.println("........isExprire:"+ isExpire);
                   String submit = request.getParameter("submit.x");
              %>
              <body onLoad="return setFocusOn();" bgcolor="#FFFFFF" leftmargin="0" topmargin="0"
              marginwidth="0" marginheight="0" vlink="#666666">
              <center>
              <table>
              <tr>     <td colspan=4 ><br><br><br><center>
                   <form action ="logon.jsp" name="myform" method="post" >
                        <table width="300" border="0" cellspacing="0" cellpadding="0" >
                             <tr ><td colspan=2> </td></tr>
                             <tr><td colspan=2><br><br></td></tr>
                             <tr><Td align=right><div class=labeling>WwProbUser ID :  </div></td><td>
                                  <input name="userName" class="nav-input" type=text maxlength=10></td></tr>
                             <tr><Td align=right><div class=labeling>Password :  </div></td><td>
                                  <input name="password" type=password class="nav-input" maxlength=10></td></tr>
                             <tr><td colspan=2><br></td></tr>
                             <tr><Td colspan=2 align=center><input type="submit" name="submit" border=0
              ><br><br></td></tr>
                             <tr ><td colspan=2><br></td></tr>
                        </table>
                   </form>
              </td>
              </tr>
              </table>
              </center>
              </body>
              </html>
              <%!
              private void cleanSession(HttpSession session){
                   Enumeration en = session.getAttributeNames();
                   System.err.println("Enumeration is "+ en.toString() +" "+en.getClass());
                   String session_name = null;
                   while (en.hasMoreElements()){
                        session_name = (String)en.nextElement();
                        if (session.getAttribute(session_name)!=null)     session.removeAttribute(session_name);
              %>
              

    Just compile a simple jsp page which doesnt have any import page directives
              with weblogic.jspc
              java weblogic.jspc -keepgenerated simple.jsp
              The generated java files will have the imports implicitly imported by wls
              "ks" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Nagesh
              >
              > Thanks for the answer ,
              >
              > Did that include java.io.* also , becuase this happens for the
              IoException classes
              > also,
              >
              > Where can we get a list of import statements like this which should not
              be declared
              >
              > Thanks again
              >
              >
              >
              > "Nagesh Susarla" <[email protected]> wrote:
              > >Weblogic's default import list includes "java.util.*" and thats the
              reason
              > >Enumeration works w/o the need for adding an explicit import to
              java.util.
              > >
              > >--Nagesh
              > >
              > >"ks" <[email protected]> wrote in message
              > >news:[email protected]...
              > >>
              > >> Hi
              > >>
              > >> I have this JSP , where I make use of interface Enumeration
              > >>
              > >> There is no import statement in JSP for Enumeration. It gives me an
              > >error
              > >in
              > >> my IDE (wsad) and this JSP does not run inside WSAD.
              > >>
              > >> If I deploy this JSP in weblogic it works without a problem
              > >>
              > >> How does this work in weblogic .
              > >>
              > >> Please advise
              > >>
              > >> JSP is given below
              > >>
              > >> <html>
              > >> <head>
              > >> </head>
              > >> <%
              > >>
              > >> boolean isExpire = false;
              > >> System.err.println("Beginning of JSP");
              > >> if(request.getParameter("action")!=null){
              > >> System.err.println("before calling clean session");
              > >> cleanSession(session);
              > >> System.err.println("after calling clean session");
              > >> if (request.getParameter("action").trim().equalsIgnoreCase("expire"))
              > >> isExpire = true;
              > >> }
              > >> System.out.println("........isExprire:"+ isExpire);
              > >> String submit = request.getParameter("submit.x");
              > >>
              > >>
              > >> %>
              > >> <body onLoad="return setFocusOn();" bgcolor="#FFFFFF" leftmargin="0"
              > >topmargin="0"
              > >> marginwidth="0" marginheight="0" vlink="#666666">
              > >> <center>
              > >> <table>
              > >> <tr> <td colspan=4 ><br><br><br><center>
              > >> <form action ="logon.jsp" name="myform" method="post" >
              > >> <table width="300" border="0" cellspacing="0" cellpadding="0" >
              > >> <tr ><td colspan=2> </td></tr>
              > >> <tr><td colspan=2><br><br></td></tr>
              > >> <tr><Td align=right><div class=labeling>WwProbUser ID :
              > > </div></td><td>
              > >>
              > >> <input name="userName" class="nav-input" type=text
              > >maxlength=10></td></tr>
              > >> <tr><Td align=right><div class=labeling>Password : </div></td><td>
              > >> <input name="password" type=password class="nav-input"
              > >maxlength=10></td></tr>
              > >> <tr><td colspan=2><br></td></tr>
              > >> <tr><Td colspan=2 align=center><input type="submit" name="submit"
              > >border=0
              > >> ><br><br></td></tr>
              > >> <tr ><td colspan=2><br></td></tr>
              > >> </table>
              > >> </form>
              > >> </td>
              > >> </tr>
              > >> </table>
              > >> </center>
              > >> </body>
              > >> </html>
              > >> <%!
              > >> private void cleanSession(HttpSession session){
              > >> Enumeration en = session.getAttributeNames();
              > >> System.err.println("Enumeration is "+ en.toString() +"
              "+en.getClass());
              > >> String session_name = null;
              > >> while (en.hasMoreElements()){
              > >> session_name = (String)en.nextElement();
              > >> if (session.getAttribute(session_name)!=null)
              > >session.removeAttribute(session_name);
              > >>
              > >> }
              > >> }
              > >> %>
              > >>
              > >
              > >
              >
              

  • Wls 8.1 sp2: weblogic.jspc complains about struts-html tags

              Hi,
              I am trying to compile jsps with weblogic.jspc, which use struts' html tags. However,
              the compilation fails with the following message:
              [java] Translation of /views/viewPageBody.jsp failed: (line 3): Error in using
              tag library uri='/tags/struts-html' prefix='html': The Tag class 'org.apache.struts.taglib.html.BaseTag'
              has no setter method corresponding to TLD declared attribute 'server', (JSP 1.1
              spec, 5.4.1)
              I opened the BaseTag class from the struts jar and found the setter exists for
              the attribute 'server' of html tld. So does the property 'server'. The property
              'server' is a string and the parameter in the setter is a string. I read about
              the jspc errors in wls 8.1 about the setter parameter being of different type
              than the property. However, that is not the case here. I tried using both Sun's
              and BEA's jdk. None of them help. Btw, there is another attribute mentioned in
              the html tld, which is 'target'. The compiler doesn't complain yet about this.:(
              Also, I happened to compile other apps which have struts logic tags.
              My environment:
              OS: Win2k sp3
              WLS: 8.1 sp2
              JDK: Sun's 1.4.2 sp4 / Bea's 1.4.1 sp5 (tried both)
              Ant: 1.5.3 (I had an issue earlier with ant until I found that Bea officially
              without any mention supports only ant 1.5.3.)
              I would appreciate any help in this regard.
              Thanks,
              Abbas
              

              What version of Struts are you trying to use?
              Are you certain you're not encountering a different instance of that class in
              an unexpected location in your classpath?
              "Abbas" <[email protected]> wrote:
              >
              >Hi,
              >I am trying to compile jsps with weblogic.jspc, which use struts' html
              >tags. However,
              >the compilation fails with the following message:
              >
              >[java] Translation of /views/viewPageBody.jsp failed: (line 3): Error
              >in using
              >tag library uri='/tags/struts-html' prefix='html': The Tag class 'org.apache.struts.taglib.html.BaseTag'
              >has no setter method corresponding to TLD declared attribute 'server',
              >(JSP 1.1
              >spec, 5.4.1)
              >
              >I opened the BaseTag class from the struts jar and found the setter exists
              >for
              >the attribute 'server' of html tld. So does the property 'server'. The
              >property
              >'server' is a string and the parameter in the setter is a string. I read
              >about
              >the jspc errors in wls 8.1 about the setter parameter being of different
              >type
              >than the property. However, that is not the case here. I tried using
              >both Sun's
              >and BEA's jdk. None of them help. Btw, there is another attribute mentioned
              >in
              >the html tld, which is 'target'. The compiler doesn't complain yet about
              >this.:(
              >Also, I happened to compile other apps which have struts logic tags.
              >
              >
              >My environment:
              >OS: Win2k sp3
              >WLS: 8.1 sp2
              >JDK: Sun's 1.4.2 sp4 / Bea's 1.4.1 sp5 (tried both)
              >Ant: 1.5.3 (I had an issue earlier with ant until I found that Bea officially
              >without any mention supports only ant 1.5.3.)
              >
              >I would appreciate any help in this regard.
              >
              >Thanks,
              >
              >Abbas
              

  • Weblogic.jspc outofmemory error while compiling jsps using ant in eclipse

    Hi all,
    I am trying to execute this target in my ant build:
         <target name="jspc">
              <java classname="weblogic.jspc" fork="yes">
                   <arg line="-verbose -verboseJavac -compileAll -webapp ${project.jsp.dir} -d ${project.jsp.class.dir}" />
                   <classpath>
                        <pathelement path="${classpath}" />
                   </classpath>
         </java>
         </target>
    I am getting the following error:
    [java] Error: [jspc]: 0 file(s) failed:
    [java] [Compilation errors : ]
    [java] The system is out of resources.
    [java] Consult the following stack trace for details.
    [java] java.lang.OutOfMemoryError
    [java] at weblogic.jspc.doCompile(jspc.java:861)
    [java] at weblogic.jspc.runJspc(jspc.java:654)
    [java] at weblogic.jspc.runBodyInternal(jspc.java:412)
    [java] at weblogic.jspc.runBody(jspc.java:319)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:192)
    I am using weblogic 8.1, eclipse3.1, java1.4.1.
    Can some one please help me with this issue?
    thanks in advance.

    --> some error on posting please refer to the next post...
    From the error logs we can trace it out to the web project's Build.xml file ....I was getting a similar error and by commenting out the following lines in the web project's Build.xml I am able to run the build script correctly and get a EAR file. The lines are
    <!--
    <assemble
    moduleDir="${generated.module.root}"
    moduleName="${project.name}"
    srcOutputDir="${assembly.src}"
    appRootDir="${ear.root}">
    <assemblyContext factory="org.apache.beehive.controls.runtime.assembly.WebAppAssemblyContext$Factory" />
    <assemblyContext factory="org.apache.beehive.controls.runtime.assembly.AppAssemblyContext$Factory" />
    <classpath refid="assembly.classpath" />
    <fileset dir="${project.dir}">
    <include name="**/*.controls.properties" />
    </fileset>
    </assemble>
         -->
    Please check it now, also if any one can let us know the function or role played by the above lines it would be great. Also if there would be any future or unseen problems by commenting out these lines please do let us know...
    Thanks
    -MiM
    Edited by prodigymonish83 at 10/22/2007 5:56 AM

  • Error while parsing JSP with WebLogic 5.1/SP9/JDK 1.2.2

    Hello everybody,
              I get the error given below when calling a JSP in a WebLogic
              application which seems to work fine in all other (non-JSP) parts:
              java.lang.NullPointerException:
                   at weblogic.servlet.jsp.JspLexer.addSetPropertyValue(JspLexer.java:1432)
                   at weblogic.servlet.jsp.JspLexer.mXML_SET_PROPERTY(JspLexer.java,
              Compiled Code)
                   at weblogic.servlet.jsp.JspLexer.mXML_THING(JspLexer.java:1726)
                   at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java, Compiled Code)
                   at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java, Compiled
              Code)
                   at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java, Compiled Code)
                   at weblogic.servlet.jsp.JspParser.doit(JspParser.java, Compiled Code)
                   at weblogic.servlet.jsp.JspParser.parse(JspParser.java:159)
                   at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:109)
                   at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java,
              Compiled Code)
                   at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled
              Code)
                   at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:227)
                   at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:200)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:115)
                   at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:915)
                   at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:879)
                   at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
                   at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
                   at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              Code)
              I know that this error has been reported more than once in these
              discussion groups, and all people who solved it say
              - that it occurs only wen running WebLogic 5.1 with JDK 1.3 instead of
              1.2.2
              - that it may also be caused by bad jsp code
              But in my case, it has to be another reason, because
              - I am using jdk 1.2.2
              - the same JSP file is running withour errors on WebLogic 6
              I wonder if it could have something to do with the operating system:
              the parsing error is produced on a Windows version of WL 5.1, while my
              WL 6 which doesn't cause errors is running with Linux.
              Many thanks in advance for any help,
              Eckhard Beisswenger
              

    Once again me!
              After a long time, I stumbled by accident across the answer that solves the problem I described above. It is explained at
              http://support.bea.com/application;JSESSIONID_WLCS_DEFAULT=2R2lzQfEBxFRMX2z0AxeU1Un3N1522I9fCIUI7GfjnjsiSYkPscz
              The clue is that weblogic complains about corresponding get and set methods, when the type of the set methods parameter is different from the return type of the corresponding get method. Unfortunately, the weblogic lexer class gives only a NullPointerException without any hint.
              

  • Problem using weblogic.jspc with wls6.1

              I've got this error using weblogic.jspc on jsp that works fine with the compiler
              of 5.1, is this a bug?
              java.lang.NullPointerException
              at weblogic.management.Admin.getServer(Admin.java:1252)
              at weblogic.servlet.internal.dd.ServletEntityResolver.initServerMBean(ServletEntityResolver.java:69)
              at weblogic.servlet.internal.dd.ServletEntityResolver.resolveEntity(ServletEntityResolver.java:94)
              at weblogic.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalEntity(DefaultEntityHandler.java:749)
              at weblogic.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalSubset(DefaultEntityHandler.java:566)
              at weblogic.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java:1139)
              at weblogic.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentScanner.java:2215)
              at weblogic.apache.xerces.framework.XMLDocumentScanner.access$0(Compiled
              Code)
              at weblogic.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(Compiled
              Code)
              at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(Compiled
              Code)
              at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:967)
              at weblogic.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:175)
              at weblogic.servlet.internal.dd.DescriptorLoader.parse(DescriptorLoader.java:311)
              at weblogic.servlet.internal.dd.DescriptorLoader.initializeWebXml(DescriptorLoader.java:327)
              at weblogic.servlet.internal.dd.DescriptorLoader.initialize(DescriptorLoader.java:242)
              at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:176)
              at weblogic.servlet.internal.dd.DescriptorLoader.loadDescriptor(DescriptorLoader.java:396)
              at weblogic.jspc.runBodyInternal(Compiled Code)
              at weblogic.jspc.runBody(jspc.java:169)
              at weblogic.utils.compiler.Tool.run(Tool.java:79)
              at weblogic.jspc.main(Compiled Code)
              --------------- nested within: ------------------
              weblogic.utils.AssertionError: ***** ASSERTION FAILED ***** - with nested exception:
              [java.lang.NullPointerException]
              at java.lang.Throwable.fillInStackTrace(Native Method)
              at java.lang.Throwable.fillInStackTrace(Compiled Code)
              at java.lang.Throwable.<init>(Compiled Code)
              at java.lang.Error.<init>(Error.java:50)
              at weblogic.utils.NestedError.<init>(NestedError.java:24)
              

    Please post your full description. I can't see what you're replying to (must
              be too old).
              Alex
              "Gregory Chazalon" <[email protected]> wrote in message
              news:3c7383a8$[email protected]..
              > I've got te same problem (NullPointerException at the same line code in
              the same class). The most disturbing is that the weblogic.jspc works fine
              with wl6.1 SP2 but fails with wl6.1 SP1.
              >
              > Do you have a solution ? Can I download a CRXXXX.jar that fixes it ?
              >
              > I will appreciate any help.
              >
              

  • Precompiling JSPs using weblogic.jspc

    Hello,
    My question has more to do with getting the Weblogic precompiler to understand <%@ include file="myFilejsp" %> directives.
    Test scenario:
    In our application, we have used a common JSP page say 'commonJSP' as a header and have included 'commonJSP' in all our other JSP pages.
    Suppose my commonJSP is like this:
    <%
    String hello= "Hello";
    %>
    and suppose my index.jsp is like this
    <%@ include file="commonJSP" %>
    <%
    System.out.println(hello);
    %>
    Now when I serve index.jsp to clients it compiles correctly because the commonJSP is included in the source before compiling.
    HOWEVER, when precompiling the JSPs in my web application using the <java weblogic.jspc ..> tag in my ant build file, I am getting errors on compiling index.jsp that 'hello' cannot be resolved.
    When using the WebLogic JSP compiler, is there any way to tell the compiler to not treat JSP pages as individual 'servlet' classes but look at the 'big picture'?

    Anybody ?

  • JSP PRECOMPILER IS NOT WORKING WITH WEBLOGIC 6.1 SERVICE PACK 5

              When i compile JSPs using JSP PreCompiler in weblogic 6.1
              ( Service Pack 4 ) , compilation is perfect.
              But when i precompile the same JSPs with weblogic 6.1 (Service Pack 5 )
              , i get compilation error.
              Variable Not Found error comes in service pack 5. But the same code works
              well with service pack 4.
              Could anyone help me ?
              [java] C:\CVSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WE
              NF\classes\jsp_servlet\_secure\__confirmation.java:280: cannot resolve symbol
              [java] symbol : variable yesLinkPageText
              [java] location: class jsp_servlet._secure.__confirmation
              [java] htmllink0.setPage(yesLinkPageText); //[ /secure/co
              rmation.jsp; Line: 32]
              [java] ^
              [java] C:\CVSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WE
              NF\classes\jsp_servlet\_secure\__confirmation.java:378: cannot resolve symbol
              [java] symbol : variable noLinkPageText
              [java] location: class jsp_servlet._secure.__confirmation
              [java] htmllink0.setPage(noLinkPageText); //[ /secure/con
              mation.jsp; Line: 37]
              [java] Error: compilation of jsp file /secure/confirmation.jsp (java file C
              VSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WEB-INF\classes
              p_servlet\_secure\__confirmation.java failed):
              [java] ^
              [java] null
              [java] 2 errors
              [java] Error: [jspc]: 1 file(s) failed:
              [java] /secure/confirmation.jsp
              [java] java.io.IOException: Compiler failed executable.exec(java.lang.String
              

    Can you post the jsp page or a example which doesnt compile in sp5. It seems
              difficult to guage what the problem could be from looking at the error.
              --Nagesh
              "george vargeese" <[email protected]> wrote in message
              news:40c56502$1@mktnews1...
              >
              > When i compile JSPs using JSP PreCompiler in weblogic 6.1
              > ( Service Pack 4 ) , compilation is perfect.
              >
              > But when i precompile the same JSPs with weblogic 6.1 (Service Pack
              5 )
              > , i get compilation error.
              >
              > Variable Not Found error comes in service pack 5. But the same code
              works
              > well with service pack 4.
              >
              > Could anyone help me ?
              >
              >
              > [java]
              C:\CVSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WE
              > NF\classes\jsp_servlet\_secure\__confirmation.java:280: cannot resolve
              symbol
              >
              > [java] symbol : variable yesLinkPageText
              > [java] location: class jsp_servlet._secure.__confirmation
              > [java] htmllink0.setPage(yesLinkPageText); //[
              /secure/co
              > rmation.jsp; Line: 32]
              > [java] ^
              > [java]
              C:\CVSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WE
              > NF\classes\jsp_servlet\_secure\__confirmation.java:378: cannot resolve
              symbol
              >
              > [java] symbol : variable noLinkPageText
              > [java] location: class jsp_servlet._secure.__confirmation
              > [java] htmllink0.setPage(noLinkPageText); //[
              /secure/con
              > mation.jsp; Line: 37]
              > [java] Error: compilation of jsp file /secure/confirmation.jsp (java
              file C
              >
              VSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WEB-INF\classe
              s
              > p_servlet\_secure\__confirmation.java failed):
              > [java] ^
              > [java] null
              > [java] 2 errors
              > [java] Error: [jspc]: 1 file(s) failed:
              > [java] /secure/confirmation.jsp
              > [java] java.io.IOException: Compiler failed
              executable.exec(java.lang.String
              >
              >
              

  • Error Using weblogic.jspc --- java.lang.ExceptionInInitializerError

    Hi,
              I am trying to use the weblogic.jspc compiler to pre-compile my jsp
              files so that I can verify that they compile w/o having to visit the
              page. I am using Weblogic 4.5.1. I am encountering the following
              error:
              java.lang.ExceptionInInitializerError
              at java.lang.Throwable.<init>(Compiled Code)
              at java.lang.Error.<init>(Compiled Code)
              at java.lang.LinkageError.<init>(Compiled Code)
              at java.lang.ExceptionInInitializerError.<init>(Compiled Code)
              at java.beans.Beans.instantiate(Compiled Code)
              at weblogic.servlet.jsp.JspLexer.processBeanTag(Compiled Code)
              at weblogic.servlet.jsp.JspLexer.mXML_OPEN_USEBEAN(Compiled Code)
              at weblogic.servlet.jsp.JspLexer.mXML_THING(Compiled Code)
              at weblogic.servlet.jsp.JspLexer.mTOKEN(Compiled Code)
              at weblogic.servlet.jsp.JspLexer.nextToken(Compiled Code)
              at weblogic.servlet.jsp.JspLexer.parse(Compiled Code)
              at weblogic.servlet.jsp.JspParser.doit(Compiled Code)
              at weblogic.servlet.jsp.JspParser.parse(Compiled Code)
              at weblogic.servlet.jhtmlc.Jhtml2Java$Output.setSourceFile(Compiled
              Code)
              at weblogic.servlet.jhtmlc.Jhtml2Java.outputs(Compiled Code)
              at weblogic.utils.compiler.CodeGenerator.generate(Compiled Code)
              at weblogic.jhtmlc.runBody(Compiled Code)
              at weblogic.jspc.runBody(Compiled Code)
              at weblogic.utils.compiler.Tool.run(Compiled Code)
              at weblogic.jspc.main(Compiled Code)
              Have any of you seen this? Can you tell me what I am doing wrong
              (Classpath, etc.)?
              Any and all help would be greatly appreciated.
              The command line I am using is:
              java -verbose -classpath
              $CLASSPATH:/apps/weblogic/license:/apps/weblogic/classes:/apps/weblogic/lib/weblogicaux.jar
              weblogic.jspc -d $HOME/weblogic/myserver/classfiles/examples
              100-Welcome.jsp
              Regards,
              Richard
              

    Fixed with a patch CR0737797 and CR062538 for the 6.1 sp3 source line
              Prasanna Yalam

Maybe you are looking for

  • Can no longer drag and drop into my iPhone after iOS 7.0.3.

    I'm not entirely sure what is up with this but it's excruciatingly frustrating. I updated my iPhone 4S 64GB to iOS 7.0.3 the other day. When I plugged it into my car to play some music I noticed that most of the songs in my playlists showed up as bei

  • Best settings for Call of Duty 4 on the new Imac's

    Hello all. Not really PC gamer but decided to purchase this game to go along with my new iMac (Early 09 24" 3.06 with GT 130) and Bose speakers.. Just wanted to know if I can play this game at full graphic settings without without any lag of some sor

  • How can I define an XML schema for this kind of XML

    Hi, There: I want to generate an XML file like: <customer> </customer> <transaction> </transaction> <customer> </customer> which have multiple customer elements and multiple transactions as well, and they can happen in mixed sequence. Can any one giv

  • ArrayBindCount is not working..plz shed some light on this

    hello all.. ive been trying to debug this thingy..but im gonna give up i think!! i have a collection of document objects (docCollection) and im trying to update the db .. here is the stored procedure ( procedure name = updatedocument ) (urlname in nv

  • Standard to document XI scenarios

    Hey, there are examples for naming XI components, but it is quiet interessting to see how the customers document their components in different ways. Is there something like a standard or convention to document SAP XI components or processes?  Or does