• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Jsp Comiling

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anybody let me know how to compile jsp files manually on the command prompt in weblogic5.1 version. Most of my jsp files include custom tag library ie .tld file included.
If i use the following command i am getting IOExcepiton. I don't know why am i getting this exception.
java weblogic.jspc -d /weblogic/classes *.jsp
nested IOException: java.io.IOException: cannot resolve 'TestTagLib.tld' into a valid tag library
This works fine when the weblogic server does the automatic comilation ie when i hit the jsp page.
Appreciate your help!
Thanks.
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Do try to have the classes or Jar files associated with that tag library in the class path when running weblogic.jspc class.
Let me know, if this helps.
 
Mandy S Smith
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Venkataraman,
I tried what you said, now that IOException is gone but i got the following error message saying String index out of range and then nothing happens. Could you please take a look at it and let me know what i might be doing wrong.
C:\weblogic510\myserver\public_html\jsp>java weblogic.jspc -d c:\weblogic510\mys
erver\compiled\jsp_servlet\_jsp \ -classpath c:\weblogic510\myserver\public_htm
l\WEB-INF \ *.jsp
String index out of range: -36
Appreciate your help.
Thanks for your response.
 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use your browser and use the weblogic console to see what error you get. Look at teh weblogic log and see if you get the same error whihc means you may have a problem in your code.
 
Mandy S Smith
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Hemal Mehta,
Here what i am talking about is that all my jsp files work fine when weblogic server compiles my jsp files, but i was trying to do the compile of all the jsp files before hand ie before i even start the weblogic server on command prompt so that i don't have to wait when weblogic server keeps compiling when i hit a jsp page.
Thanks,
Apprciate any further help on this matter.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Mandy S Smith:
Hi Hemal Mehta,
Here what i am talking about is that all my jsp files work fine when weblogic server compiles my jsp files, but i was trying to do the compile of all the jsp files before hand ie before i even start the weblogic server on command prompt so that i don't have to wait when weblogic server keeps compiling when i hit a jsp page.
Thanks,
Apprciate any further help on this matter.

 
Shantanu Bhamare
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Venkatraman Balasubramanian:
Hi,
Do try to have the classes or Jar files associated with that tag library in the class path when running weblogic.jspc class.
Let me know, if this helps.

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic