You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Cédric Mailleux <ce...@codeva.net> on 2006/04/19 11:44:27 UTC
Problem on init under WAS 6.0.2.0
Hi,
I manage to run JAHIA version 5 on WAS 6.0.2.0, jahia use jetspeed 2 for
its portal behavior.
The error I have is when I have deployed demo.war, WAS doesn't seem to
call the JetpseedContainerServlet init method.
I have put some break points and never reached them, It seems that WAS
call my init method only when I try to access my servlet (demo/container).
However It call this init method on BridgesVelocityViewServlet.
The case is when i call the url demo/container WAs try to initialize my
JetspeedContainerServelt but this one doesn't receive any initParam.
[19/04/06 11:13:48:891 CEST] 00000047 WebApp E SRVE0026E:
[Erreur de servlet]-[JetspeedContainer]: javax.servlet.ServletException:
JetspeedContainerServlet: Portlet Application contextName not supplied
in Init Parameters.
at
org.apache.jetspeed.container.JetspeedContainerServlet.init(JetspeedContainerServlet.java:86)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:274)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:480)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2905)
at
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
at
com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1829)
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:469)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:408)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:286)
at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1455)
Here my web.xml file.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app id="WebApp_1145352842406">
<display-name>demo</display-name>
<description>Hello World Description</description>
<servlet>
<servlet-name>JetspeedContainer</servlet-name>
<servlet-class>org.apache.jetspeed.container.JetspeedContainerServlet</servlet-class>
<init-param>
<param-name>contextName</param-name>
<param-value>demo</param-value>
</init-param>
<init-param>
<param-name>contextName</param-name>
<param-value>demo</param-value>
</init-param>
<load-on-startup>9</load-on-startup>
</servlet>
<!-- Define Velocity Servlet -->
<servlet>
<servlet-name>velocity</servlet-name>
<servlet-class>org.apache.portals.bridges.velocity.BridgesVelocityViewServlet</servlet-class>
<init-param>
<param-name>org.apache.velocity.toolbox</param-name>
<param-value>/WEB-INF/velocity/toolbox.xml</param-value>
</init-param>
<init-param>
<param-name>org.apache.velocity.properties</param-name>
<param-value>/WEB-INF/velocity/velocity.properties</param-value>
</init-param>
<load-on-startup>10</load-on-startup>
</servlet>
<servlet>
<servlet-name>SSODemo</servlet-name>
<display-name>SSODemo Servlet</display-name>
<description>Servlet for Testing SSO</description>
<servlet-class>org.apache.jetspeed.demo.servlet.SSODemoServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>SSOBasicDemo</servlet-name>
<display-name>SSOBasicDemo Servlet</display-name>
<description>Servlet for Testing HTTP Basic Authentication
SSO</description>
<servlet-class>org.apache.jetspeed.demo.servlet.SSOBasicDemoServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>SSODemo</servlet-name>
<url-pattern>/sso-demo</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SSOBasicDemo</servlet-name>
<url-pattern>/sso-basic</url-pattern>
</servlet-mapping>
<!-- Map *.vm files to Velocity -->
<servlet-mapping>
<servlet-name>velocity</servlet-name>
<url-pattern>*.vm</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>JetspeedContainer</servlet-name>
<url-pattern>/container/*</url-pattern>
</servlet-mapping>
<!-- Portlet tag library TLD -->
<taglib>
<taglib-uri>portlet.tld</taglib-uri>
<taglib-location>/WEB-INF/portlet.tld</taglib-location>
</taglib>
<!-- JSTL tag library TLDs -->
<taglib>
<taglib-uri>c-rt.tld</taglib-uri>
<taglib-location>/WEB-INF/c-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>c.tld</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/portlet</taglib-uri>
<taglib-location>/WEB-INF/tld/portlet.tld</taglib-location>
</taglib>
<!-- JNDI Db resource -->
<resource-ref id="ResourceRef_1145352842406">
<description>DB Connection</description>
<res-ref-name>jdbc/demo</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<security-constraint>
<web-resource-collection>
<web-resource-name>HTTPBasicDemo</web-resource-name>
<url-pattern>/sso-basic/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>tomcat</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Jetspeed</realm-name>
</login-config>
<security-role>
<description>The role that is required to log in to the
Agent</description>
<role-name>agent</role-name>
</security-role>
<security-role>
<description>The admin role</description>
<role-name>admin</role-name>
</security-role>
<security-role>
<description>The manager role</description>
<role-name>manager</role-name>
</security-role>
<security-role>
<description>The user role</description>
<role-name>user</role-name>
</security-role>
</web-app>
Does any body have a clue, I have already spend one day making WAS
running a webapp like JAHIA which runs under well under Jboss, Tomcat,
and weblogic (portal functionnality teste on all these three platform)
Regards,
Cédric Mailleux
R&D engineer at JAHIA (http://www.jahia.net)
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org