You can certainly set breakpoints into the org.apache.jasper.* classes, but the on-the-fly compilation only generates bytecode into memory, so no idea if intellij can see that. I would precompile the jsps using the jetty-jspc-maven-plugin and use the jetty:run-exploded goal instead and you should be able to breakpoint into the servlets generated from the jsps.
Jan On 24 August 2015 at 00:50, Filipe Sousa <[email protected]> wrote: > Is it possible to debug jsp files with jetty-maven-plugin? > > I can debug everything inside the IDE (intellij) except jsp. I’m putting > the breakpoints directly into jsp. > > <plugin> > <groupId>org.eclipse.jetty</groupId> > <artifactId>jetty-maven-plugin</artifactId> > <version>${jetty.version}</version> > <configuration> > <httpConnector> > <host>localhost</host> > <port>8080</port> > </httpConnector> > <reload>manual</reload> > <scanTargetPatterns> > <scanTargetPattern> > <directory>${project.basedir}/src/main/etc</directory> > <includes> > <include>**/*.xml</include> > <include>**/*.properties</include> > </includes> > </scanTargetPattern> > </scanTargetPatterns> > <webApp> > <contextPath>/demo</contextPath> > </webApp> > <systemProperties> > <systemProperty> > <name>jetty.home</name> > <value>${project.basedir}/src/main</value> > </systemProperty> > <systemProperty> > <name>logback.configurationFile</name> > <value>${project.basedir}/src/main/etc/logback.xml</value> > </systemProperty> > </systemProperties> > </configuration> > </plugin> > > my web.xml: > <?xml version="1.0" encoding="UTF-8"?> > <web-app > xmlns="http://xmlns.jcp.org/xml/ns/javaee" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee > http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" > metadata-complete="false" > version="3.1"> > <display-name>jsp</display-name> > > <servlet id="jsp"> > <servlet-name>jsp</servlet-name> > <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class> > <init-param> > <param-name>logVerbosityLevel</param-name> > <param-value>DEBUG</param-value> > </init-param> > <init-param> > <param-name>fork</param-name> > <param-value>false</param-value> > </init-param> > <init-param> > <param-name>keepgenerated</param-name> > <param-value>true</param-value> > </init-param> > <init-param> > <param-name>compilerTargetVM</param-name> > <param-value>1.7</param-value> > </init-param> > <init-param> > <param-name>compilerSourceVM</param-name> > <param-value>1.7</param-value> > </init-param> > <init-param> > <param-name>development</param-name> > <param-value>true</param-value> > </init-param> > <init-param> > <param-name>classdebuginfo</param-name> > <param-value>true</param-value> > </init-param> > <load-on-startup>0</load-on-startup> > </servlet> > > <servlet-mapping> > <servlet-name>jsp</servlet-name> > <url-pattern>*.jsp</url-pattern> > <url-pattern>*.jspf</url-pattern> > <url-pattern>*.jspx</url-pattern> > <url-pattern>*.xsp</url-pattern> > <url-pattern>*.JSP</url-pattern> > <url-pattern>*.JSPF</url-pattern> > <url-pattern>*.JSPX</url-pattern> > <url-pattern>*.XSP</url-pattern> > </servlet-mapping> > </web-app> > > Is this supported? > > I have the project here: > https://github.com/natros/jsp-demo > > Thanks, > Filipe Sousa > > _______________________________________________ > jetty-users mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/jetty-users > -- Jan Bartel <[email protected]> www.webtide.com *Expert assistance from the creators of Jetty and CometD*
_______________________________________________ jetty-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users
