facebook

Debug Does Not Stop On JSP

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #351218 Reply

    eugenejsn
    Participant

    ME Blue 14 on linux. JBoss AS 7.1.1.

    1. Enabled JBoss 7.x
    2. Set it to the Debug mode
    3. Start the server on Debug Mode
    4. Set a breakpoint on JSP’s java section such as
    <%
    String x = “”;

    %>
    text………

    5. Load the page. The text is shown. But the java breakpoint does not work.

    How can I debug the JSP’s java section?

    Thanks

    Eugene

    #351233 Reply

    Eugene,

    This looks like a JBoss issue, as the JSP debug feature is missing for JBoss 7.1.1 AS. Here is the bug filed for this issue – https://issues.jboss.org/browse/AS7-4187

    This JBoss 7.1.1 specific bug could be resolved with the following steps :
    1. Open “jboss-as-7.1.1.Final/standalone/configuration/standalone.xml” file and add the following lines under <subsystem xmlns=”urn:jboss:domain:web:1.1″ default-virtual-server=”default-host” native=”false”> tag

    <configuration>
    <jsp-configuration development=”true” smap=”false”/>
    </configuration>

    2. Download jboss-as-web-7.1.1.Final-RECOMPILE.jar file from here and copy it to “jboss-as-7.1.1.Final/modules/org/jboss/as/web/main” folder.
    3. Open “jboss-as-7.1.1.Final/modules/org/jboss/as/web/main/module.xml” and add the following line

    <!–resource-root path=”jboss-as-web-7.1.1.Final.jar”/>–>
    <resource-root path=”jboss-as-web-7.1.1.Final-RECOMPILE.jar”/>

    4. Restart the server, if it is already started.

    Please take a look at this thread which discusses the similar issue – https://developer.jboss.org/message/723813

    Hope this helps.

    #351242 Reply

    eugenejsn
    Participant

    Updated

    #351243 Reply

    eugenejsn
    Participant

    UPDATE:

    From time to time, it works. But not solid.. I’ll continue to monitor its patterns. So for now, please go ahead to close this issue.

    #351245 Reply

    eugenejsn,

    If you still face any issues, I suggest you to post on JBoss forums for better support on this query, as this is a JBoss issue.
    Let us know if you see any issues with MyEclipse.

    #351270 Reply

    eugenejsn
    Participant

    Halfly agree. Sometimes the IDE can also play a role. For example, when my application run on IBM RAD 8 and Websphere 8, it worked fine. Then I migrated it over to MyEclipse Blue and Websphere 8, it does not run smoothly, i.e., some bugs appears.

    So same app, same app server, different IDE, bingo.

    Just to share.

    #351271 Reply

    eugenejsn
    Participant

    moved

    #351288 Reply

    Eugene,

    If the issue is specific to MyEclipse IDE then we would have considered to fix the issue at our end. But, as the issue is specific to JBoss 7.1.1 server I would suggest you cross post on JBoss forums for the fix to this issue.

    Let us know if you see any issues in MyEclipse.

    #352317 Reply

    zohaa3492
    Member

    Any update on workaround or fix?

    #352323 Reply

    zohaa3492,

    This looks like a JBoss issue, as the JSP debug feature is missing for JBoss 7.1.1 AS. Here is the bug filed for this issue – https://issues.jboss.org/browse/AS7-4187

    This JBoss 7.1.1 specific bug could be resolved with the following steps :
    1. Open “jboss-as-7.1.1.Final/standalone/configuration/standalone.xml” file and add the following lines under <subsystem xmlns=”urn:jboss:domain:web:1.1″ default-virtual-server=”default-host” native=”false”> tag
    Quote:
    <configuration>
    <jsp-configuration development=”true” smap=”false”/>
    </configuration>

    2. Download jboss-as-web-7.1.1.Final-RECOMPILE.jar file from here and copy it to “jboss-as-7.1.1.Final/modules/org/jboss/as/web/main” folder.
    3. Open “jboss-as-7.1.1.Final/modules/org/jboss/as/web/main/module.xml” and add the following line
    Quote:
    <!–resource-root path=”jboss-as-web-7.1.1.Final.jar”/>–>
    <resource-root path=”jboss-as-web-7.1.1.Final-RECOMPILE.jar”/>

    4. Restart the server, if it is already started.

    Please take a look at this thread which discusses the similar issue – https://developer.jboss.org/message/723813

    Can you try the above workaround to get the debugging work with JBoss 7.1.1. As mentioned in my earlier response, this issue is specific to JBoss 7.1.1 server. I would suggest you cross post on JBoss forums for the fix to this issue.

    Let us know if you see any issues with MyEclipse.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Debug Does Not Stop On JSP

You must be logged in to post in the forum log in