• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Where can i see the java file of a container converted JSP file in weblogic

 
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi

I am using weblogic11g.

Where can i see the java file of a container converted JSP file .
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Search for the keep generated option that can be configured in your weblogic XML. That will keep generated java files.

I cannot remember the exact path where the java files are saved. Most times I simply search for the file name under the corresponding deployment folder when I encounter a java error.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please anybody let me know how can i generate a java file for a JSP file in weblogic
 
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ravi Kiran Varre wrote:Please anybody let me know how can i generate a java file for a JSP file in weblogic



You need to create a weblogic.xml file and use the jsp-descriptor elements (keep-generated) and specify a dir where the generate java should be placed.

http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webapp/weblogic_xml.html#wp1038491

[]s
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks ,

i had kept this code i every weblogic.xml file (I am using Weblogic 11)



But the container still is not generating the java files for the jsp files .

Any suggestions .
 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you need to define a working-dir also !!! As follows:




[]s
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This syntax seems different ,

is using wls as preifx is mantadatory ?

and one more doubt is what should be the path of Working directory .
 
Deepak Bala
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The prefix is used to explicitly define the namespace. It is not mandatory if you mention the xmlns in the root element

You can get weblogic to show you the java files without actually mentioning a working directory. Where are you looking for these files ? The generated java files can be pretty cryptic. What do you plan to do with the java code ?
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am searching for the java files in the whole weblogic installed folder and also inside my application (which i had given as the folder to deploy)

Any suggestions

and for your question

Whenever a jsp page has a error it only shows java line number but not the jsp src line number so for this i want to see the java files for that jsp
 
Deepak Bala
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ravi Kiran Varre wrote:I am searching for the java files in the whole weblogic installed folder and also inside my application (which i had given as the folder to deploy)

Any suggestions

and for your question

Whenever a jsp page has a error it only shows java line number but not the jsp src line number so for this i want to see the java files for that jsp



Which is what I thought. Even if you can get your hands on this JSP -> java generated file it is going to be pretty hard to trace down the reason by looking at the java file. But I agree that it can help.

Usually the keep generated flag is all you need to have the java file generated. I am not sure what is going wrong. Perhaps weblogic is not able to read this for some reason. Where have you placed the weblogic.xml file ? What is your EAR / WAR structure
 
She said she got a brazillian. I think owning people is wrong. That is how I learned ... tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic