Re: Geronimo 2.1 and SSL (SUN JRE/JDK 6)
Hi Uwe, Geronimo ships a default self-signed certificate in the distributions. You should replace this default certificate after installing Geronimo. You will have to designate the certificate used by Geronimo as a trusted certificate in OpenLaszlo to get past the error you are encountering. ++Vamsi On Sat, Apr 19, 2008 at 6:34 PM, Muench Uwe [EMAIL PROTECTED] wrote: Hello, how can I run Geronimo 2.1 in SSL? By default Geronimo has its own keystore, but I think, that SUN JDK/JRE 6 this keystore not realy knows. Why I think so? See this: 19 Apr 2008 14:27:52 (127.0.0.1 3) INFO responders.Responder - Responding with error (text/xml): ?xml version=1.0 encoding=UTF-8?!DOCTYPE laszlo-dataresultseterror status=2 msg=data source error for https://localhost:8443/openlaszlo-4.0.12/laszlo-explorer/nav.xml: SSL exception: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target//resultset 19 Apr 2008 14:27:52 (127.0.0.1 3) DEBUG servlets.LZServlet - Request 3 finished Its just a part of a logfile from OpenLaszlo (lps.log) How can I resolv this? Best regards, Uwe -- Hochschule Furtwangen (http://www.hs-furtwangen.de) Open WebMail Project (http://openwebmail.org)
Re: remote ejb scalability issue
I also have been getting these errors. I have been unable to figure out the exact reason. But I am guessing that the common factor here seems to be Windows XP SP2. The openejb build itself fails on my Lenovo T60p with Windows XP SP2 with the same error that you get. I also tried with many parallel requests and got the same error. However it runs in Linux in another machine and also in a windows xp single core machine without the problem occurring(need to check whether its SP1 or SP2 but i believe its SP1). However I have not load tested it in the linux machine. However as of now it looks to me like the problem is occurring in WinXP SP2 with dual core processors (common factor for everyone getting this error) Regards Manu On Fri, Apr 18, 2008 at 3:03 PM, Trygve Hardersen [EMAIL PROTECTED] wrote: On 18/04/2008, Jacek Laskowski [EMAIL PROTECTED] wrote: On Thu, Apr 17, 2008 at 10:42 PM, Trygve Hardersen [EMAIL PROTECTED] wrote: javax.naming.NamingException: Cannot lookup '/BankManagerFacadeBeanRemote'. [Root exception is java.rmi.RemoteException: Cannot read the response from the server (OEJP/3.0) : null; nested exception is: java.io.EOFException] Hi, Are you by any chance running the tests on t60p machine? T60p as in Lenovo Thinkpad? No, but I have a T61p machine I can test on. Here's a description on my test setup: Machine: Gigabyte 965P DQ6 with Dual Core 2.4 Ghz, 8GB RAM Host OS: Windows Vista SP1, VMWare Workstation 6 Test OS: Windows XP SP2, 2GB RAM, Java 1.6 I also have Ubuntu Server 7.10 virtual machines I can test on, but I haven't run the integration tests on these yet. Will try. Trygve
Re: inverse-classloading error
djencks wrote: I'm having trouble distinguishing between this and the previous error. Are you sure this isn't leftover in the log from a previous failed run? You might want to start with a fresh copy of geronimo just to be certain you are seeing only the most up to date problems :-) Could you show the environment element from your geronimo plan? I clean the geronimo.log and installed WAR again. At the same time the Geronimo console displays the message: The application was successfully deployed. The application was successfully started and geronimo.log: (same time) - 13:51:47,763 WARN [ConfigurationUtil] Could not load gbean default/globalsafe/1208796686919/war?J2EEApplication=null,j2eeType=WebModule,name=default/globalsafe/1208796686919/war org.apache.geronimo.gbean.InvalidConfigurationException: Getter return type in wrong classloader: type: interface javax.transaction.UserTransaction wanted in classloader: [org.apache.geronimo.kernel.classloader.JarFileClassLoader id=default/globalsafe/1208796686919/war] actual: [org.apache.geronimo.kernel.classloader.JarFileClassLoader id=org.apache.geronimo.configs/jee-specs/2.0.2/car] at org.apache.geronimo.gbean.runtime.GBeanAttribute.init(GBeanAttribute.java:241) at org.apache.geronimo.gbean.runtime.GBeanInstance.init(GBeanInstance.java:245) at org.apache.geronimo.kernel.basic.BasicKernel.loadGBean(BasicKernel.java:354) at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:433) at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:530) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:511) at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(generated) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) at org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$dbf181f0.startConfiguration(generated) at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67) at java.lang.Thread.run(Thread.java:619) - geronimo-web.xml: - ?xml version=1.0 encoding=UTF-8? web-app xmlns=http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1; xmlns:naming=http://geronimo.apache.org/xml/ns/naming-1.2; xmlns:sys=http://geronimo.apache.org/xml/ns/deployment-1.2; environment dependencies dependency groupIdorg.apache.geronimo.configs/groupId artifactIdjavamail/artifactId version2.0.2/version typecar/type /dependency dependency groupIdconsole.dbpool/groupId artifactIdjdbc%2FGlobalSafeDS/artifactId /dependency /dependencies non-overridable-classes filterjavax.transaction./filter /non-overridable-classes inverse-classloading/ /environment context-root/globalsafe/context-root resource-ref !-- Used in web.xml -- ref-namemail/MailSession/ref-name !-- Default Geronimo mail session -- resource-linkmail/MailSession/resource-link /resource-ref resource-ref ref-namejdbc/GlobalSafeDS/ref-name resource-linkjdbc/GlobalSafeDS/resource-link /resource-ref /web-app - An important information: If I remove inverse-classloading and non-overridable-classes my app started and run!! But I have some problems with the common-lang of geronimo which is version 2.0, and I need the 2.1. If I use the hidden-classes my application work without any error: hidden-classes filterorg.apache.commons/filter /hidden-classes But I would like to do the inverse ... I want
Re: inverse-classloading error
djencks wrote: Out of curiousity, what does your app do if there is no transaction manager available in the tomcat environment? Ok :) I use Spring + Hibernate 3 on my app and these frameworks that use the class TransactionManager. Complete trace in the tomcat 6 (without WEB-INF\lib\jta.jar): - org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateSessions' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/transaction/TransactionManager java.lang.NoClassDefFoundError: javax/transaction/TransactionManager at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) at java.lang.Class.getDeclaredMethods(Class.java:1791) at java.beans.Introspector$1.run(Introspector.java:1272) at java.security.AccessController.doPrivileged(Native Method) at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1270) at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1136) at java.beans.Introspector.getBeanInfo(Introspector.java:387) at java.beans.Introspector.getBeanInfo(Introspector.java:159) at org.springframework.beans.CachedIntrospectionResults.init(CachedIntrospectionResults.java:150) at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:87) at org.springframework.beans.BeanWrapperImpl.setIntrospectionClass(BeanWrapperImpl.java:237) at org.springframework.beans.BeanWrapperImpl.setWrappedInstance(BeanWrapperImpl.java:195) at org.springframework.beans.BeanWrapperImpl.setWrappedInstance(BeanWrapperImpl.java:179) at org.springframework.beans.BeanWrapperImpl.init(BeanWrapperImpl.java:132) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:487) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:362) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:186) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1046) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:186) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1046) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:186) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1046) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857) at
Re: Geronimo 2.1 and SSL (SUN JRE/JDK 6)
Hello, how can I do this? Is there any HowTo´s? OpenLaszlo (OL) is only a framework (Flash) without a section where I can manipulate the keystore. OL used it from Java (Sun, IBM,...- 'C:\JAVA\JRE\jre1.6.0_06\lib\security\cacerts')...so Geronimo need to interact with Sun´s Java JRE...possible? Uwe On Mon, 21 Apr 2008 11:40:30 +0530, Vamsavardhana Reddy wrote Hi Uwe, Geronimo ships a default self-signed certificate in the distributions. You should replace this default certificate after installing Geronimo. You will have to designate the certificate used by Geronimo as a trusted certificate in OpenLaszlo to get past the error you are encountering. ++Vamsi On Sat, Apr 19, 2008 at 6:34 PM, Muench Uwe [EMAIL PROTECTED] furtwangen.de wrote: Hello, how can I run Geronimo 2.1 in SSL? By default Geronimo has its own keystore, but I think, that SUN JDK/JRE 6 this keystore not realy knows. Why I think so? See this: 19 Apr 2008 14:27:52 (127.0.0.1 3) INFO responders.Responder - Responding with error (text/xml): ?xml version=1.0 encoding=UTF-8?!DOCTYPE laszlo-dataresultseterror status=2 msg=data source error for https://localhost:8443/openlaszlo-4.0.12/laszlo-explorer/nav.xml: SSL exception: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target//resultset 19 Apr 2008 14:27:52 (127.0.0.1 3) DEBUG servlets.LZServlet - Request 3 finished Its just a part of a logfile from OpenLaszlo (lps.log) How can I resolv this? Best regards, Uwe -- Hochschule Furtwangen (http://www.hs-furtwangen.de) Open WebMail Project (http://openwebmail.org) -- Hochschule Furtwangen (http://www.hs-furtwangen.de) Open WebMail Project (http://openwebmail.org)
JAX-WS webservice deployment
I have a question about deploying JAX-WS webservices. I generated and deployed the simple sample jax-ws calculator and looked at what it had generated and what was deployed and in the simple case this will work fine. In my case I have a JAX-WS webservice for which I am supplying a web.xml file as I have entries for other servlets and parameters. In this case it does not appear that the web service is being deployed. Is it up to me in the case where I am supplying the web.xml file to make the servlet entries for the webservice? When I tried this I received various faults. I am using WebSphere CE which is Geronimo hard wired with tomcat. I did provide a geronimo deployment descriptor which is listed below along with the web.xml. The containing project is a Dynamic web project created in eclipse 3.3 Europa with a war file being the artifact. No EAR association. I have not been able to find anything definitive on what is needed. Any help appreciated. ?xml version=1.0 encoding=UTF-8? web-app xmlns=http://geronimo.apache.org/xml/ns/j2ee/web-1.1; xmlns:nam=http://geronimo.apache.org/xml/ns/naming-1.1; xmlns:sec=http://geronimo.apache.org/xml/ns/security-1.1; xmlns:sys=http://geronimo.apache.org/xml/ns/deployment-1.1; sys:environment sys:moduleId sys:groupIddefault/sys:groupId sys:artifactIdTestProfret1/sys:artifactId sys:version2.0/sys:version sys:typewar/sys:type /sys:moduleId /sys:environment context-root/TestProfRet1/context-root /web-app ?xml version=1.0 encoding=UTF-8? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; id=WebApp_ID version=2.5 display-nameTestProfRet1/display-name servlet display-name EWSHttpMonServlet/display-name servlet-nameEWSHttpMonServlet/servlet-name servlet-classcom.elsevier.webservices.jws.ews.common.servlet.EWSHttpMonServlet/servlet-class init-param param-nameapplicationName/param-name param-valueProfile Retrieval Service/param-value /init-param init-param param-nameinitWebService/param-name param-valuetrue/param-value /init-param load-on-startup2/load-on-startup /servlet servlet display-name ApplicationState/display-name servlet-nameApplicationState/servlet-name servlet-class com.elsevier.webservices.ews.common.servlet.ApplicationStateServlet/servlet-class /servlet servlet display-name WSTest/display-name servlet-nameWSTest/servlet-name servlet-class com.elsevier.webservices.ews.common.servlet.WSTestServlet/servlet-class /servlet servlet-mapping servlet-nameApplicationState/servlet-name url-pattern/admin/applicationState/url-pattern /servlet-mapping servlet-mapping servlet-nameWSTest/servlet-name url-pattern/test/*/url-pattern /servlet-mapping servlet-mapping servlet-nameEWSHttpMonServlet/servlet-name url-pattern/admin/httpmon/url-pattern /servlet-mapping welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file welcome-filedefault.html/welcome-file welcome-filedefault.htm/welcome-file welcome-filedefault.jsp/welcome-file /welcome-file-list env-entry env-entry-nameSERVICE_CLASS/env-entry-name env-entry-typejava.lang.String/env-entry-type env-entry-valuecom.elsevier.webservices.retrieval.profile.service.ProfileRetrievalService/env-entry-value /env-entry env-entry env-entry-nameCONTEXT_CLASS/env-entry-name env-entry-typejava.lang.String/env-entry-type env-entry-valuecom.elsevier.webservices.ews.common.context.EWSContext/env-entry-value /env-entry env-entry env-entry-nameLOGGER_CHOICE/env-entry-name env-entry-typejava.lang.String/env-entry-type env-entry-valuecom.elsevier.edit.common.logging.Logger/env-entry-value /env-entry env-entry env-entry-nameIGNORE_HEADER/env-entry-name env-entry-typejava.lang.Boolean/env-entry-type env-entry-valuetrue/env-entry-value /env-entry env-entry env-entry-nameINSTRUMENTATION_FACTORY/env-entry-name env-entry-typejava.lang.String/env-entry-type env-entry-valuecom.elsevier.edit.common.instrumentation.Instrumentation/env-entry-value /env-entry listener listener-classcom.lxnx.sysman.smapi.initializer.SysmanInitializerListener/listener-class /listener context-param param-nameSmapiDebugLevel/param-name param-valueDEBUG/param-value
Re: Deploy the codes i Tomcat successful but require advice for Geronimo. Thanks
On Apr 19, 2008, at 3:05 PM, newbie-gero wrote: Hi, i'm using geronimo 2.1. I did try deploying the directory(without compressing into .war format), but it gives errors. However i can deploy in Tomcat. Since tomcat and geronimo are from apache family, i will like to know if whether i can deploy the same way in geronimo as tomcat? To make my explanation clearer, u can try deploy my codes at the first message by unzip the file and deploy in tomcat First, you have a problem in your geronimo-web.xml. Changing to something like this fixes that problem: ?xml version=1.0 encoding=UTF-8? web-app xmlns=http://geronimo.apache.org/xml/ns/j2ee/web-1.1; xmlns:dep=http://geronimo.apache.org/xml/ns/deployment-1.2; dep:environment dep:moduleId dep:groupIdsample2.applications/dep:groupId dep:artifactIdVOApp/dep:artifactId dep:version2.1/dep:version /dep:moduleId /dep:environment context-rootims/context-root service-ref service-ref-nameservices/ims/service-ref-name port port-nameimsPort/port-name protocolhttp/protocol hostlocalhost/host port8080/port uri/ims/ims/uri /port /service-ref /web-app Note that the service-ref-name above doesn't match anything in your web.xml (which has no service-ref definitions at all). You'll need to fix this to have anything that will work. Deploying with the above geronimo-web.xml will yield two warnings like the following: 15:52:03,509 WARN [SwitchingServiceRefBuilder] Failed to build reference to service reference [services/ims] defined in plan file, reason - corresponding entry in deployment descriptor missing. However, the deploy should work. You can deploy in the following manner: cp -r ims.war geronimo-home/deploy/ I'm not the biggest fan of hot-deploy. I'd suggest you use the following technique: cd ims.war jar cvf ../new-ims.war * cd .. geronimo-home/bin/gsh deploy/deploy ims.war (or geronimo-home/bin/deploy.sh deploy ims.war ) (or use the admin console) --kevan