Hi Marek,
i have now deployed the gatein integeration module on glassfish latest release 3.1.1. What i have done is the followin.
I found oout glassfish uses catalina with some changes in the org.apache.catalina.Wrapper class. For example the method Wrapper.setServletclass( String ...) doesn't exist.
so i removed the catalina dependency in tomcate6 wci and replaced it with galssfish web-core module and imported the Wrapper class, changed the mathod in org.gatein.wci.tomcat.TC6WebAppContext like this
public void start() throws Exception
{
try
{
commandServlet = context.createWrapper();
commandServlet.setName("TomcatGateInServlet");
commandServlet.setLoadOnStartup(0);
commandServlet.setServletClassName("org.gatein.wci.command.CommandServlet");
context.addChild(commandServlet);
context.addServletMapping("/tomcatgateinservlet", "TomcatGateInServlet");
}
catch (Exception e)
{
cleanup();
throw e;
}
}
this works fine.
But i still have one issue, here the server stack trace:
[#|2012-01-31T11:56:09.695+0100|INFO|glassfish3.1.1|org.exoplatform.web.WebAppController|_ThreadID=10;_ThreadName=Thread-2;|Loading router configuration ${gatein.portal.controller.config}|#]
[#|2012-01-31T11:56:09.696+0100|SEVERE|glassfish3.1.1|org.gatein.portal.application.PortalController|_ThreadID=10;_ThreadName=Thread-2;|The WebAppController could not be initialized for the portal 'portal'
java.lang.RuntimeException: Cannot instantiate component key=org.exoplatform.web.WebAppController type=org.exoplatform.web.WebAppController found at jndi:/server/portal/WEB-INF/conf/portal/controller-configuration.xml
at org.exoplatform.container.jmx.MX4JComponentAdapter.getComponentInstance(MX4JComponentAdapter.java:134)
at org.exoplatform.container.management.ManageableComponentAdapter.getComponentInstance(ManageableComponentAdapter.java:68)
at org.exoplatform.container.ConcurrentPicoContainer.getInstance(ConcurrentPicoContainer.java:466)
at org.exoplatform.container.ConcurrentPicoContainer.getComponentInstanceOfType(ConcurrentPicoContainer.java:420)
at org.exoplatform.container.CachingContainer.getComponentInstanceOfType(CachingContainer.java:139)
at org.exoplatform.portal.application.PortalController.onInit(PortalController.java:71)
at org.exoplatform.portal.application.PortalController.access$000(PortalController.java:50)
at org.exoplatform.portal.application.PortalController$1.execute(PortalController.java:108)
at org.exoplatform.container.RootContainer.executeInitTasks(RootContainer.java:689)
at org.exoplatform.container.RootContainer.createPortalContainer(RootContainer.java:406)
at org.exoplatform.container.RootContainer.registerPortalContainer(RootContainer.java:266)
at org.exoplatform.portal.application.PortalController.afterInit(PortalController.java:114)
at org.exoplatform.container.web.AbstractHttpServlet.init(AbstractHttpServlet.java:79)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1444)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1241)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5093)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5380)
at com.sun.enterprise.web.WebModule.start(WebModule.java:498)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2000)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1651)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:294)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:462)
at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:375)
at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:219)
at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:253)
at com.sun.enterprise.v3.server.AppServerStartup.doStart(AppServerStartup.java:145)
at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:136)
at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
at com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator.start(GlassFishDecorator.java:63)
at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishImpl.start(OSGiGlassFishImpl.java:69)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:117)
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:597)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.exoplatform.container.ExoContainer.createComponent(ExoContainer.java:417)
at org.exoplatform.container.jmx.MX4JComponentAdapter.getComponentInstance(MX4JComponentAdapter.java:96)
... 48 more
Caused by: java.net.MalformedURLException: Could not resolve path ${gatein.portal.controller.config}
at org.exoplatform.web.WebAppController.loadConfiguration(WebAppController.java:166)
at org.exoplatform.web.WebAppController.reloadConfiguration(WebAppController.java:198)
at org.exoplatform.web.WebAppController.<init>(WebAppController.java:121)
... 54 more
|#]
[#|2012-01-31T11:56:09.699+0100|INFO|glassfish3.1.1|exo.kernel.container.ExoContainer|_ThreadID=10;_ThreadName=Thread-2;|LocationAwareLogger had some issues on method 'log' invocation. Using location unaware methods.
The portal container 'portal' has been created successfully|#]
[#|2012-01-31T11:56:09.730+0100|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-2;|WEB0671: Loading application [portal] at [/portal]|#]
[#|2012-01-31T11:56:09.731+0100|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=10;_ThreadName=Thread-2;|CORE10010: Loading application portal done in 17.876 ms|#]
[#|2012-01-31T11:56:09.733+0100|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=10;_ThreadName=Thread-2;|GlassFish Server Open Source Edition 3.1.1 (12) Startzeit: Felix (2.612ms), Startdienste(28.368ms), gesamt(30.980ms)|#]
[#|2012-01-31T11:56:09.977+0100|INFO|glassfish3.1.1|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=17;_ThreadName=Thread-2;|JMXStartupService: Started JMXConnector, JMXService URL = service:jmx:rmi://albino:8686/jndi/rmi://albino:8686/jmxrmi|#]
i hope this is onliy configuration problem, and here is my configuration :
# Data
gatein.data.dir=${com.sun.aas.instanceRoot}/gatein
# DB
gatein.db.data.dir=${gatein.data.dir}/db
# JCR
#gatein.jcr.config.type=local
#gatein.jcr.datasource.name=jdbc/jdbcjcr_hsql
#gatein.jcr.datasource.dialect=auto
#gatein.jcr.datasource.driver=org.hsqldb.jdbcDriver
#gatein.jcr.datasource.url=jdbc:hsqldb:${gatein.db.data.dir}/data/jdbcjcr_${name}
#gatein.jcr.datasource.username=sa
#gatein.jcr.datasource.password=
gatein.jcr.config.type=local
gatein.jcr.datasource.name=jdbc/jdbcjcr_mysql
gatein.jcr.datasource.dialect=auto
gatein.jcr.datasource.driver=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
gatein.jcr.datasource.url=jdbc:mysql://localhost:3306/gateinjcr_${name}
gatein.jcr.datasource.username=gatein
gatein.jcr.datasource.password=++++++++
gatein.jcr.data.dir=${gatein.data.dir}/jcr
gatein.jcr.storage.data.dir=${gatein.jcr.data.dir}/values
gatein.jcr.cache.config=war:/conf/jcr/jbosscache/${gatein.jcr.config.type}/config.xml
gatein.jcr.lock.cache.config=war:/conf/jcr/jbosscache/${gatein.jcr.config.type}/lock-config.xml
gatein.jcr.index.data.dir=${gatein.jcr.data.dir}/lucene
gatein.jcr.index.changefilterclass=org.exoplatform.services.jcr.impl.core.query.DefaultChangesFilter
gatein.jcr.index.cache.config=war:/conf/jcr/jbosscache/cluster/indexer-config.xml
gatein.jcr.jgroups.config=classpath:/jgroups/gatein-${gatein.default.jgroups.stack:udp}.xml
gatein.jcr.workspace.default=portal-system
gatein.jcr.workspace.system=system
# IDM
#gatein.idm.datasource.name=jdbc/jdbcidm_hsql
#gatein.idm.datasource.driver=org.hsqldb.jdbcDriver
#gatein.idm.datasource.url=jdbc:hsqldb:${gatein.db.data.dir}/data/jdbcidm_${name}
#gatein.idm.datasource.username=sa
#gatein.idm.datasource.password=
gatein.idm.datasource.name=jdbc/jdbcidm_mysql
gatein.idm.datasource.driver=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
gatein.idm.datasource.url=jdbc:mysql://localhost:3306/gateinidm_${name}
gatein.idm.datasource.username=gatein
gatein.idm.datasource.password=+++++++
i am using Gatein GateIn-3.2.0-Beta01-tomcat6
i hope some can help.
thanks