Skip to main content

[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

On 9 March 2016 at 05:23, Babu Ramesh <kodali.babu@xxxxxxxxxxx> wrote:
Hi,

We recently migrated to Eclipse Jetty 9.2.6.v20141205 and JSPs stopped working with below error. Could you please help us to resolve the issue?

java.lang.IllegalStateException: no org.apache.tomcat.instancemanager set in servletcontext
at org.apache.jasper.runtime.instanceManagerFactory.getinstanceManager(instanceManagerFactory.java:32)
at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:171)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:405)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:349)
at org.eclipse.jetty.jsp.JettyJspServlet.service(JettyJspServlet.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:800)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:595)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1125)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1059)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:191)
at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:72)
at org.eclipse.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:587)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:800)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1125)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1059)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:497)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:313)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:248)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:626)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:546)
at java.lang.Thread.run(Thread.java:745)

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users



--
Jan Bartel <janb@xxxxxxxxxxx>
www.webtide.com
Expert assistance from the creators of Jetty and CometD



<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>  

Back to the top