Re: Jsf RI (Mojarra) in Geronimo
You can use JSF RI in your application. To do it you need to include jsf-ri/jsf-api into your web-application lib, and add into your geronimo-web.xml - as result, JSF RI classes from your app will be loaded before MyFaces classes from Geronimo lib 2009/2/8 Ray_Clough > > All the discussion I have seen about using Sun's RI of JSF (Mojarra) is > pretty old. Are there any new developments. We've run into some MyFaces > bugs that make us want to use Mojarra, which doesn't suffer the same bug. > Is it possible now to swap MyFaces for Mojarra? > > thanks, > Ray Clough > > -- > View this message in context: > http://www.nabble.com/Jsf-RI-%28Mojarra%29-in-Geronimo-tp21894352s134p21894352.html > Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. > > -- With Best Regards, Alexey Kakunin, EmDev Limited Professional Software Development: http://www.emdev.ru
Re: Deploying JTrac
hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294) > at > org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:799) > at > org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:733) > at > org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1288) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1257) > ... 81 more > Caused by: java.lang.ClassCastException: > net.sf.cglib.proxy.Enhancer$EnhancerKey$$KeyFactoryByCGLIB$$7fb24d72 cannot > be cast to net.sf.cglib.core.KeyFactory > at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145) > at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117) > at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108) > at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104) > at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69) > ... 98 more > > -- With best regards, Alexey Kakunin
Re: Deploying JTrac
r.java:434) > at > org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:109) > at > org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55) > at > org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:226) > at > org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294) > at > org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:799) > at > org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:733) > at > org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1288) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1257) > ... 81 more > Caused by: java.lang.ClassCastException: > net.sf.cglib.proxy.Enhancer$EnhancerKey$$KeyFactoryByCGLIB$$7fb24d72 cannot > be cast to net.sf.cglib.core.KeyFactory > at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145) > at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117) > at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108) > at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104) > at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69) > ... 98 more > > -- With best regards, Alexey Kakunin
Problem with Deploy in Geronimo 2.1.2
Trying t deploy WAR into Geronimo 2.1.2 (with 2.1.1 everything is ok) - got followed error: Any Suggestions? 22:13:12,906 ERROR [Deployer] Deployment failed due to java.lang.ArrayIndexOutOfBoundsException: 48188 at org.objectweb.asm.ClassReader.readClass(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source) at org.apache.xbean.finder.ClassFinder.readClassDef(ClassFinder.java:690 ) at org.apache.xbean.finder.ClassFinder.(ClassFinder.java:139) at org.apache.geronimo.jaxws.builder.WARWebServiceFinder.discoverWebServ ices(WARWebServiceFinder.java:154) at org.apache.geronimo.jaxws.builder.AdvancedWARWebServiceFinder.discove rPOJOWebServices(AdvancedWARWebServiceFinder.java:73) at org.apache.geronimo.jaxws.builder.AdvancedWARWebServiceFinder.discove rWebServices(AdvancedWARWebServiceFinder.java:45) at org.apache.geronimo.jaxws.builder.WARWebServiceFinder.discoverWebServ ices(WARWebServiceFinder.java:70) at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.discoverWebServ ices(JAXWSServiceBuilder.java:97) at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.findWebServices (JAXWSServiceBuilder.java:80) at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.basicIn itContext(AbstractWebModuleBuilder.java:364) at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.initContext (TomcatModuleBuilder.java:330) at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.initContex t(SwitchingModuleBuilder.java:159) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfigurati on(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(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(Refl ectionMethodInvoker.java:34) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio n.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.doD eploy(AbstractDeployCommand.java:116) at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(Dis tributeCommand.java:61) at java.lang.Thread.run(Thread.java:619) -- With best regards, Alexey Kakunin
Re: Re: Re: Using WS-Security with Geronimo 2.1.1
2008/6/30 Sainath Chowdary <[EMAIL PROTECTED]>: > Hi Alexey Kakunin, > > If you know how to work with security and if cxf-rt-ws-security is not > present in Geronimo then you should try copying the jar file > (cxf-rt-ws-security-*.*.jar) into the project folder class path default > location (i.e WEB-INF/lib) and use it is any normal library that is present > on server. Yes, this is exactly what I did. I placed required library into project's WEB-INF/lib, and changed version used from 2.1 to 2.0.2 (in my case it was not critical) to avoid version incompatibility with CXF bundled with Geronimo. It only looks strange, why Geronimo included most, but not all CXF libraries. > > > Be careful with the version as it can create some mismatches with CXF > version present in Geronimo (2.0.2-incubator). > > Regards, > > > On Sat, Jun 28, 2008 at 1:00 AM, Alexey Kakunin <[EMAIL PROTECTED]> wrote: > >> CXF Should work fine with WS-Security - only problem what package >> cxf-rt-ws-security is not included into Geronimo repository >> >> 2008/6/27 <[EMAIL PROTECTED]>: >> >> >>> Hi Lin and all WS-Experts, >>> >>> with the help of Sainath I configured now CXF for my Geronimo. >>> In my Geronimo 2.1.1 Installation I found in the METAINF-File for >>> cxf-rt-core-2.0.2-incubator.jar: >>> >>> Manifest-Version: 1.0 >>> Archiver-Version: Plexus Archiver >>> Created-By: Apache Maven >>> Built-By: dkulp >>> Build-Jdk: 1.5.0_12 >>> Implementation-Title: Apache CXF Runtime Core >>> Implementation-Vendor: The Apache Software Foundation >>> Implementation-Vendor-Id: org.apache >>> Implementation-Version: 2.0.2-incubator >>> Specification-Title: Apache CXF Runtime Core >>> Specification-Vendor: The Apache Software Foundation >>> Specification-Version: 2.0.2-incubator >>> >>> So I think Geronimo uses Version 2.0.2 from CXF ? If I understand >>> http://www.nabble.com/-ANNOUNCE--Apache-CXF-2.0.2-incubator-is-released!-to1289.html >>> right this version is from September 2007. At the moment 2.1.1 is >>> released.<http://www.nabble.com/-ANNOUNCE--Apache-CXF-2.0.2-incubator-is-released%21-to1289.html> >>> >>> But this old version should work with WS-Security ?! >>> >>> * Web Services Standards Support: CXF supports a variety of web service >>> standards including SOAP, the Basic Profile, WSDL, WS-Addressing, >>> WS-Policy, WS-ReliableMessaging, and WS-Security. >>> >>> Mit freundlichen Grüßen / Kind regards* >>> Josef Eisele* >>> * >>> Direkt: +49 (0) 6131 / 914-180* >>> >>> >>> >>> *"Lin Sun" <[EMAIL PROTECTED]>* >>> >>> 27.06.2008 15:25 >>> Bitte antworten an >>> user@geronimo.apache.org >>> >>> An >>> user@geronimo.apache.org Kopie >>> Thema >>> Re: Re: Using WS-Security with Geronimo 2.1.1 >>> >>> >>> >>> >>> Hi, You are right that G comes with 2 webservice implementations.I >>> actually don't know if this function is avail with CXF. I was hoping >>> others could comment on that. >>> >>> Lin >>> >>> On Fri, Jun 27, 2008 at 4:37 AM, <[EMAIL PROTECTED]> wrote: >>> > >>> > Hi Lin, >>> > >>> > thank you very much for your quick response. If I understand you right >>> > Geronimo comes with 2 webservice implementations: Apache Axis2 and >>> Apache >>> > CXF. If we want to use the 'WS Security 1.1" functionality we should >>> use >>> > Apache CXF. Is this what you mean? >>> > >>> > I haven't found any documentation concerning that topic and a lot of >>> > questions to this: >>> > * How can I switch in Geronimo between CXF and Axis2? >>> > * How can I configure CXF? >>> > * Is there any documentation on that topic? >>> > >>> > Thanx in advance >>> > >>> > Josef >>> > >>> > >>> > >>> > >>> > "Lin Sun" <[EMAIL PROTECTED]> >>> > >>> > 26.06.2008 16:12 >>> > >>> > Bitte antworten an >>> > user@geronimo.apache.org >>> > An >>> > user@geronimo.apache.org >>> > Kopie >>> > Thema >>> > Re: Using WS-Security with Geronimo 2.1.1 >>> > >
Re: Re: Re: Using WS-Security with Geronimo 2.1.1
> > ... > > => I couldn't find the axis2.xml File :-( > > ) > > > > Any help would be wonderful. > > > > Josef > > > > > > BGS Beratungsgesellschaft > > Software Systemplanung AG > > > > Niederlassung Rhein/Main > > Robert-Koch-Straße 41 > > 55129 Mainz > > Fon: +49 (0) 6131 / 914-0 > > Fax: +49 (0) 6131 / 914-400 > > www.bgs-ag.deGeschäftssitz Mainz > > Registergericht > > Amtsgericht Mainz > > HRB 62 50 > > Aufsichtsratsvorsitzender > > Dr. Wolfgang Trommer > > Vorstand > > Hanspeter Gau > > Hermann Kiefer > > Nils Manegold > > Heinz-Jörg Zimmermann > > > > > > BGS Beratungsgesellschaft > > Software Systemplanung AG > > Niederlassung Rhein/Main > > Robert-Koch-Straße 41 > > 55129 Mainz > > Fon: +49 (0) 6131 / 914-0 > > Fax: +49 (0) 6131 / 914-400 > > www.bgs-ag.de Geschäftssitz Mainz > > Registergericht > > Amtsgericht Mainz > > HRB 62 50 > > Aufsichtsratsvorsitzender > > Dr. Wolfgang Trommer > > Vorstand > > Hanspeter Gau > > Hermann Kiefer > > Nils Manegold > > Heinz-Jörg Zimmermann > > > > > <http://ws.apache.org/axis2/modules/rampart/1_0/security-module.html> > -- > BGS Beratungsgesellschaft > Software Systemplanung AG *Niederlassung Rhein/Main* > Robert-Koch-Straße 41 > 55129 Mainz > Fon: +49 (0) 6131 / 914-0 > Fax: +49 (0) 6131 / 914-400 > www.bgs-ag.de *Geschäftssitz Mainz* > *Registergericht* > Amtsgericht Mainz > HRB 62 50 > *Aufsichtsratsvorsitzender* > Dr. Wolfgang Trommer > *Vorstand* > Hanspeter Gau > Hermann Kiefer > Nils Manegold > Heinz-Jörg Zimmermann [image: BGS Systemplanung AG] <http://www.bgs-ag.de> > > [image: Ein Unternehmen der nextevolution consulting > group]<http://www.nextevolution.de> > -- With best regards, Alexey Kakunin
Re: CXF + Spring under Geronimo 2.1.1
Jarek, thank you! This helps. Finally I managed to run our application on Geronimo! 2008/6/24 Jarek Gawor <[EMAIL PROTECTED]>: > Start server with the following property: > > export > JAVA_OPTS=-Dorg.apache.cxf.jaxws.checkPublishEndpointPermission=false > > As per spec, app servers are supposed to block publishing new web > service endpoints via the Endpoint API. This system property will > disable the check and will allow you to publish a new endpoint. > > Jarek > > On Tue, Jun 24, 2008 at 3:07 PM, Alexey Kakunin <[EMAIL PROTECTED]> wrote: > > Hello again. > > > > Periodically I'm returning to this problem again and again - since it > looks > > very strange why application.correctly run on most server from Jetty & > > Tomcat and finishing JBoss and GlassFish - but cannot run on Geronimo. > > > > So, playing a little bit more I hope I managed classloader problems, but > now > > I cannot create services (CXF + Spring) due to security problems (Stack > > trace specified below). > > > > Does anybody has success experience with using CXF 2.1 & Spring 2.5 under > > Geronimo 2.1.1? > > > > Caused by: java.security.AccessControlException: access denied > > (javax.xml.ws.WebServicePermission publishEndpoint) > > at > > > java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) > > at > > java.security.AccessController.checkPermission(AccessController.java:546) > > at > > > org.apache.cxf.jaxws.EndpointImpl.checkPublishPermission(EndpointImpl.java:375) > > at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:241) > > at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:194) > > at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:380) > > 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 > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1412) > > at > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1373) > > at > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333) > > ... 89 more > > > > 2008/5/6 Alexey Kakunin <[EMAIL PROTECTED]>: > >> > >> Jarek > >> thank you very much for advise - but it did not helped :( > >> > >> Can you explain me why this may help me (probably understanding this I > >> will able to find some other solution) > >> > >> Thank you again. > >> > >> 2008/5/5 Jarek Gawor <[EMAIL PROTECTED]>: > >>> > >>> Try adding META-INF/spring to your > >>> element. That might help with the > >>> UnsatisfiedDependencyException but I'm not 100% sure. > >>> > >>> Jarek > >>> > >>> On Mon, Apr 28, 2008 at 9:50 AM, Alexey Kakunin <[EMAIL PROTECTED]> > >>> wrote: > >>> > Hello! I'm currently working with migrating quite big war-only > >>> > application > >>> > (http://www.emforge.org) to the Geronimo. > >>> > We are using Tomcat 5.5/6.0 for development, but already prepared > >>> > "special" > >>> > versions for JBossAS and GlassFis to provide better integration > >>> > (http://www.emforge.org/wiki/EmForgeJ2EEIntegration has a little bit > >>> > more > >>> > details). > >>> > > >>> > So, now the turn on Geronimo. > >>> > > >>> > This application is used many dependencies, some of which make sense > >>> > are: > >>> > * JSF-RI 1.2 & Facelets & RichFaces 3.2.0 > >>> > * Spring 2.5.2 > >>> > * CXF 2.0.5-incubator. > >>> > > >>> > During trying to run application on GlassFish I met some problems, > >>> > seems > >>> > related to the facts, that Geronimo is used a little bit another > >>> > versions: > >>> > * MyFaces 1.2 (as JSF Implementation) > >>> > *
CXF + Spring under Geronimo 2.1.1
Hello again. Periodically I'm returning to this problem again and again - since it looks very strange why application.correctly run on most server from Jetty & Tomcat and finishing JBoss and GlassFish - but cannot run on Geronimo. So, playing a little bit more I hope I managed classloader problems, but now I cannot create services (CXF + Spring) due to security problems (Stack trace specified below). Does anybody has success experience with using CXF 2.1 & Spring 2.5 under Geronimo 2.1.1? Caused by: java.security.AccessControlException: access denied (javax.xml.ws.WebServicePermission publishEndpoint) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) at java.security.AccessController.checkPermission(AccessController.java:546) at org.apache.cxf.jaxws.EndpointImpl.checkPublishPermission(EndpointImpl.java:375) at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:241) at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:194) at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:380) 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 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1412) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1373) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333) ... 89 more 2008/5/6 Alexey Kakunin <[EMAIL PROTECTED]>: > Jarek > thank you very much for advise - but it did not helped :( > > Can you explain me why this may help me (probably understanding this I will > able to find some other solution) > > Thank you again. > > 2008/5/5 Jarek Gawor <[EMAIL PROTECTED]>: > > Try adding META-INF/spring to your >> element. That might help with the >> UnsatisfiedDependencyException but I'm not 100% sure. >> >> Jarek >> >> On Mon, Apr 28, 2008 at 9:50 AM, Alexey Kakunin <[EMAIL PROTECTED]> >> wrote: >> > Hello! I'm currently working with migrating quite big war-only >> application >> > (http://www.emforge.org) to the Geronimo. >> > We are using Tomcat 5.5/6.0 for development, but already prepared >> "special" >> > versions for JBossAS and GlassFis to provide better integration >> > (http://www.emforge.org/wiki/EmForgeJ2EEIntegration has a little bit >> more >> > details). >> > >> > So, now the turn on Geronimo. >> > >> > This application is used many dependencies, some of which make sense >> are: >> > * JSF-RI 1.2 & Facelets & RichFaces 3.2.0 >> > * Spring 2.5.2 >> > * CXF 2.0.5-incubator. >> > >> > During trying to run application on GlassFish I met some problems, seems >> > related to the facts, that Geronimo is used a little bit another >> versions: >> > * MyFaces 1.2 (as JSF Implementation) >> > * Spring 2.0.5 >> > * CXF 2.0.2 >> > >> > But before one general question: how to use some default (I suppose >> > jdbc/ActiveDS) DataSource in my application? >> > We need it because by default, we are using build-in file-based HSQL, >> but in >> > these "special" pacjkages for J2EE servers we provide some better >> > integration - for example we are using some default DS as DataSource. It >> > allows user to start application by simple deploying (without any >> external >> > configuration) and avoid from using HSQL (it has some problems). >> > >> > I read documentation >> > (http://cwiki.apache.org/GMOxDOC21/deployment-plans.html) and trying to >> do >> > like it is described there - added resource into web.xml: >> > >> > >> > jdbc/ActiveDS >> > javax.sql.DataSource >> > Container >> > Shareable >> > >> > >> > And added dependency into geronimo-web.xml (may be it is not correct - >> but I >> > tried different ways): >> > >> > >> > http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"; >> >xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2"; >> > xmlns:sec="http://geronimo
Re: Migrting application into Geronimo
Jarek thank you very much for advise - but it did not helped :( Can you explain me why this may help me (probably understanding this I will able to find some other solution) Thank you again. 2008/5/5 Jarek Gawor <[EMAIL PROTECTED]>: > Try adding META-INF/spring to your > element. That might help with the > UnsatisfiedDependencyException but I'm not 100% sure. > > Jarek > > On Mon, Apr 28, 2008 at 9:50 AM, Alexey Kakunin <[EMAIL PROTECTED]> wrote: > > Hello! I'm currently working with migrating quite big war-only > application > > (http://www.emforge.org) to the Geronimo. > > We are using Tomcat 5.5/6.0 for development, but already prepared > "special" > > versions for JBossAS and GlassFis to provide better integration > > (http://www.emforge.org/wiki/EmForgeJ2EEIntegration has a little bit > more > > details). > > > > So, now the turn on Geronimo. > > > > This application is used many dependencies, some of which make sense > are: > > * JSF-RI 1.2 & Facelets & RichFaces 3.2.0 > > * Spring 2.5.2 > > * CXF 2.0.5-incubator. > > > > During trying to run application on GlassFish I met some problems, seems > > related to the facts, that Geronimo is used a little bit another > versions: > > * MyFaces 1.2 (as JSF Implementation) > > * Spring 2.0.5 > > * CXF 2.0.2 > > > > But before one general question: how to use some default (I suppose > > jdbc/ActiveDS) DataSource in my application? > > We need it because by default, we are using build-in file-based HSQL, > but in > > these "special" pacjkages for J2EE servers we provide some better > > integration - for example we are using some default DS as DataSource. It > > allows user to start application by simple deploying (without any > external > > configuration) and avoid from using HSQL (it has some problems). > > > > I read documentation > > (http://cwiki.apache.org/GMOxDOC21/deployment-plans.html) and trying to > do > > like it is described there - added resource into web.xml: > > > > > > jdbc/ActiveDS > > javax.sql.DataSource > > Container > > Shareable > > > > > > And added dependency into geronimo-web.xml (may be it is not correct - > but I > > tried different ways): > > > > > > http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"; > >xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2"; > > xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0"; > >xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2";> > > > > > > > > org.emforge > > EmForge > > 0.23 > > war > > > > > > > > > > org.jaxen,org.springframework,org.apache.cxf > > > > > > > > > > console.dbpool > > jdbc%2FActiveDS > > > > > > > > /EmForge > > > > jdbc/ActiveDS > > jdbc/ActiveDS > > > > console.dbpool > > jdbc%2FActiveDS > >jdbc/ActiveDS > > > > > > > > > > But in this case I'm getting error during deployment: > > > > error: cvc-complex-type.2.4a: Expected elements > > 'non-overridable-classes@ > http://geronimo.apache.org/xml/ns/deployment-1.2 > > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.2 > > suppress-default-environment@ > http://geronimo.apache.org/xml/ns/deployment-1.2' > > instead of 'dependencies@ > http://geronimo.apache.org/xml/ns/deployment-1.2' > > here in element environment@ > http://geronimo.apache.org/xml/ns/deployment-1.2 > > > > > > error: cvc-complex-type.2.4b: Element not allowed: > > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.2 in element > > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.2 > > > > > > > > > > > > What I'm doing wrong here? > > > > > > Another question - MyFaces and JSF-RI? > > Is it possible to configure somehow my application to use JSF-RI instead > of > > MyFaces. Problem is - we have some custom renderers, which > implementation > > is inherited from com.sun renderers, so - when I'm deploying application > > into Geronimo - I'm getting class-not-fou
Re: Migrting application into Geronimo
Thank you - but really do not think it will help us - since application do not have ANY JBoss specific code - as I wrote - in our development we are using Tomcat 5.5 without any J2EE - and everything works But I will try to look at this tool. 2008/4/28, Ted Kirby <[EMAIL PROTECTED]>: > > The JBoss to Geronimo Migration Tool (J2G) may be of interest/use to > you. See > http://geronimo.apache.org/development-tools.html#DevelopmentTools-J2G. > > > On Mon, Apr 28, 2008 at 9:50 AM, Alexey Kakunin <[EMAIL PROTECTED]> wrote: > > Hello! I'm currently working with migrating quite big war-only > application > > (http://www.emforge.org) to the Geronimo. > > We are using Tomcat 5.5/6.0 for development, but already prepared > "special" > > versions for JBossAS and GlassFis to provide better integration > > (http://www.emforge.org/wiki/EmForgeJ2EEIntegration has a little bit > more > > details). > > > > So, now the turn on Geronimo. > > > > This application is used many dependencies, some of which make sense > are: > > * JSF-RI 1.2 & Facelets & RichFaces 3.2.0 > > * Spring 2.5.2 > > * CXF 2.0.5-incubator. > > > > During trying to run application on GlassFish I met some problems, seems > > related to the facts, that Geronimo is used a little bit another > versions: > > * MyFaces 1.2 (as JSF Implementation) > > * Spring 2.0.5 > > * CXF 2.0.2 > > > > But before one general question: how to use some default (I suppose > > jdbc/ActiveDS) DataSource in my application? > > We need it because by default, we are using build-in file-based HSQL, > but in > > these "special" pacjkages for J2EE servers we provide some better > > integration - for example we are using some default DS as DataSource. It > > allows user to start application by simple deploying (without any > external > > configuration) and avoid from using HSQL (it has some problems). > > > > I read documentation > > (http://cwiki.apache.org/GMOxDOC21/deployment-plans.html) and trying to > do > > like it is described there - added resource into web.xml: > > > > > > jdbc/ActiveDS > > javax.sql.DataSource > > Container > > Shareable > > > > > > And added dependency into geronimo-web.xml (may be it is not correct - > but I > > tried different ways): > > > > > > http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"; > >xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2"; > > xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0"; > >xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2";> > > > > > > > > org.emforge > > EmForge > > 0.23 > > war > > > > > > > > > > org.jaxen,org.springframework,org.apache.cxf > > > > > > > > > > console.dbpool > > jdbc%2FActiveDS > > > > > > > > /EmForge > > > > jdbc/ActiveDS > > jdbc/ActiveDS > > > > console.dbpool > > jdbc%2FActiveDS > >jdbc/ActiveDS > > > > > > > > > > But in this case I'm getting error during deployment: > > > > error: cvc-complex-type.2.4a: Expected elements > > 'non-overridable-classes@ > http://geronimo.apache.org/xml/ns/deployment-1.2 > > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.2 > > suppress-default-environment@ > http://geronimo.apache.org/xml/ns/deployment-1.2' > > instead of 'dependencies@ > http://geronimo.apache.org/xml/ns/deployment-1.2' > > here in element environment@ > http://geronimo.apache.org/xml/ns/deployment-1.2 > > > > > > error: cvc-complex-type.2.4b: Element not allowed: > > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.2 in element > > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.2 > > > > > > > > > > > > What I'm doing wrong here? > > > > > > Another question - MyFaces and JSF-RI? > > Is it possible to configure somehow my application to use JSF-RI instead > of > > MyFaces. Problem is - we have some custom renderers, which > implementation > > is inherited from com.sun renderers, so -
Migrting application into Geronimo
/ws CXFServlet /ws/* I looked into tutorials - but found only tutorial about writting web-services for Geronimo with using Axis2 - not CXF... So, really do not know what is a correct way to define CXF-based web-services in Geronimo. Does anybody has any suggestions. I will be happy to any help. For us it is really important to add support for Geronimo - in this case our application with run on all most-important Open-Source J2EE servers. -- With best regards, Alexey Kakunin