Solved

**URGENT** Please help!! StackOverFlowError - Weblogic.jspc compiler

Posted on 2004-09-29
5
377 Views
Last Modified: 2012-06-27
Hi,

I am using ant build to pre compile jsps using weblogic.jspc. They used to compile just fine but I got a new laptop and set up all the env and I am getting StackOverFlowError error during Compilation time. Not sure why this error should occur during Compilation time. Following is my ant target. I have a dead line tomorrow
//-----------------------------------------------------------------------------------
<target name="app_jspc" if="jsp.precompile" depends="compile_classes ">
    <java classname="weblogic.jspc" fork="true" failonerror="true" >
    <jvmarg value="${jsp.case_sensitive}"/>
    <sysproperty key="weblogic.home" value="${weblogic.home}"/>
    <arg line="-webapp ${project.builddir} -compileAll -d ${project.builddir}/WEB-INF/classes ."/>
   <!-- <arg line="-verbose -verboseJavac -webapp ${project.builddir} -compileAll -d ${project.builddir}/WEB-INF/classes ."/> -->
    <classpath>
    <pathelement path="${project.jsp.build.classpath}"/>
    </classpath>
    </java>
</target>
//--------------------

build.properties
//----------------
weblogic.lib=${weblogic.home}/server/lib/weblogic.jar
weblogic.webservicelib=${weblogic.home}/server/lib/webservices.jar
tools.jar=/bea/jdk141_03/lib/tools.jar
project.build.classpath=${weblogic.lib}:${ojdbc14.jar}:${struts.jar}:${standard.jar}:${displaytag.jar}:${commons-validator.jar}:${commons-beanutils.jar}:${tools.jar}
project.jsp.build.classpath=${weblogic.lib}:${struts.jar}:${jstl.jar}:${standard.jar}:${commons-validator.jar}:${commons-beanutils.jar}:${tools.jar}


jsp.case_sensitive=-Dweblogic.jsp.windows.caseSensitive=false

project.home=.
project.builddir=${project.home}/build
project.distdir=${project.home}/dist/arc
project.libdir=${project.home}/lib
project.webdir=${project.home}/webapp
project.configdir=${project.home}/conf
project.webinfdir=${project.builddir}/WEB-INF
project.src=${project.home}/src
project.warname=${project.distdir}/${project.name}.war
project.classbindir=${project.webinfdir}/classes
project.docs.dir=${project.home}/docs/api

0
Comment
Question by:DASARI_R
  • 3
  • 2
5 Comments
 
LVL 7

Accepted Solution

by:
lhankins earned 500 total points
ID: 12182095
suggestions :

1) post your stack trace...
2) by process of elimination, start removing half of your JSP's (and see when the stack overflow exception stops).   (Of course, make a backup of all your jsp's before doing this).

0
 

Author Comment

by:DASARI_R
ID: 12182328
Hi

Thanks for the suggestions.  
I removed all the jsps and started compiling one by one and found a problem. I just didn't realise that it won't give me any details about the problem. All the stack trace said was the following.

Now that I know where the problem is I can fix it :) Thank you very much for your help.


//--------- stack trace
app_jspc:
[java] java.lang.StackOverflowError
[java] Exception in thread "main"

//----------


0
 
LVL 7

Expert Comment

by:lhankins
ID: 12182722
can u post the JSP in question
0
 
LVL 7

Expert Comment

by:lhankins
ID: 12199911
I assume you found the problem, can we close this now...?
0
 

Author Comment

by:DASARI_R
ID: 12208697
Yes, Thank you very much
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Is your phone running out of space to hold pictures?  This article will show you quick tips on how to solve this problem.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question