• Post Reply Bookmark Topic Watch Topic
  • New Topic

Precompiling JSPs using weblogic.jspc (webloigc V 5.1)  RSS feed

 
Vipin
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have not found much documentation on using weblogic.jspc. I tried compiling a minimal HelloWorld.jsp using the below option
C:\weblogic\myserver\public_html>java weblogic.jspc -debug -verbose -classpath
.;C:\weblogic\lib\weblogicaux.jar;C:\weblogic\classes HelloWorld.jsp
[jspc] parsing C:\weblogic\myserver\public_html\HelloWorld.jsp:
[jspc] parsed HelloWorld.jsp in 250 ms.
[jspc] generated java file C:\weblogic\myserver\public_html\_helloworld.java, invoking java compiler:
Exec failed .. exiting
I removed the -debug option from the command line and it seems to work but does not give any indication of success.
C:\weblogic\myserver\public_html>java weblogic.jspc -classpath .;C:\weblogic\li
b\weblogicaux.jar;C:\weblogic\classes -verbose HelloWorld.jsp
[jspc] parsing C:\weblogic\myserver\public_html\HelloWorld.jsp:
[jspc] parsed HelloWorld.jsp in 250 ms.
[jspc] generated java file C:\weblogic\myserver\public_html\_helloworld.java, invoking java compiler:
C:\weblogic\myserver\public_html>
I introduced an error in the jsp file and with the same commandline option as above I get the mesage, Exec failed .. exiting
How do i get it to print what the error was and which line number ? Is there a way to do this ?
( I compile the generated .java file with the java compiler and that gives me the error and line number, but is there a more direct way to do this ?)
(Weblogic 5.1 Running on Win2K,JDK1.3.1_01 )
Thanks
Vipin
[ January 19, 2002: Message edited by: Vipin ]
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure this will solve your problem. The verbose messages are saved in the WebLogic log file (local log). You may want to take a look at the local log.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"vipin"
your name deosn't agree with the javaranch guidelines. Please take a moment and re-register after reviewing the guidelines at http://www.javaranch.com/name.jsp
thanks for your cooperation.
- satya
 
Shantanu Bhamare
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
After compiling .jsp page it creates .java but java file start with "_" for example hello.jsp would will _hello.java, what is that ? If I don't want _hello.java instead just hello.java then what is procedure for it.
Please reply back
Shantanu Bhamare
Originally posted by Vipin:
I have not found much documentation on using weblogic.jspc. I tried compiling a minimal HelloWorld.jsp using the below option
C:\weblogic\myserver\public_html>java weblogic.jspc -debug -verbose -classpath
.;C:\weblogic\lib\weblogicaux.jar;C:\weblogic\classes HelloWorld.jsp
[jspc] parsing C:\weblogic\myserver\public_html\HelloWorld.jsp:
[jspc] parsed HelloWorld.jsp in 250 ms.
[jspc] generated java file C:\weblogic\myserver\public_html\_helloworld.java, invoking java compiler:
Exec failed .. exiting
I removed the -debug option from the command line and it seems to work but does not give any indication of success.
C:\weblogic\myserver\public_html>java weblogic.jspc -classpath .;C:\weblogic\li
b\weblogicaux.jar;C:\weblogic\classes -verbose HelloWorld.jsp
[jspc] parsing C:\weblogic\myserver\public_html\HelloWorld.jsp:
[jspc] parsed HelloWorld.jsp in 250 ms.
[jspc] generated java file C:\weblogic\myserver\public_html\_helloworld.java, invoking java compiler:
C:\weblogic\myserver\public_html>
I introduced an error in the jsp file and with the same commandline option as above I get the mesage, Exec failed .. exiting
How do i get it to print what the error was and which line number ? Is there a way to do this ?
( I compile the generated .java file with the java compiler and that gives me the error and line number, but is there a more direct way to do this ?)
(Weblogic 5.1 Running on Win2K,JDK1.3.1_01 )
Thanks
Vipin
[ January 19, 2002: Message edited by: Vipin ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!