Missed attaching geronimo.web.xml last time. Here it goes. -- Thanks, Shiva
On Thu, Feb 14, 2008 at 5:09 PM, Shiva Kumar H R <[EMAIL PROTECTED]> wrote: > There are two problems, both in Plan Creator feature: > 1) Error message/Java Exceptions are suppressed by Plan Creator code and > not shown to the user at all :-( > > With liferay-portal-4.4.1.war, when I ran Geronimo in debug mode and > remote connected via Eclipse (with a break point put at the beginning of > org.apache.geronimo.console.configcreator.JSR88_Util.parseWarReferences() > function inside "plancreator-portlets" module), I found that we are getting > following exception: > > org.apache.geronimo.common.DeploymentException: AbstractWebModuleBuilder: > Could not load servlet class: com.liferay.portal.servlet.MainServlet > > Instead of showing this error on Console, plan creator is currently > suppressing it in an empty catch() block. > *GERONIMO-3850<https://issues.apache.org/jira/browse/GERONIMO-3850> > *is opened for this. > > 2) Secondly, I see that the class it is complaining " > com.liferay.portal.servlet.MainServlet" *does* exist, but inside a > compressed jar ("portal-impl.jar") in WEB-INF/lib directory of WAR. Plan > Creator has a current limitation :-( in resolving such classes. * > GERONIMO-3851 <https://issues.apache.org/jira/browse/GERONIMO-3851> *is > opened for this. > > Due to these bugs/limitations, I am sorry to say that you will again have > to create geronimo-web.xml by hand. I found one "geronimo-web.xml" inside > liferay-portal-4.4.1.war itself. I have removed non-existing dependencies > from it and attached it in this mail. Please see if it works. (I guess it > requires some pre-requisite db-pools to be deployed before the WAR can be > deployed). Hope it helps. > > -- > Thanks, > Shiva > > On Wed, Feb 13, 2008 at 6:17 PM, Shiva Kumar H R <[EMAIL PROTECTED]> > wrote: > > > Hi Jim, > > Looks like there is some problem. I am looking at it. > > > > -- > > Thanks, > > Shiva > > > > On Feb 12, 2008 11:12 PM, Jim Foster <[EMAIL PROTECTED]> wrote: > > > > > > > > Hello, > > > > > > I am attempting to use the "Plan Creator" feature of 2.1 using > > > liferay-portal-4.4.1.war as the target, but I am receiving a > > > security-related error (full text bottom of this post). > > > > > > Even though I have been using Geronimo for some time, the changes in > > > 2.1 > > > (which are all excellent) still leave me unsure of where the problem > > > lies: > > > Geronimo base, the deployment plan, or Liferay's distribution. > > > > > > For the record, I am using the code from svn, Revision 620253. > > > > > > Any advise would be most appreciated. > > > > > > Thank you for your time! > > > > > > Jim > > > > > > > > > From Plan Creator, following clicking on the "Deploy" button on the > > > last > > > wizard screen. > > > ======================================================= > > > org.apache.geronimo.common.DeploymentException: > > > > > > web.xml for web app liferay/liferay-portal-4.4.1/4.4.1/war > > > > > > includes security elements but Geronimo deployment plan is not > > > provided or > > > does not > > > contain <security-realm-name> element necessary to configure security > > > accordingly. > > > > > > at > > > > > > org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.basicInitContext > > > (AbstractWebModuleBuilder.java:349) > > > at > > > org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.initContext( > > > TomcatModuleBuilder.java:326) > > > at > > > org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.initContext > > > (SwitchingModuleBuilder.java:159) > > > at > > > > > > org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration > > > (EARConfigBuilder.java:595) > > > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:254) > > > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:133) > > > 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.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke( > > > ReflectionMethodInvoker.java:34) > > > at > > > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke( > > > GBeanOperation.java:124) > > > at > > > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke( > > > GBeanInstance.java:867) > > > at org.apache.geronimo.kernel.basic.BasicKernel.invoke( > > > BasicKernel.java:239) > > > at > > > > > > org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy > > > (AbstractDeployCommand.java:116) > > > at > > > org.apache.geronimo.deployment.plugin.local.DistributeCommand.run( > > > DistributeCommand.java:61) > > > at java.lang.Thread.run(Thread.java:595) > > > -- > > > View this message in context: > > > http://www.nabble.com/Geronimo-v2.1-Plan-Creator-%3D%3E-Deploy-Liferay-4.1.1-tp15437773s134p15437773.html > > > Sent from the Apache Geronimo - Users mailing list archive at > > > Nabble.com. > > > > > > > > > > > >
<?xml version="1.0"?> <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"> <environment> <moduleId> <groupId>liferay</groupId> <artifactId>liferay-portal-tomcat</artifactId> <version>4.4.1</version> <type>car</type> </moduleId> <dependencies> <dependency> <groupId>org.apache.geronimo.configs</groupId> <artifactId>j2ee-security</artifactId> <type>car</type> </dependency> <dependency> <groupId>org.apache.geronimo.configs</groupId> <artifactId>j2ee-server</artifactId> <type>car</type> </dependency> <dependency> <groupId>org.apache.geronimo.configs</groupId> <artifactId>javamail</artifactId> <type>car</type> </dependency> <dependency> <groupId>org.apache.geronimo.configs</groupId> <artifactId>sharedlib</artifactId> <type>car</type> </dependency> <dependency> <groupId>org.apache.geronimo.modules</groupId> <artifactId>geronimo-mail</artifactId> <type>jar</type> <import>classes</import> </dependency> <dependency> <groupId>liferay</groupId> <artifactId>liferay-pool</artifactId> <type>car</type> </dependency> <!--<dependency> <groupId>liferay</groupId> <artifactId>portal-kernel</artifactId> <type>jar</type> <import>classes</import> </dependency> <dependency> <groupId>liferay</groupId> <artifactId>portal-service</artifactId> <type>jar</type> <import>classes</import> </dependency> <dependency> <groupId>portlet-api</groupId> <artifactId>portlet-api</artifactId> <type>jar</type> <import>classes</import> </dependency>--> </dependencies> <inverse-classloading /> </environment> <context-root>/</context-root> <security-realm-name>PortalRealm</security-realm-name> <security> <default-principal> <principal name="anonymous" class="com.liferay.portal.security.jaas.PortalPrincipal" /> </default-principal> <role-mappings> <role role-name="users"> <principal class="com.liferay.portal.security.jaas.PortalRole" name="users" /> </role> </role-mappings> </security> <resource-ref> <ref-name>jdbc/LiferayPool</ref-name> <resource-link>LiferayPool</resource-link> </resource-ref> <resource-ref> <ref-name>mail/MailSession</ref-name> <resource-link>LiferayMailSession</resource-link> </resource-ref> <gbean name="LiferayMailSession" class="org.apache.geronimo.mail.MailGBean"> <attribute name="transportProtocol">smtp</attribute> <attribute name="host">localhost</attribute> </gbean> <gbean name="PortalRealm" class="org.apache.geronimo.security.realm.GenericSecurityRealm"> <attribute name="realmName">PortalRealm</attribute> <reference name="ServerInfo"> <name>ServerInfo</name> </reference> <!--<reference name="LoginService"> <name>JaasLoginService</name> </reference>--> <xml-reference name="LoginModuleConfiguration"> <log:login-config xmlns:log="http://geronimo.apache.org/xml/ns/loginconfig-2.0"> <log:login-module control-flag="REQUIRED" wrap-principals="false"> <log:login-domain-name>PortalRealm</log:login-domain-name> <log:login-module-class>com.liferay.portal.security.jaas.ext.tomcat.PortalLoginModule</log:login-module-class> </log:login-module> </log:login-config> </xml-reference> </gbean> </web-app>
