Tuesday, March 24, 2009

JBoss Portal running on JBoss AS5 !!!

Well, to be more truthful a prototype is working on AS5 :) This is more than just a simple update to get Portal running on top of AS5, we are working to take advantage of the JBoss Microcontainer.

The biggest change so far is with deployment. Portlets are now being deployed with a special portal deployer which facilitates the deployment with Portal runtime (formally the jboss-portal.sar). The runtime's structure has even changed from a nested deployment inside the sar to individual deployments.

For everybody out there who can't wait to give this a try, see http://www.jboss.org/community/docs/DOC-13435. There might be a few issues remaining, so please bring them up in the user forum or open a bug.

Stay tuned, more updates to come as we move closer to a release.

9 comments:

Kartik said...

I tried deploying jboss-portal-2.7.2 on top of jboss-5.0.1.GA AS on the windows server 2003 machine and puked big time.


2009-03-25 16:56:02,627 DEBUG [org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer] (main) Error during deploy: vfsfile:/C:/jboss-5.0.1.GA/server/default/deploy/jboss-portal.sar/portal-aop.xml
org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/C:/jboss-5.0.1.GA/server/default/deploy/jboss-portal.sar/portal-aop.xml
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:337)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:297)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:269)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:230)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to resolve schema nsURI= location=aop
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:199)
at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:170)
at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132)
at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118)
at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)
at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:239)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:330)
... 23 more
Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to resolve schema nsURI= location=aop
at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:313)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)
... 31 more



Any comments?

Thomas Heute said...

You need to read the Wiki and build from sources... 2.7.2 doesn't deploy on AS5 this is why there is a special branch

Kartik said...

Thanks Thomas...

Akber said...

Worked great - just the IdentityUI and Workflow components did not deploy - and their dependencies.

I jused an existing thirdparty folder and that may have been the cause.

lp said...

just tried the wiki instructions but against jboss5.0.1GA.

JBoss_Portal_Branch_2_7_AS5 portal doesnt compile for me.

[execmodules] C:\src\jbossportal\portal\wsrp\src\main\org\jboss\portal\wsrp\deployment\WSRPConsumerDeploymentImpl.java:67: cannot find symbol [execmodules] symbol : class WSRPProducerMetaData
[execmodules] location: class org.jboss.portal.wsrp.deployment.WSRPConsumerDeploymentImpl
[execmodules] for (WSRPProducerMetaData producer : deployments.getDeployments())

i assume it is just a temp glitch cause i got no idea.

-lp

deviant said...

Please see the following post:

http://www.jboss.org/index.html?module=bb&op=viewtopic&t=158667

as I had a few build issues, after fixing them I get a deployment exception:

Error installing to Installed: name=vfsfile:/usr/local
/jboss-5.1.0.GA/server/all/deploy/jboss-portal/jboss-portal.sar/ state=Start mode=Manual requiredSta
te=Installed


org.jboss.deployers.spi.DeploymentException: Error during deploy: vfsfile:/usr/local/jboss-5.1.0.GA/
server/all/deploy/jboss-portal/jboss-portal.sar/
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentExcept
ion.java:49)

at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:177)
.........
Caused by: java.lang.NullPointerException
at org.jboss.portal.deployer.portlet.ObjectDeployer.internalDeploy(ObjectDeployer.java:64)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer
.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "vfsfile:/usr/local/jboss-5.1.0.GA/server/all/deploy/jboss-portal/portal-core.war/" is missing the following dependencies:
Dependency "portal:deployer=InstanceDeployment" (should be in state "Real", but is actually in state "** NOT FOUND Depends on 'portal:deployer=InstanceDeployment' **")
Dependency "portal:deployer=ObjectDeployment" (should be in state "Real", but is actually in state "** NOT FOUND Depends on 'portal:deployer=ObjectDeployment' **")
Dependency "portal:deployer=PortletDeployment" (should be in state "Real", but is actually in state "** NOT FOUND Depends on 'portal:deployer=PortletDeployment' **")

Is this a known issue ?? (and easy to fix)

mwringe said...

I have added a comment to the forum post
(http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246723#4246723)

Nitesh said...

When is JBoss Portal (GA) expected to be available for JBoss AS 5.1?

Thanks!

Thomas Heute said...

JBoss Portal user questions are better served in the JBoss Portal User forum :)

There was initial work for people willing to have JBoss Portal 2.7 on JBoss AS 5 open for community. There was no formal plan for this.

GateIn portal is working on JBoss AS 5. (GateIn is the successor of JBoss Portal).