I copy helloworldportlet-ear directory structure to the deploy folder of jboss. 
I start the server, but at the 
'http://localhost:8080/portal/portal/default/HelloWorld' uri i've received a 
500 exception:

type Exception report
  | 
  | message
  | 
  | description The server encountered an internal error () that prevented it 
from fulfilling this request.
  | 
  | exception
  | 
  | javax.servlet.ServletException
  |     
org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:214)
  |     javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
  |     javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  |     
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
  | 
  | root cause
  | 
  | java.lang.NullPointerException
  |     
org.jboss.portal.server.app.impl.AbstractRequestContext.include(AbstractRequestContext.java:234)
  |     
org.jboss.portal.server.aspects.component.ContextDispatcherInterceptor$1.include(ContextDispatcherInterceptor.java:60)
  |     
org.jboss.portal.server.servlet.CommandServlet.include(CommandServlet.java:68)
  |     
org.jboss.portal.server.aspects.component.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:66)
  |     
org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:25)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
  |     
org.jboss.portal.portlet.aspects.component.SessionPreDispatchInterceptor.invoke(SessionPreDispatchInterceptor.java:97)
  |     
org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:25)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
  |     
org.jboss.portal.server.aspects.component.ContextTrackerInterceptor.invoke(ContextTrackerInterceptor.java:36)
  |     
org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:25)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
  |     
org.jboss.portal.portlet.aspects.component.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:56)
  |     
org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:25)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
  |     
org.jboss.portal.portlet.aspects.component.ValveInterceptor.invoke(ValveInterceptor.java:51)
  |     
org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:25)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
  |     
org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:162)
  |     
org.jboss.portal.core.command.RenderWindowCommand.execute(RenderWindowCommand.java:71)
  |     
org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:65)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:127)
  |     
org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:72)
  |     
org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:25)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
  |     
org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:156)
  |     
org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:25)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
  |     
org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:48)
  |     
org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:25)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
  |     
org.jboss.portal.core.aspects.controller.NavigationInterceptor.invoke(NavigationInterceptor.java:55)
  |     
org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:25)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
  |     
org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:162)
  |     
org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:94)
  |     
org.jboss.portal.core.command.CommandContext.chain(CommandContext.java:128)
  |     
org.jboss.portal.core.command.RenderPageCommand.renderPortlets(RenderPageCommand.java:218)
  |     
org.jboss.portal.core.command.RenderPageCommand.execute(RenderPageCommand.java:151)
  |     
org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:65)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:127)
  |     
org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:72)
  |     
org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:25)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
  |     
org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:156)
  |     
org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:25)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
  |     
org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:48)
  |     
org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:25)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
  |     
org.jboss.portal.core.aspects.controller.NavigationInterceptor.invoke(NavigationInterceptor.java:45)
  |     
org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:25)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
  |     
org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:162)
  |     
org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:94)
  |     
org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:80)
  |     
org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:64)
  |     org.jboss.portal.core.CoreController.handle(CoreController.java:177)
  |     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |     
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |     
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     java.lang.reflect.Method.invoke(Method.java:585)
  |     
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
  |     org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  |     
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
  |     org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  |     
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
  |     org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  |     
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  |     org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  |     
org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:273)
  |     $Proxy133.handle(Unknown Source)
  |     
org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:63)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:127)
  |     
org.jboss.portal.core.aspects.server.SubjectAssociationInterceptor.invoke(SubjectAssociationInterceptor.java:35)
  |     
org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:25)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
  |     
org.jboss.portal.core.aspects.server.PolicyAssociationInterceptor.invoke(PolicyAssociationInterceptor.java:40)
  |     
org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:25)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
  |     
org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:55)
  |     
org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:25)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
  |     
org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:56)
  |     
org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:25)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
  |     
org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:171)
  |     
org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:25)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
  |     
org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:74)
  |     
org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:25)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
  |     
org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java:62)
  |     
org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:25)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
  |     
org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:162)
  |     
org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:208)
  |     javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
  |     javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  |     
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
  | 
Then I've removed helloworldportlet-ear from JBoss deploy directory, and copy 
the file helloworldportlet.war (from /src/resources/helloworldportlet-ear/).
I've restarted the server, try that uri, and now no more 500 exception 
happened... but only a blank jboss page... no portlet.... :-\
http://img158.imageshack.us/my.php?image=helloworldportlet5nu.jpg
I don't know where could be the problem... maybe about servlet container or 
something like that... Or some wrong deploying?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928150#3928150

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928150


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to