[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] JSP Support in maven eclipse Jetty 9.2.6 - JSP not working
|
Hello,
Please see below the maven jetty pom configuration and jetty config.xml attached with this email.
Not sure how to enable the annotations through maven eclipse jetty plugin.
Let me know if you need more details.
Thanks,
Ramesh
On Wednesday, 9 March 2016 1:01 AM, Jan Bartel <janb@xxxxxxxxxxx> wrote:
Hi,
Looks like you are doing a request forward. Can you please provide some more details on your setup, such as the maven jetty plugin configuration in your pom, and how you have your contexts deployed? An error like that usually occurs if a context has not been correctly setup for jsp - these days the jsp engine requires annotations to be enabled.
thanks,
Jan
<plugins>
<plugin>
<version>2.1-alpha-2</version>
<artifactId>maven-war-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.2.6.v20141205</version>
<configuration>
<jettyConfig>${basedir}/jetty.xml</jettyConfig>
<stopKey>foo</stopKey>
<stopPort>9999</stopPort>
<scanIntervalSeconds>0</scanIntervalSeconds>
<scanTargets>
<scanTarget>../cbs2-core/src/main/java/com/intuit/ifs/cbs</scanTarget>
</scanTargets>
<webApp>
<contextPath>/cbs2</contextPath>
</webApp>
<useTestClasspath>true</useTestClasspath>
<systemProperties>
<systemProperty>
<name>web.builddir</name>
<value>${basedir}</value>
</systemProperty>
<systemProperty>
<name>demo-broker.war.version</name>
<value>${project.version}</value>
</systemProperty>
</systemProperties>
</configuration>
<executions>
<execution>
<id>start-jetty</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
<configuration>
<scanIntervalSeconds>0</scanIntervalSeconds>
<daemon>true</daemon>
</configuration>
</execution>
<!-- <execution>
<id>stop-jetty</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution> -->
</executions>
</plugin>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<Configure id="Server" class="org.eclipse.jetty.server.Server">
<!-- =========================================================== -->
<!-- Set handler Collection Structure -->
<!-- =========================================================== -->
<Set name="handler">
<!-- the collection of handlers that will handle the request -->
<New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
<Set name="handlers">
<Array type="org.eclipse.jetty.server.Handler">
<Item>
<New id="WebHandler" class="org.eclipse.jetty.webapp.WebAppContext" />
</Item>
<Item>
<New id="WebHandler1" class="org.eclipse.jetty.webapp.WebAppContext" />
</Item>
</Array>
</Set>
</New>
</Set>
<Set name="connectors">
<Array type="org.eclipse.jetty.server.Connector">
<Item>
<New class="org.eclipse.jetty.server.ServerConnector">
<Arg> <Ref refid="Server"/> </Arg>
<Set name="port">9190</Set>
<Set name="idleTimeout">60000</Set>
<Set name="name">instance_9190</Set>
</New>
<!-- <New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
<Set name="port">9190</Set>
<Set name="maxIdleTime">60000</Set>
</New> -->
</Item>
</Array>
</Set>
<Ref id="WebHandler">
<Set name="contextPath">/demo-broker</Set>
<Set name="war"><SystemProperty name="web.builddir" />/../demo-broker/target/demo-broker.war
</Set>
</Ref>
<Ref id="WebHandler1">
<Set name="contextPath">/restSimulator</Set>
<Set name="war"><SystemProperty name="web.builddir" />/../rest-simulator/target/rest-simulator.war
</Set>
</Ref>
<!-- <New id="FIDBDEV-DS" class="org.eclipse.jetty.plus.jndi.Resource">
<Arg></Arg>
<Arg>FIDBDEV-DS</Arg>
<Arg>
<New class="org.apache.commons.dbcp.BasicDataSource">
<Set name="driverClassName">org.hsqldb.jdbcDriver</Set>
<Set name="url">jdbc:hsqldb:mem:cbs2demo</Set>
<Set name="username">sa</Set>
<Set name="password" />
</New>
</Arg>
</New> -->
</Configure>