-
1. Re: Jboss & portal how to?
wondog Apr 12, 2006 6:26 AM (in response to wondog)And one more thing - i restarted jboss after that
-
2. Re: Jboss & portal how to?
theute Apr 12, 2006 6:38 AM (in response to wondog)Check the logs something obviously went wrong
-
3. Re: Jboss & portal how to?
wondog Apr 12, 2006 6:50 AM (in response to wondog)There is somthing from error log:
ERROR [org.jboss.portal.core.CoreController] Object not found
org.jboss.portal.core.ObjectNotFoundException: Not allowed to access resourceDefault context does not exist
at org.jboss.portal.core.model.portal.DefaultPortalCommandMapper.doMapping(DefaultPortalCommandMapper.java:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy50.doMapping(Unknown Source)
at org.jboss.portal.core.CoreController.handle(CoreController.java:189)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:273)
at $Proxy115.handle(Unknown Source)
at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:76)
at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:140)
at org.jboss.portal.core.aspects.server.SubjectAssociationInterceptor.invoke(SubjectAssociationInterceptor.java:47)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.core.aspects.server.PolicyAssociationInterceptor.invoke(PolicyAssociationInterceptor.java:52)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:68)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:69)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:184)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:87)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java:75)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:175)
at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:221)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Unknown Source)
what does it mean? -
4. Re: Jboss & portal how to?
erikt Apr 16, 2006 5:17 PM (in response to wondog)I have the exact same problem. Out-of-the-box Jboss 4.0.4.CR2 with Jboss Portal 2.2.1.RC3
Deployment seems to be ok, but when trying to access /portal through my browser, I get a 404 and the above server exception.
/Erik -
5. Re: Jboss & portal how to?
erikt Apr 16, 2006 6:19 PM (in response to wondog)Hmm. I get the feeling that Jboss Portal doesn't work with Jboss 4.0.4 yet.
/Erik -
6. Re: Jboss & portal how to?
rali.genova Apr 17, 2006 12:52 PM (in response to wondog)Jboss 4.0.4RC1 does work with portal 2.2.1RC3, I noticed you put
1217.0.0.1:8080/portal as your portal URL - shouldn't it be
127.0.0.1:8080/portal (i.e. localhost:8080/portal)? Other than that I don't see another problem with your setup. -
7. Re: Jboss & portal how to?
erikt Apr 17, 2006 2:15 PM (in response to wondog)In my case, I access the correct URL (or at least the URL that the documentation says I should access...).
<http://localhost:8080/portal>
Fresh Jboss 4.0.4.CR2 (btw, shouldn't it be Release Candidate 2 and not Candidate Release 2 that the download page says?) and nothing else.
MySQL datasource is also correct and the database exist with correct user permissions and password (etc etc).
/Erik -
8. Re: Jboss & portal how to?
rali.genova Apr 17, 2006 2:23 PM (in response to wondog)http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossProductVersioning explains the versioning schema for JBoss products, I will try to reproduce your error with CR2, since I am running RC1, but could you please examine your server.log and error.log files in JBOSS_HOME/server/default/log and post anything that seems related?
-
9. Re: Jboss & portal how to?
erikt Apr 17, 2006 2:46 PM (in response to wondog)Well, there are no exceptions when starting Jboss and Portal seem to be deployed correctly. I have checked the logs pretty thoroughly and there are some WARN-level messages, but if I understand them correctly, they just indicate that Portal is using default settings.
Other than that, there's nothing. Except for the exception (which is the same as wondog posted above, that I get when trying to access the http://localhost:8080/portal URL.
(Regarding the versioning. Thanks for the pointer, but I must say that even that document is very confusing. I get that release candidates used to be called RC and that they now -- for some unknown reason -- are called CR. But then the document still uses "RC number" and "release candidate" when talking about the CR nomenclature. I don't really care, but it is just a bit confusing, especially for new users...)
/Erik -
10. Re: Jboss & portal how to?
rali.genova Apr 17, 2006 3:43 PM (in response to wondog)OK, I ran your setup - JBoss 4.0.4 CR2 with portal-2.2.1RC3 and it works perfectly. From the log posted above it seems there is a problem creating the default content? Maybe you should check the DB tables - I had to drop all of them and redeploy the portal, because I was using a different version of portal which created slightly different tables, and now all is well - up and running
-
11. Re: Jboss & portal how to?
erikt Apr 17, 2006 5:50 PM (in response to wondog)Hmm. Ok. I hadn't dropped and re-created the database before actually. When I do that I see that I get and exception when deploying Portal:
23:31:14,877 INFO [SessionFactoryBinder] Creating database content 23:31:15,242 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: 01004 23:31:15,243 ERROR [JDBCExceptionReporter] Data truncation: Out of range value adjusted for column 'jbp_enabled' at row 1 23:31:15,249 ERROR [SessionFactoryBinder] Error in the bsh script Sourced file: inline evaluation of: ``// This bsh script setup the default content of the portal. // It is called when . . . '' : Method Invocation session.save : at Line: 41 : in file: inline evaluation of: ``// This bsh script setup the default content of the portal. // It is called when . . . '' : session .save ( admin ) Target exception: org.hibernate.exception.GenericJDBCException: could not insert: [org.jboss.portal.core.impl.user.UserImpl] at bsh.BSHMethodInvocation.eval(Unknown Source) at bsh.BSHPrimaryExpression.eval(Unknown Source) at bsh.BSHPrimaryExpression.eval(Unknown Source) at bsh.BSHBlock.evalBlock(Unknown Source) at bsh.BSHBlock.eval(Unknown Source) at bsh.BSHBlock.eval(Unknown Source) . . .
I am using MySQL 5.0.19 and MySQL Connector J/3.1.12.
/Erik -
13. Re: Jboss & portal how to?
erikt Apr 17, 2006 6:30 PM (in response to wondog)Yay! That was the problem. I'm not running MySQL 5 in strict mode (I think...), but I changed the datasource descriptor to:
<connection-url>jdbc:mysql://localhost:3306/jbossportal?useServerPrepStmts=false&jdbcCompliantTruncation=false</connection-url>
That did the trick.
Sorry for not mentioning that I was using MySQL 5.0.19 earlier.
Thank you so much for all the excellent help!
Cheers,
Erik