Discussion:
[JBoss Portal] - Jboss Portal Installation 2.7.2 - Newbie Issues
Namrata Hangal
2010-07-21 08:33:50 UTC
Permalink
Namrata Hangal [http://community.jboss.org/people/namrata.hangal] created the discussion

"Jboss Portal Installation 2.7.2 - Newbie Issues"

To view the discussion, visit: http://community.jboss.org/message/553614#553614

--------------------------------------------------------------
Hi
Just started working on Jboss Portal 2.7.2. Facing an issue with the installation. I've configured mysql 5 with the portal. 7 tables have been created in the database. When I start the server again, it displays the 500 internal error() message. I went through other discussions and tried some solutions like changing the java_opts to 512. But nothing seems to be working.

Could anyone help me out with this? I've attached the server log file for reference.

Thanks!

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/553614#553614]

Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2011]
Piergiorgio Lucidi
2010-07-21 09:56:04 UTC
Permalink
Piergiorgio Lucidi [http://community.jboss.org/people/piergiorgiolucidi] replied to the discussion

"Jboss Portal Installation 2.7.2 - Newbie Issues"

To view the discussion, visit: http://community.jboss.org/message/553645#553645

--------------------------------------------------------------
I think that you have a problem with the PortalDS, this is the datasource for JBoss Portal.
You have to check database settings.
Hope this helps.

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/553645#553645]

Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2011]
Piergiorgio Lucidi
2010-07-22 09:46:02 UTC
Permalink
Piergiorgio Lucidi [http://community.jboss.org/people/piergiorgiolucidi] replied to the discussion

"Jboss Portal Installation 2.7.2 - Newbie Issues"

To view the discussion, visit: http://community.jboss.org/message/553906#553906

--------------------------------------------------------------

Here you can see the root of the problem:

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.jca:service=DataSourceBinding,name=PortalDS
  State: NOTYETINSTALLED
  Depends On Me:
    portal:service=Hibernate,type=CMS
    portal:service=CMS
    portal:service=Hibernate,type=Workflow
    portal:service=Hibernate,type=WSRPConsumer
    portal:service=Hibernate
    portal:service=Hibernate,type=Instance
    portal:service=Hibernate,type=PortalObject
    portal:service=Hibernate,type=Portlet

This return the following exception for the datasource of the portal:

2010-07-21 13:50:27,196 ERROR [org.jboss.portal.server.servlet.PortalServlet] Unexpected exception
java.lang.NullPointerException
at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getObjectNode(PersistentPortalObjectContainer.java:252)
at org.jboss.portal.core.impl.model.portal.AbstractPortalObjectContainer.getContext(AbstractPortalObjectContainer.java:112)
at org.jboss.portal.core.impl.model.portal.AbstractPortalObjectContainer.getContext(AbstractPortalObjectContainer.java:81)
at org.jboss.portal.core.model.portal.DefaultPortalCommandFactory.doMapping(DefaultPortalCommandFactory.java:72)
at org.jboss.portal.core.controller.Controller.handle(Controller.java:252)
at org.jboss.portal.server.RequestControllerDispatcher.invoke(RequestControllerDispatcher.java:51)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
at org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:252)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:856)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:566)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
at java.lang.Thread.run(Thread.java:636)

Hope this helps ;)

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/553906#553906]

Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2011]
Namrata Hangal
2010-07-22 09:59:21 UTC
Permalink
Namrata Hangal [http://community.jboss.org/people/namrata.hangal] replied to the discussion

"Jboss Portal Installation 2.7.2 - Newbie Issues"

To view the discussion, visit: http://community.jboss.org/message/553909#553909

--------------------------------------------------------------
Hi

Thanks for the response.
Actually am totally new to Jboss Portal. Have no idea how to resolve this issue. Been struggling since a couple of days now! Could you please suggest any resolution to this problem?

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/553909#553909]

Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2011]
Piergiorgio Lucidi
2010-07-23 08:41:53 UTC
Permalink
Piergiorgio Lucidi [http://community.jboss.org/people/piergiorgiolucidi] replied to the discussion

"Jboss Portal Installation 2.7.2 - Newbie Issues"

To view the discussion, visit: http://community.jboss.org/message/554104#554104

--------------------------------------------------------------
Can you share with us the datasource configuration file?

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/554104#554104]

Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2011]
Antoine Herzog
2010-07-24 06:38:24 UTC
Permalink
Antoine Herzog [http://community.jboss.org/people/Antoine_h] replied to the discussion

"Jboss Portal Installation 2.7.2 - Newbie Issues"

To view the discussion, visit: http://community.jboss.org/message/554244#554244

--------------------------------------------------------------
Hello,

you also have this exception, before the one saying that the PortalDS datasource service could not be started :

2010-07-21 13:49:30,414 DEBUG [org.jboss.deployment.SARDeployer] create operation failed for package file:/home/Namrata/Download/Dump/jboss-portal-2.7.2/server/default/deploy/portal-mysql5-ds.xml
org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.jca:service=LocalTxCM,name=DefaultDS
    at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
    at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)
    at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
    at org.jboss.system.ServiceController.install(ServiceController.java:226)
    at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De


portal-mysql5-ds.xml cannot be deployed.

what I guess you have, is :
- have another xxxx-ds.xml in the /server/default/deploy folder
- in which there is a declaration for the "PortalDS" datasource (with the same name of datasource).
- hence, when jboss try to deploy the one declared in the portal-mysql5-ds.xml file, it say "cannot do that..."

I guess you have added the portal-mysql5-ds.xml file, to declare the datasource configuration with mysql, but did not deleted the one that was yet there, for hsqldb ?

well anyway : the trouble seems to be there are two files that declare the "PortalDS" data source in the deploy folder.

if you want to keep some "xxx-ds.xml" saved files (saving some configurations trials), then move them in another folder : such as /server/default/deploy_saved_files

*******************
also you have this exception in your log file :
2010-07-21 13:49:24,256 ERROR [org.jboss.deployment.MainDeployer] Could not start deployment: file:/home/Namrata/Download/Dump/jboss-portal-2.7.2/server/default/deploy/jboss-portal.sar/portal-wsrp.sar/portal-wsrp.war/
org.jboss.ws.metadata.wsdl.WSDLException: javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Cannot extract schema definition: java.net.UnknownHostException: www.w3.org
    at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:154)
    at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:295)
    at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCServerMetaDataBuilder.buildMetaData(JAXRPCServerMetaDataBuilder.java:97)
    at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.create(UnifiedMetaDataDeploymentAspect.java:56)

this is because the portal-wsrp.sar module needs some access to the net, and you might not have it (or have it properly configure for the WSRP feature).

you can remove the portal-wsrp.sar folder from your "default/deploy/jboss-portal.sar" folder.
this won't make any trouble.
you only won't have the WSRP feature... but that is for Remote Portlet Service, that is Portlet that are running on another server... and not necessary to have the default portal working....

hope my guess about the datasource config is proper... and it helps you start...
Antoine
JBoss Portal and GateIn (JSR-286), JSF, Richfaces, J2EE, Drools, BRMS.
http://www.sysemo.com/Sysemo-expertise-portails-jboss-portal.php http://www.sysemo.com/Sysemo-expertise-portails-jboss-portal.php

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/554244#554244]

Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2011]
Loading...