Java file generation settings for WebLogic compilation JSP

Source: Internet
Author: User

 

When running a self-configured web application, you can only view the class file compiled by weblogic.

You cannot see the java files before compilation. For debugging convenience, we sometimes want to see the java files before compilation.
Add weblogic. xml
<JSP-Descriptor>
<JSP-param>
<Param-Name> keepgenerated </param-Name>
<Param-value> true </param-value>
</JSP-param>
</JSP-Descriptor>
You can.
If not, create a weblogic. xml file in the WEB-INF.
Add
<? XML version = "1.0" encoding = "UTF-8"?>
<! Doctype Weblogic-web-app
Public "-// BEA Systems, Inc. // DTD web application 8.1 // en"
Http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd>
<Weblogic-web-app>

<JSP-Descriptor>
<JSP-param>
<Param-Name> keepgenerated </param-Name>
<Param-value> true </param-value>
</JSP-param>
</JSP-Descriptor>
</Weblogic-web-app>
Check if the web application generates a temporary folder in WebLogic, usually in (xxx represents your project name)
Xxxdomain \ myserver \. in the wlnotdelete \ extract directory, if no Java file is generated, stop the service and delete all the files under myserver_xxx_xxx in the directory, after the service is restarted, you can see the generated Java file, which makes it easier to find errors for the program.

 

Weblogic9 is stored in c: \ Bea \ user_projects \ Domains \ mydomain \ servers \ adminserver \ TMP \ _ wl_user \ _ nvidir_boc_dir \ aptwrp \ jsp_servlet \ _ datacollect

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.