OC4J infinity loop in javac.exe compiling JSP
Hi,
i have a very strange problem with OC4J 10.1.3.5.0 and one JSP page. It occurs under Windows/OC4J (dev environment) and under Linux/OAS (in production environment).
I try to explain as best as possible.
I have an application running OK in OC4J. In this application I have a simple JSP that contains very little java code, like this:
<%@ include file="/wtn/gen/checkAccess.jsp" %>
<%@page info="mySite.com"
language="java"
errorPage="/wtn/gen/error.jsp"
import="java.util.Locale,
com.mySite.util.Util,
com.mySite.Const,
com.mySite.LoginBussines"%>
<%
boolean b1 = LoginBussines.isB1(request) ? true : false;
String domain = LoginBussines.getDomain(request);
String url = "";
if (b1) {
url = "/web/" + locale + "/home.html";
} else {
url = "/web/" + locale + "/index.html";
%>
<html>
<head>
<title>JSP Page</title>
<% out.println("<meta http-equiv='REFRESH' content='0;url=http://" + domain + url + "' />"); %>
</head>
<body>
</body>
</html>Well, this JSP don't have any error and it works fine normally.
Problem ocurred:
When I delete the precompiled JSP from persistence/_pages for force .java generation and re-compilation, OC4J generate .java correctly and launch a javac.exe process for compile the servlet .java. This compilation through javac.exe don't finish, remain permanent running and the compilation of JSP does not finish.
The web application remain sleep while javac.exe process perform ghost operations. Finally (after 5 minuts aprox.) the OC4J stop waiting and show blank page.
The javac.exe remains alive in Operating System.
*(strange) Cause:*
I know the cause but I find no explanation :-(...
The cause is the import of com.mySite.LoginBussines. This class is correctly (compiled by Eclipse and Ant) and run OK when is called from a servlet or another class running in OC4J. But when this class is imported in a JSP, the javac go crazy and remain try to compile permanently...
*(very strange) Workaround:*
When I delete any code line of this class (one or more, no matter), arbitrary line of any method in this Class, recompile class and try again, it's work fine!
NOTE: the size of LoginBussines.class it's around 66.897 bytes. I don't know if it's relevant.
Please, someone know what's going on? Someone has encountered this problem?
Thank you so much!
Edited by: 890752 on 11-oct-2011 4:40
Edited by: 890752 on 11-oct-2011 6:08
Robert,
It appears that you have only installed the Java Runtime Environment (JRE). You need to install the Software Development Kit (SDK). Get version 1.4.2_05, since this is what your version of OC4J requires. Go to the following Web page
http://java.sun.com/j2se/1.4.2/download.html
And look for the "Download J2SE SDK" link -- which appears below the heading:
J2SE v 1.4.2_05 SDK
Good Luck,
Avi.
Similar Messages
-
"Error running javac.exe compiler" when using ant to compile Eclipse plugin
Hi
I encounter an error "Error running C:\jdk1.5.0_06\bin\javac.exe compiler" when building my project using ant1.7.
My project has 10 eclipse plugins, and each plugin is compiled by invoking following ant target
<!-- ===================================================================
Compile specified plugin
target parameters:
param.plugin.dir: the plugin directory
param.plugin.targetJarFile: the name of jar file for the given plugin
param.plugin.src.dir: the folder name of source codes. Note: it is relative path name
param.fork: indicate if another process is forked to run javac
=================================================================== -->
<target name="compilePlugin">
<!-- Prepare compile environment -->
<!-- Delete obsolete build folder -->
<delete dir="${param.plugin.dir}/${build.dir}" quiet="true"/>
<!-- Delete obsolete jar file -->
<delete file="${param.plugin.dir}/${param.plugin.targetJarFile}" quiet="true"/>
<mkdir dir="${param.plugin.dir}/${build.dir}"/>
<!-- Compile source codes -->
<javac srcdir="${param.plugin.dir}/${param.plugin.src.dir}"
destdir="${param.plugin.dir}/${build.dir}"
failonerror="${javacFailOnError}"
verbose="${javacVerbose}"
debug="${javacDebugInfo}"
deprecation="${javacDeprecation}"
optimize="${javacOptimize}"
source="${javacSource}"
target="${javacTarget}"
fork="${param.fork}" memoryInitialSize="256m" memoryMaximumSize="512m">
<classpath refid="compile.classpath" />
</javac>
<!-- Create plugin jar file -->
<copy todir="${param.plugin.dir}/${build.dir}" failonerror="true">
<fileset dir="${param.plugin.dir}/${param.plugin.src.dir}" excludes="**/*.java, **/package.htm*" />
</copy>
<jar jarfile="${param.plugin.dir}/${param.plugin.targetJarFile}" basedir="${param.plugin.dir}/${build.dir}"/>
<delete dir="${param.plugin.dir}/${build.dir}" quiet="true"/>
</target>
Since each of first 9 plugins contains less than 500 java source files, we always set "param.fork" to false when invoking this ant target.
For the 10th plugin, it has about 1000 source files. If we set "param.fork" to false, we will get the error "Error running javac.exe compiler". So we have to set "param.fork" to true when compiling it. This week, this plugin contains about 1250 files and we get the same error again when compiling it. I tried to increase the "memoryMaximumSize" to "768", but still couldn't get through it.
BTW, There are about 150 jar files in our classpath for compiling plugins. Do many jar files cause this problem?
Any help is highly appreciated.
Many thanks
OceanmanI encountered a very similar error and I was able to resolve it by removing the following parameters from the javac task:
fork="${param.fork}"
memoryInitialSize="256m"
memoryMaximumSize="512m"My values were not the same as yours, before I removed them, the values were set to:
fork="true"
memoryInitialSize="256m"
memoryMaximumSize="256m" Not sure why this fixed my problem but it did. I was using Ant 1.7 and Java 1.6_07 hope this helps. -
GeoKettle: Error running javac.exe compiler
Hi,
I am trying to use GeoKettle exactly as mentioned at
http://209.85.229.132/search?q=cache:JHfrxCo7y0YJ:forge.osor.eu/docman/view.php/143/250/Kettle_Devel_guide_v0.odt+geokettle+spoon+java+api&cd=2&hl=en&ct=clnk&client=firefox-a
But when I try to build it, i am getting the following error.
[javac] Compiling 135 source files to D:\workspace\geokettle\classes-core
BUILD FAILED
D:\workspace\geokettle\build.xml:74: Error running javac.exe compiler
Can anyone guide me please to resolve this problem.
Best Regards
Tabbasummost likely the javac executable is not on the system path. Try typing 'javac -version' in a command prompt and see what response you get.
If it is something like 'javac is not a recognized...', locate where the JDK is installed and add its bin subdirectory to the PATH system variable. Restart any command prompt and type javac again.
You DID have a JDK installed, didn't you? -
How do you get tomcat 5.5. to compile JSPs in the Sun JDK
Tomcat 5.5 JSPs do not compile with Java 5 code therefore how do you change it to use the Sun's JDK to compile Java 5 code.
It does seem odd that you can compile Java 5 servlets but not JSP's.I've followed all these steps, but my Tomcat/5.5.4 still won't compile my 1.5-java-syntaxed JSP's.
Here is exception stack:
org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:342)
org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:248)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:62)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
apollinary.filter.EncodingFilter.doFilter(EncodingFilter.java:19)
root cause
Error running javac.exe compiler
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:473)
org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:47)
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:213)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:62)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
apollinary.filter.EncodingFilter.doFilter(EncodingFilter.java:19)I tried to substitute /common/lib/jasper-compiler-jdt.jar with Tomcat/5.0.27's /common/lib/ant.jar or IDEA 5.0's /lib/ant/ant.jar - effects are the same as described above.
What's the problem? -
Disable compiling jsps in oc4j
We want to move to using the ojspc ant task to pre-compile our jsps where I work. I can get the ant task to run but evidently am not putting the output in the correct location. In stand-alone oc4j I have to include the jsps in my deployment, which I'm not sure I should have to do. On the full OAS with jsp compiling turned off, none of the pages render. I have to hand the ears to 3rd parties to get them deployed on the OAS instance and my access to logs there is also limited so I'd like to get my oc4j stand-alone to NOT compile jsps so I have an environment that I can play with to fix the problem.
Questions
Q1) Can I turn off jsp compiling in OC4J standalone (deployed on Win XP OC4J version 10.1.3.5.0)?
Q2) If the class files OJSPC produces are in the right place do I NEED the jsps in my ear/war file (same environment)?Figured it out on my own:
A1) Yes. From Application Server Control select Administration
Select JSP Properties
Set "When a JSP changes" (under Runtime Parameters) to Reload classes.
A2) If set as above the JSPs are not necessary.
My root problem was that the ojspc task was not set to compile and and the javac task wasn't putting the .class files in the right place. Setting ojspc to nocompile="false" and appRoot to my destination path and suddenly _(pagename).class files starting appearing in the appropriate output directories and problem solved. -
RFE: faster javac compilation using invocation instead of running javac.exe
Sun's JDK contains the Java compiler in tools.jar.
Why not use it instead of running javac.exe?
It should also simplify the code for cross platform compatibility...
Regards,
Yaniv KundaI meant that JDev would invoke the compiler from the libs of the project JDK.
But this is indeed a sort of a hack because the libs are not documented and are sun-specific (a problem with other JDKs).
Anyway, I was just reading a bit on Java 6 (Mustang) and saw that an API (per JSR-199 : http://jcp.org/en/jsr/detail?id=199) for java compilation is one of its new features!
This feature is documented in http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4164450.
I guess it would be a feature for a newer major release of JDev, but nevertheless important to mention.
Regards,
Yaniv Kunda -
Error initializing ejb-module; Exception javac.exe not found under
Dear all,
I got followings error after i had tried to doing some lab.I had checked the folder "C:\Program Files\Oracle\jre\1.3.1" exists but missed but missing javac.exe. Could anyone can advice me what is going wrong?
04/04/14 16:44:20 Auto-deploying - web/WEB-INF/classes (No previous deployment found)...
04/04/14 16:44:20 Error instantiating application 'lab04' at file:/C:/share/oc4j
/labs/lab04/: Error initializing ejb-module; Exception javac.exe not found under
C:\Program Files\Oracle\jre\1.3.1, please use a valid jdk or specify the locati
on of your java compiler in server.xml using the <java-compiler .../> tag
Thanks in advance!
Best Regards,
Chris CHIUDear Chris,
The answer lies in the error message you got, namely:
please use a valid jdkAccording to your post, you don't have a JDK, you only have a JRE. The javac compiler is part of the JDK, it is not part of the JRE.
You can download the JDK from the J2SE Download Web page. Look for the Download J2SE SDK link -- do not choose the Download J2SE JRE link!
Good Luck,
Avi. -
I am using WLS 5.1 with jsp configuration in weblogic.properties file as:
weblogic.httpd.register.*.jsp=\
weblogic.servlet.JSPServlet
weblogic.httpd.initArgs.*.jsp=\
pageCheckSeconds=1,\
compileCommand=D:/weblogic/jre1_2/jre/bin/javac.exe,\
workingDir=D:/weblogic/myserver/classfiles,\
verbose=true
I copy all examples files to myserver's document root,
/weblogic/myserver/pub_html. I then run WLS and go to
http://localhost:7001/examples/jsp/index.html to click run link for
HelloWorld.jsp. I get Error 500--Internal Server Error:
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.5.1 500 Internal Server Error
The server encountered an unexpected condition which prevented it from
fulfilling the request.
I also get the error in weblogic.log as below:
Mon Aug 07 11:29:29 CDT 2000:<I> <WebLogicServer> WebLogic Server started
Mon Aug 07 11:29:41 CDT 2000:<I> <ListenThread> Adding address:
localhost/127.0.0.1 to licensed client list
Mon Aug 07 11:29:41 CDT 2000:<I> <NT Performance Pack> Allocating: '2' NT
reader threads
Mon Aug 07 11:29:41 CDT 2000:<I> <ServletContext-General> file: init
Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: init
Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
verbose initialized to: true
Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
packagePrefix initialized to: jsp_servlet
Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
compileCommand initialized to: D:/weblogic/jre1_2/jre/bin/javac.exe
Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
srcCompiler initialized to weblogic.jspc
Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
superclass initialized to null
Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
workingDir initialized to: D:\weblogic\myserver\classfiles
Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
pageCheckSeconds initialized to: 1
Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp:
initialization complete
Mon Aug 07 11:29:46 CDT 2000:<I> <ServletContext-General> Generated java
file:
D:\weblogic\myserver\classfiles\jsp_servlet\_examples\_jsp\_helloworld.java
Mon Aug 07 11:29:46 CDT 2000:<E> <ServletContext-General> Compilation of
D:\weblogic\myserver\classfiles\jsp_servlet\_examples\_jsp\_helloworld.java
failed: java.io.IOException: CreateProcess:
D:/weblogic/jre1_2/jre/bin/javac.exe -classpath
D:\weblogic\myserver\serverclasses;D:\orant\jdbc\lib\classes12.zip;D:\hitjdb
c400;D:\weblogic\jre1_2\jre\lib\rt.jar;D:\weblogic\jre1_2\jre\lib\i18n.jar;D
:\weblogic\classes\boot;D:\weblogic\eval\cloudscape\lib\cloudscape.jar;D:\we
blogic\license;D:\weblogic\classes;D:\weblogic\myserver\serverclasses;D:\web
logic\lib\weblogicaux.jar;D:\weblogic\myserver\servletclasses;D:\weblogic\my
server\classfiles -d D:\weblogic\myserver\classfiles
D:\weblogic\myserver\classfiles\jsp_servlet\_examples\_jsp\_helloworld.java
error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:64)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:272)
at java.lang.Runtime.exec(Runtime.java:219)
at weblogic.utils.Executable.exec(Executable.java, Compiled Code)
at weblogic.utils.Executable.exec(Executable.java:88)
at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
a, Compiled Code)
at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:202)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:16
4)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:99)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:123)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:742)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:686)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:247)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
java.io.IOException: Compiler failed
executable.exec([Ljava.lang.String;[D:/weblogic/jre1_2/jre/bin/javac.exe, -c
lasspath,
D:\weblogic\myserver\serverclasses;D:\orant\jdbc\lib\classes12.zip;D:\hitjdb
c400;D:\weblogic\jre1_2\jre\lib\rt.jar;D:\weblogic\jre1_2\jre\lib\i18n.jar;D
:\weblogic\classes\boot;D:\weblogic\eval\cloudscape\lib\cloudscape.jar;D:\we
blogic\license;D:\weblogic\classes;D:\weblogic\myserver\serverclasses;D:\web
logic\lib\weblogicaux.jar;D:\weblogic\myserver\servletclasses;D:\weblogic\my
server\classfiles, -d, D:\weblogic\myserver\classfiles,
D:\weblogic\myserver\classfiles\jsp_servlet\_examples\_jsp\_helloworld.java]
at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
a, Compiled Code)
at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:202)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:16
4)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:99)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:123)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:742)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:686)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:247)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
Mon Aug 07 11:29:46 CDT 2000:<E> <ServletContext-General> Servlet failed
with Exception
java.lang.NumberFormatException: error=2
at java.lang.Integer.parseInt(Integer.java, Compiled Code)
at java.lang.Integer.parseInt(Integer.java:458)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:16
4)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:99)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:123)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:742)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:686)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:247)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
It looks like all my jsp are not running. How can I fix this problem?
Thanks a lot
DJ
Hi
"> compileCommand=D:/weblogic/jre1_2/jre/bin/javac.exe,\"
Check this line in your properties file. Are you sure javac.exe resides
inside the jre? As far as I know, it doesn't resides there by default. It
shd be inside ur c:\jdk1.2.2\bin or wherever u installed your jdk directory.
cheers,
keith
DJ <[email protected]> wrote in message news:[email protected]...
> I am using WLS 5.1 with jsp configuration in weblogic.properties file as:
>
> weblogic.httpd.register.*.jsp=\
> weblogic.servlet.JSPServlet
> weblogic.httpd.initArgs.*.jsp=\
> pageCheckSeconds=1,\
> compileCommand=D:/weblogic/jre1_2/jre/bin/javac.exe,\
> workingDir=D:/weblogic/myserver/classfiles,\
> verbose=true
>
> I copy all examples files to myserver's document root,
> /weblogic/myserver/pub_html. I then run WLS and go to
> http://localhost:7001/examples/jsp/index.html to click run link for
> HelloWorld.jsp. I get Error 500--Internal Server Error:
>
> From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
> 10.5.1 500 Internal Server Error
> The server encountered an unexpected condition which prevented it from
> fulfilling the request.
>
> I also get the error in weblogic.log as below:
>
>
> Mon Aug 07 11:29:29 CDT 2000:<I> <WebLogicServer> WebLogic Server started
> Mon Aug 07 11:29:41 CDT 2000:<I> <ListenThread> Adding address:
> localhost/127.0.0.1 to licensed client list
> Mon Aug 07 11:29:41 CDT 2000:<I> <NT Performance Pack> Allocating: '2' NT
> reader threads
> Mon Aug 07 11:29:41 CDT 2000:<I> <ServletContext-General> file: init
> Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: init
> Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
> verbose initialized to: true
> Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
> packagePrefix initialized to: jsp_servlet
> Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
> compileCommand initialized to: D:/weblogic/jre1_2/jre/bin/javac.exe
> Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
> srcCompiler initialized to weblogic.jspc
> Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
> superclass initialized to null
> Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
> workingDir initialized to: D:\weblogic\myserver\classfiles
> Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
> pageCheckSeconds initialized to: 1
> Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp:
> initialization complete
> Mon Aug 07 11:29:46 CDT 2000:<I> <ServletContext-General> Generated java
> file:
>
D:\weblogic\myserver\classfiles\jsp_servlet\_examples\_jsp\_helloworld.java
> Mon Aug 07 11:29:46 CDT 2000:<E> <ServletContext-General> Compilation of
>
D:\weblogic\myserver\classfiles\jsp_servlet\_examples\_jsp\_helloworld.java
> failed: java.io.IOException: CreateProcess:
> D:/weblogic/jre1_2/jre/bin/javac.exe -classpath
>
D:\weblogic\myserver\serverclasses;D:\orant\jdbc\lib\classes12.zip;D:\hitjdb
>
c400;D:\weblogic\jre1_2\jre\lib\rt.jar;D:\weblogic\jre1_2\jre\lib\i18n.jar;D
>
:\weblogic\classes\boot;D:\weblogic\eval\cloudscape\lib\cloudscape.jar;D:\we
>
blogic\license;D:\weblogic\classes;D:\weblogic\myserver\serverclasses;D:\web
>
logic\lib\weblogicaux.jar;D:\weblogic\myserver\servletclasses;D:\weblogic\my
> server\classfiles -d D:\weblogic\myserver\classfiles
>
D:\weblogic\myserver\classfiles\jsp_servlet\_examples\_jsp\_helloworld.java
> error=2
> at java.lang.Win32Process.create(Native Method)
> at java.lang.Win32Process.<init>(Win32Process.java:64)
> at java.lang.Runtime.execInternal(Native Method)
> at java.lang.Runtime.exec(Runtime.java:272)
> at java.lang.Runtime.exec(Runtime.java:219)
> at weblogic.utils.Executable.exec(Executable.java, Compiled Code)
> at weblogic.utils.Executable.exec(Executable.java:88)
> at
>
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
> a, Compiled Code)
> at
> weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:202)
> at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code)
> at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
> at
>
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:16
> 4)
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :99)
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :123)
> at
>
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
> l.java:742)
> at
>
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
> l.java:686)
> at
>
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
> Manager.java:247)
> at
>
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
> at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
>
> java.io.IOException: Compiler failed
>
executable.exec([Ljava.lang.String;[D:/weblogic/jre1_2/jre/bin/javac.exe, -c
> lasspath,
>
D:\weblogic\myserver\serverclasses;D:\orant\jdbc\lib\classes12.zip;D:\hitjdb
>
c400;D:\weblogic\jre1_2\jre\lib\rt.jar;D:\weblogic\jre1_2\jre\lib\i18n.jar;D
>
:\weblogic\classes\boot;D:\weblogic\eval\cloudscape\lib\cloudscape.jar;D:\we
>
blogic\license;D:\weblogic\classes;D:\weblogic\myserver\serverclasses;D:\web
>
logic\lib\weblogicaux.jar;D:\weblogic\myserver\servletclasses;D:\weblogic\my
> server\classfiles, -d, D:\weblogic\myserver\classfiles,
>
D:\weblogic\myserver\classfiles\jsp_servlet\_examples\_jsp\_helloworld.java]
> )
> at
>
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
> a, Compiled Code)
> at
> weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:202)
> at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code)
> at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
> at
>
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:16
> 4)
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :99)
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :123)
> at
>
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
> l.java:742)
> at
>
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
> l.java:686)
> at
>
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
> Manager.java:247)
> at
>
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
> at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
>
> Mon Aug 07 11:29:46 CDT 2000:<E> <ServletContext-General> Servlet failed
> with Exception
> java.lang.NumberFormatException: error=2
>
> at java.lang.Integer.parseInt(Integer.java, Compiled Code)
> at java.lang.Integer.parseInt(Integer.java:458)
> at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code)
> at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
> at
>
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:16
> 4)
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :99)
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :123)
> at
>
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
> l.java:742)
> at
>
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
> l.java:686)
> at
>
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
> Manager.java:247)
> at
>
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
> at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
>
> It looks like all my jsp are not running. How can I fix this problem?
>
> Thanks a lot
>
> DJ
>
>
-
Problems compiling jsps using WLS6.1sp3 as Win2k service
Two related issues:
Issue #1:
I'm encountering an error where the javac compiler cannot be found (when
trying to compile jsps) when running as a Windows Service. JAVA_HOME is set
in the profile and I'm passing in E:\bea\jdk131\bin in the extrapath
parameter of beasvc.exe. The error I get is a file permission exception -
unable to access (read) C:\WINNT\System32\javac. Question is - why is it
looking there and not in JAVA_HOME? To try and isolate this, I've removed
everything from the PATH and CLASSPATH environment variables except for
E:\bea\jdk131\bin but to no avail.
Issue #2:
I've also tried hard-coding the location E:\bea\jdk131\bin\javac.exe into
the config.xml and weblogic.xml. The error is then a file permission
exception - unable to access (read) .\E:\bea\jdk131\bin\javac. Note the
initial dot-slash... however, the weblogic.policy file is set to allow
read,execute access for all files and directories below E:\bea (I've even
tried to grant a permission to .\E:\....... but that didn't work either)
Hope someone can help - it's been driving me nuts for a week now! What do I
need to do to get Weblogic to find javac when running as a Windows Service?Hi Sudha
Plese see the error in the starting post. Do u agree with me now? The server is looking for org.apache.jsp.techSupport_jsp class.
Generated servlet error:
[javac] Compiling 1 source file
D:\MANTRA\jboss-3.0.4_tomcat-4.1.12\tomcat-4.1.x\work\M
inEngine\localhost\JSPTechSupport\techSupport_jsp.java:
2: cannot resolve symbol
symbol : class TechSupportBean
location: class org.apache.jsp.techSupport_jsp
TechSupportBean techSupportBean = null;
^
An error occurred at line: 2 in the jsp file:
/techSupport.jsp
Generated servlet error:
D:\MANTRA\jboss-3.0.4_tomcat-4.1.12\tomcat-4.1.x\work\M
inEngine\localhost\JSPTechSupport\techSupport_jsp.java:
4: cannot resolve symbol
symbol : class TechSupportBean
location: class org.apache.jsp.techSupport_jsp
techSupportBean = (TechSupportBean)
rtBean) pageContext.getAttribute("techSupportBean",
PageContext.APPLICATION_SCOPE);
^Take care.
Hafizur Rahman
SCJP -
Hi,
I'm using Ecliple 2.1 with JBOSS 3.2.2 and Tomcat 4.1.24 on XP
I can separately run JBOSS+Tomcat from command prompt, but when i start them from Eclipse, Tomcat fails to compile very first JSP. (Internal error). From examining error stack trace i see that tomcat tries to create process "javac.exe" with too lengthy classpath. It seems that the classpath is getting truncated.
Has anybody had similar problem?
Thanks in advance,
Leonid.i guess it is not the too lengthy classpath...
just chek that when u run the application from eclipse.. r u seting the classpath.. and that classpath should not have any spaces in it..
for ex: a directory like c:\program files \ should be as c:\progra~1\..
ot any jar file in the classpath has spaces...
this may be one of the reason that the classpath gets truncated... -
J2EE app server not able to compile JSP
Hi,
I have just installed J2EE app server and am trying to deploy a JSP. The following error is generated. can anyone help me please.
Thank you,
Deepika.
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
If using an alternate Java compiler, please check its installation and access path.
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:348)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:424)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:448)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:551)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:200)This is a known issue.
Here's an explanation of the behaviour you are seeing:
The misleading error message is printed only in the case where a javac
compilation error line number cannot be mapped back to a line number
in the JSP source code.
The internal representation of a JSP element ("JSP node") in the JSP compiler
contains the following info:
- The begin line number of the JSP element in the JSP page
- The begin and end line numbers ("range") of the Java code that was
generated for the JSP element
When attempting to map a javac error line number back to the JSP
source line, we determine the range into which the javac error line
number falls, and retrieve the JSP source number of the JSP element
associated with that range.
However, in some cases, it is impossible to trace a javac error line
number back to the JSP element that caused the error. For example,
consider the following scriptlet:
<%
String query = request.getParameter("query");
if(query != null) {
out.println(query);
} else {
out.println("(null)");
// } // <-- !Missing brace syntax error
%>
Since the JSP compiler wraps the generated code into a
try-catch-finally block, the above syntax error in the scriptlet
causes havoc with that try-catch-finally block, and results in 3 javac
errors:
<file>jsp.java:<line1>: 'catch' without 'try'
} catch (Throwable t) {
^
<file>jsp.java:<line2>: 'try' without 'catch' or 'finally'
try {
^
<file>jsp.java:<line3>: '}' expected
Notice that all of the above javac error numbers are outside the range
of the java line numbers corresponding to the scriptlet that caused the
error, and therefore cannot be mapped back to any line numbers in the
JSP page source.
AS 8.0 PE does not handle this case correctly, and prints out the
misleading error message (though the real error message can be found
in the server log).
Notice that this problem is going to be fixed in AS 8.1, so that if a
javac error line number cannot be mapped back to a JSP page line
number, the javac error is still returned to the client.
In AS 8.0 PE, you need to check your server log to find out why the compilation failed.
If you still have any problems, send me your JSP, and I will take a look at it.
Thanks,
Jan -
I'm new to Java (presently taking a class). I'm very confused and not getting too far. I'm running Win XP and have downloaded the latest version of Java J2SE1.4.0_01 (actually because of repeated problems, I've uninstalled and installed it a few times).
I can't find javac.exe anywhere on my c drive. I read a past forum posting describing the same problem which suggests downloading the latest version of SDK1.4. Isn't this what I have been downloading? Where can I find this download? If it isn't what I've been downloading, why do I need both and how would I have known this? I understand how to set the path once I get javac.exe but I'm becoming frustrated trying to obtain this file and move forward with my study of java. Thanks for the help.If you need only to run a java application then you just need a JRE (Java Runtime Enviorment ). It contains everything that you wanted to run it.
But, if you want to develop some java application , then you needs something more... you need to have to compile those source files first... For this what you want is a SDK (Software development Kit)... Both is free.. You can download the 1.4sdk from http://java.sun.com/Download6
After downloading and installing it, set the path corectly to include the bin directory of the installed folder..
Hope it helped
appu -
Javac.exe 1.4 is not finding user classes!!
! HELP !
Okay, I've used -classpath, i've messed around a bit with my settings, but for some reason, I can't get java to compile my code on my machine!!! I know it works, because I made and compiled it on machines on my school's account.
THE problem:
javac.exe keeps telling me that all of my own class objects are unresolved symbols, yet they ALL exist! and they are in the same directory! This happens with any outside class object reference in any class except Sun's predefined SDKs.
What the heck do I do?well well... Am I under the stupidly mistaken impression that the Platform kit is not the same as the Software Development kit?
I think I am...I am going to download the 1.31a sdk, and if it works, then I'm going to slap myself. hard. REALLY hard. :) GRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRack!ACKACKACKACKACKACKACKACKACKACKACKACK! -
I am running Windows Server 2003 box (work related reasons). I use TextPad 4.7.3 for my editor. When I went to compile a java program it came back with the error:
C:\WINDOWS\SYSTEM32\javac.exe
The window cannot find the filed specified
I have tried to re-install but no luck, any suggestions?Did you actually install the JDK/SDK or did you just install the runtime?
If you installed the JDK/SDK then add the bin where javac is to your PATH. -
I am using JDK 1.2 and when I try to compile HelloWorld. Java using javac HelloWorld.java its pops up a window that says javac.exe has encountered a problem and needs to close. Any ideas on what the problem might be. Thanks!
No. Is there a reason why you're using such an old version of Java?
If not, possibly the easiest and quickest resolution would be to download and install a current version, either 1.4.2_06 or 1.5.0
There have been many improvements that might eliminate the problem.
Maybe you are looking for
-
I can't install Itunes 11.0.4. please help!
The automatic updater threw an error when I tried to update iTunes and Quick Time today. It said: "The feature you are trying to use is on a network resource that is unavailable." about both a "iTunes 64.msi" file and a "Quick Time.msi" file. Solutio
-
TS5148 Apple TV turns on with no picture...pulling power only solution
Every time I switch to my Apple TV I get a blank screen on the TV an no amount of button pushing or TV "changes" fixes it. Only fix is to pull the power plug on the ATV. Ideas?
-
Glitch when switching to home screen
Hi, I just purchased the iphone 5s and was wondering if anybody else is having the same issue as me. As I close my apps and return back to the home screen, there is a glitch on the top (where the time is placed, battery life) Basically the top of the
-
How to select certain xml group based on attribute id and return as xmltype
hi, i have an xmltype column name "NM" in table "XMLTEST", the content of the xml in NM is <ct> <sp id="ALEX"> <sp id="JOHN"> <sp id="MIKE"> <sp id="CALEB"/> <sp id="PAUL"/> </sp> </sp> <sp id="MAX"> <sp id="WAYNE"/> </sp> <sp id="MAX"/> </sp> </ct>
-
How can I best keep a current iPhoto file between two computers?
I currently have an iMac and a Macbook Pro. I would like to be able to use iPhoto on both computers, but what I do with one computer, it doesn't sync with the other (sorry I didn't get Mobile Me when I could!!). Anyone have an idea of how best to man