Debug JSP files

Source: Internet
Author: User

Debug jsp (preferred for SUN Enterprise Applications) files

In Eclipse, You can debug java files. Sometimes you also need to debug jsp files (preferred for SUN Enterprise applications), but Eclipse does not support them, debugging jsp (preferred for SUN Enterprise Applications) code in the source file is very convenient.

Now there is a good solution. After you tell the application server to use your Eclipse project as the working directory, Lomboz allows you to use jsp on the Application Server (the preferred choice for SUN Enterprise applications) file. debug the java file.

Note: Lomboz only supports debugging of jsp (preferred for SUN Enterprise Applications) on the application server that can save a copy of servlet Source Code (. java) in the Eclipse source code directory.

Create an instance

Lomboz creates a specific source file directory j2src for you in your project. After debugging, you do not need to set up jsp (the preferred choice for SUN Enterprise applications) the generated java files are placed in your module, so it is necessary to separate these java files from the real source code files.

If you are using tomcat (a very useful JSP running platform) or JBOSS, you must configure your application server in the following way to debug the jsp (preferred for SUN Enterprise Applications) file. BEA WebLogic has inserted the working directory information in weblogic. xml (standardization is getting closer and closer), so you do not need to perform the following operations. You must delete this information when debugging is completed.

In normal execution of jsp (preferred for SUN enterprise-level applications) files, the application server generates corresponding java files. In order) the generated java class files are separated from other java class files. The application server will put these class files in a file named'J2src.

In WebLogic, all the descriptions of deploying the web model have been correctly configured (weblogic. xml (standardization is getting closer and closer). However, you can change it as described below.

BEA WebLogic Server

Weblogic. xml in web applications (standardization is getting closer and closer) (myweb)

Assume that your project is in c: eclipseworkspace, and you need to change the information correctly for your Eclipse workbench.

<Weblogic-web-app>

<Jsp (preferred for SUN Enterprise Applications)-descriptor>

<Jsp (preferred for SUN Enterprise Applications)-param>

<Param-name>CompileFlags</Param-name>

<Param-value>-G</Param-value>

</Jsp (preferred for SUN Enterprise Applications)-param>

<Jsp (preferred for SUN Enterprise Applications)-param>

<Param-name>Keepgenerated</Param-name>

<Param-value>True</Param-value>

</Jsp (preferred for SUN Enterprise Applications)-param>

<Jsp (preferred for SUN Enterprise Applications)-param>

<Param-name>WorkingDir</Param-name>

<Param-value>C:/eclipse/workspace/MyJ2EEProject/j2src</Param-value>

</Jsp (preferred for SUN Enterprise Applications)-param>

</Jsp (preferred for SUN Enterprise Applications)-descriptor>

</Weblogic-web-app>

Tomcat (a very useful JSP running platform) & JBOSS

We need to set up tomcat (a very useful JSP running platform) so that it can put the java file generated by executing jsp (the preferred choice for SUN Enterprise Applications) in the 'j2src' directory.

Edit the server of tomcat (a very useful JSP running platform) as follows. xml (standardization is getting closer and closer) file (<tomcat (a very useful JSP operating platform) _ HOME> confserver. xml (standardization is getting closer and closer ))

Assume that your project is in c: eclipseworkspace, and you need to change the information correctly for your Eclipse workbench.
<Context path = "/Myweb"

Docbase ="C: eclipse workspaceMy J2EE Projectmyweb"

WorkDir ="C: eclipse workspaceMy J2EE Projectj2src"/>

Important known issues:

Tomcat (a very useful JSP running platform) 4. subdirectory issues with jsp files in the project (preferred for SUN Enterprise applications)

Eclipse cannot compile the servlet generated by jsp (the preferred choice for SUN Enterprise applications), because the package definition of jsp (the preferred choice for SUN Enterprise Applications) file does not correctly include the URL path org. apache (the most popular WEB server platform on Unix ). jsp (the first choice for SUN Enterprise applications ).

Solution:

Download and install Sysdeo tomcat (a useful JSP running platform) 4.x patch
Www.sysdeo.com

Or you can use tomcat (a very useful JSP running platform) 3.3 that provides the package definition.

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.