Hi David, Thanks for pointing me to the admin context-root I somehow thought it belonged to the security realm settings. I finally got my application now published at the URL where I wanted it to be. Also thanks for clarification about the overriding of the context-root in application.xml, it drove me nuts :confused:
Cheers tm next up Session Beans djencks wrote: > > > On Aug 17, 2007, at 1:03 PM, tobstar wrote: > >> >> Hi Viet, >> I will try the <context-root> in the geronimo-web.xml, but what is the >> context-root tag in my application.xml then? >> >> application.xml >> >> <module> >> <web> >> <web-uri>myweb.war</web-uri> >> <context-root>/myapp</context-root> >> </web> >> </module> > > If you have a context-root in geronimo-web.xml it will override one > in application.xml. In an ear you can also leave out the context- > root in geronimo-web.xml and then the one from application.xml will > be used. So with your original setup the web-app would be at admin > not myapp. There have sometimes been problems with leaving out a / > at the start of context-root so although I'm pretty sure we fixed all > those you might try /admin in your geronimo-web.xml also. > > thanks > david jencks > >> >> or do I need both. >> >> EJBs I am using the 2.1 I believe, I have to check with the >> developer, since >> I am only the migrator. The dtd on the ejb-jar.xml is 2.0 so I >> assume it is >> 2 something. >> >> Thanks for further help and a nice weekend. >> >> tm >> >> >> >> Viet Nguyen-4 wrote: >>> >>> You should have your <context-root> in your geronimo-web.xml. If >>> you want >>> your url to be >>> >>> http://localhost:8080/myapp >>> >>> you should have >>> >>> <context-root>/myapp</context-root> in geronimo-web.xml somewhere. >>> >>> Also, are you using ejb 2.1 or 3.0? >>> >>> Hope this will help, >>> Viet Nguyen >>> >>> On 8/17/07, tobstar <[EMAIL PROTECTED]> wrote: >>>> >>>> >>>> Hi list, >>>> I am a total noob with Geronimo, and I am currently looking into >>>> migrating >>>> our application from BEA Weblogic to Geronimo2. >>>> >>>> I have created a geronimo-web.xml and a geronimo-application.xml. >>>> I have >>>> also adapted the application.xml towards geronimo. Geronimo is >>>> deploying >>>> my >>>> EAR file without any problems, yet it does not publish the war >>>> file to a >>>> url. I cannot access my application. >>>> >>>> application.xml >>>> >>>> <?xml version="1.0" encoding="UTF-8"?> >>>> <application >>>> xmlns="http://java.sun.com/xml/ns/j2ee" >>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee >>>> http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" >>>> version="1.4"> >>>> <display-name>My Application</display-name> >>>> <module> >>>> <ejb>myejb.jar</ejb> >>>> </module> >>>> <module> >>>> <web> >>>> <web-uri>myweb.war</web-uri> >>>> <context-root>/myapp</context-root> >>>> </web> >>>> </module> >>>> </application> >>>> >>>> geronimo-application.xml >>>> >>>> <application >>>> xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.1 >>>> "> >>>> <dep:environment >>>> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1"> >>>> <dep:moduleId> >>>> <dep:groupId>myapp_group</dep:groupId> >>>> <dep:artifactId>myapp</dep:artifactId> >>>> <dep:version>1.0</dep:version> >>>> <dep:type>ear</dep:type> >>>> </dep:moduleId> >>>> </dep:environment> >>>> </application> >>>> >>>> >>>> geronimo-web.xml >>>> >>>> <?xml version="1.0" encoding="UTF-8"?> >>>> <web-app >>>> xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1"> >>>> <dep:environment >>>> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1"> >>>> <dep:moduleId> >>>> <dep:groupId>clinpoint_group</dep:groupId> >>>> <dep:artifactId>clinpoint</dep:artifactId> >>>> <dep:version>1.0</dep:version> >>>> <dep:type>ear</dep:type> >>>> </dep:moduleId> >>>> <dep:dependencies/> >>>> <dep:hidden-classes/> >>>> <dep:non-overridable-classes/> >>>> </dep:environment> >>>> >>>> <context-root>admin</context-root> >>>> <security-realm-name>myrealm</security-realm-name> >>>> <security> >>>> <default-principal realm-name="myrealm"> >>>> <principal name="anonymous" >>>> >>>> class="org.apache.geronimo.security.realm.providers.GeronimoUserPrin >>>> cipal" >>>> /> >>>> </default-principal> >>>> <role-mappings> >>>> <role role-name="myrole"> >>>> <realm realm-name="myrealm"> >>>> <principal >>>> name="restricted" >>>> >>>> class="org.apache.geronimo.security.realm.providers.GeronimoGroupPri >>>> ncipal >>>> "/> >>>> </realm> >>>> </role> >>>> </role-mappings> >>>> </security> >>>> </web-app> >>>> >>>> >>>> I also use ejbs, but I am quite confused about on how to add >>>> these to the >>>> geronimo-web.xml. >>>> >>>> I have lots of session EJBs in the web.xml like this, how do I >>>> access >>>> these >>>> session beans with geronimo: >>>> >>>> <ejb-local-ref> >>>> <ejb-ref-name>ejb/myEJB</ejb-ref-name> >>>> <ejb-ref-type>Session</ejb-ref-type> >>>> <local-home>mylocalhome</local-home> >>>> <local>mypackage</local> >>>> <ejb-link>myEJB</ejb-link> >>>> </ejb-local-ref> >>>> >>>> >>>> I am also using struts. >>>> >>>> Can anybody give me a hint on how to solve the problem? Am I missing >>>> something? I have seen lots of talk about persistence.xml. What >>>> is it? Do >>>> I >>>> need it? Getting the application to be published via localhost: >>>> 8080/myapp >>>> would be a start. Thanks in advance. >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/Bea-Ear-file-will-not-deploy-in-Geronimo2- >>>> after-migration-tf4285430s134.html#a12198753 >>>> Sent from the Apache Geronimo - Users mailing list archive at >>>> Nabble.com. >>>> >>>> >>> >>> >> >> -- >> View this message in context: http://www.nabble.com/Bea-Ear-file- >> will-not-deploy-in-Geronimo2-after-migration- >> tf4285430s134.html#a12206261 >> Sent from the Apache Geronimo - Users mailing list archive at >> Nabble.com. >> > > > -- View this message in context: http://www.nabble.com/Bea-Ear-file-will-not-deploy-in-Geronimo2-after-migration-tf4285430s134.html#a12231269 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
