I'm writing this post with the full realization that JBP 2.2 is still in alpha. 
I've been checking the code out of cvs evey couple nights to see if I can get 
it to run on JBoss 4.0.3. I did get it going a couple weeks ago but then it's 
been broken because of the UserTransaction issues etc. I thought maybe with the 
SP1 it might deploy a little better but I'm still having problems. 

I guess the first question I have is should I even expect the code to work on 
4.0.3 SP1? What version of JBoss AS is the JBP 2.2 code being developed on? 

The first problem I'm encountering is this exception at startup with the portal 
deployed as an exploded sar (created using 'ant explode' on the build script in 
the core folder)


  | 15:52:12,063 WARN  [ServiceController] Problem starting service 
portal:policy=PortalPolicy,type=local
  | java.lang.IllegalArgumentException: No transaction manager provided
  |         at 
org.jboss.portal.common.transaction.Transactions.applyBefore(Transactions.java:59)
  |         at 
org.jboss.portal.core.impl.container.TreeCacheAdapter.start(TreeCacheAdapter.java:117)
  |         at 
org.jboss.portal.core.impl.container.JBossTreeCacheContainer.startService(JBossTreeCacheContainer.java:53)
  |         at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
  |         at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:181)
  |         at 
org.jboss.portal.common.system.AbstractJBossService.start(AbstractJBossService.java:73)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
  |         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  |         at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  |         at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  |         at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  |         at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  |         at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:960)
  |         at $Proxy0.start(Unknown Source)
  | 

I can actually get by that one by going and doing a touch on the 
jboss-service.xml file in the META-INF directory of the portal. This of course 
redploys the portal and it seems to deploy fine. No exceptions. Though there 
are a number of lines in the log like this one

  | 15:55:19,169 INFO  [PortalPolicyConfiguratorImpl] createPolicy for 
[null][portal:local/default.default.charset 
test.CharsetPortletWindow][[]][false]
  | 

I debugged through the PortalPolicyConfiguratorImpl and 'null' in the logs is 
the appID. Not sure if that is supposed to be null or not. Which may be a lead 
into my next problem which is when I try to navigate to the portal I get the 
following exception 

  | java.lang.SecurityException: Not allowed to access portal resource: default 
[portal:global/default.default]
  |     
org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:178)
  |     
org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:24)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:107)
  |     
org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:46)
  |     
org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:24)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:107)
  |     
org.jboss.portal.core.aspects.controller.NavigationInterceptor.invoke(NavigationInterceptor.java:42)
  |     
org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:24)
  |     
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:107)
  |     
org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:141)
  |     
org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:176)
  |     org.jboss.portal.core.CoreController.handle(CoreController.java:182)
  |     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.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  |     $Proxy198.handle(Unknown Source)
  | 

So I'm wondering is there anything I can do to get the code to deploy yet? 
Thanks for the help.

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

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


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to