Solved

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

Posted on 2004-09-29
5
366 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Owning a franchise can be the dream of a lifetime. It provides a chance for economic growth. You can be as successful as you want.  To make your franchise successful, you need to market it successfully. Here are six of the best marketing strategies …
Moving applications to the cloud or switching services to cloud-based ones, is a stressful job.  Here's how you can make it easier.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now