Substitute geronimo javamail with sun implementation
Hello, When I use the geronimo-mail implementation to access pop3 folders in a bean, I get exceptions for some of the messages. So i tried a sample main application with the sun implementation without any errors. Now I wanted Geronimo to use the sun implementation instead of geronimo-mail. My first step was to get the Geronimo implementation running. So I created an GBean: ?xml version=1.0 encoding=UTF-8? module xmlns=http://geronimo.apache.org/xml/ns/deployment-1.2; environment moduleId groupIdcom.mvolution.mti.commons/groupId artifactIdPOPMailGBean/artifactId version1.0/version typecar/type /moduleId dependencies dependency groupIdorg.apache.geronimo.modules/groupId artifactIdgeronimo-mail/artifactId version2.0.2/version typejar/type /dependency dependency groupIdorg.apache.geronimo.configs/groupId artifactIdjavamail/artifactId version2.0.2/version typecar/type /dependency dependency groupIdorg.apache.geronimo.modules/groupId artifactIdgeronimo-management/artifactId version2.0.2/version typejar/type /dependency /dependencies /environment gbean name=POP3 class=org.apache.geronimo.mail.POP3StoreGBean attribute name=host type=java.lang.Stringpopserver/attribute attribute name=user type=java.lang.Stringusername/attribute attribute name=port type=java.lang.Integer110/attribute /gbean gbean name=mail/POPMailSession class=org.apache.geronimo.mail.MailGBean attribute name=transportProtocolpop3/attribute attribute name=jndiNameger:/POPMailSession/attribute reference name=Protocols/ /gbean This works very well in my Bean with the @Resource annotation. I want this with the sun implemention. So I installed the javamail.jar and activation.jar from sun on Geronimo. The problem is the dependency org.apache.geronimo.configs/javamail/2.0.2/car in the GBean. There is an geronimo.plugin.xml in rg.apache.geronimo.configs/javamail/2.0.2/car which shows the dependency to the org.apache.geronimo.javamail/geronimo-javamail_1.4_mail/1.2/jar. How can I create such a configuration? Do I have to create it with a deployment-plan? What schema do I have to use? Thank you for your help. Mark -- View this message in context: http://www.nabble.com/Substitute-geronimo-javamail-with-sun-implementation-tp16824270s134p16824270.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
JAAS with a standalone client
Hello, I have a standalone client, no jee-application client. Now I want to login to the server using JAAS, which works until now. But the only principal I get from the subject is a server principal. But I need all GeronimoGroupPricipals and GeronimoUserPrincipals of the authneticated user in the subject on my client, to enable or disable UI elements. I investigated in the source code but found no solution for this. Is it possible to get the GeronimoPricipals to the client or can I get the server subject in any way? Currently I have a bean that does the same as the corresponding SQLRealm. It provides the user and group depending on the user that is currently logged in. But I want to avoid this solution. Can you give me an hint? Mark -- View this message in context: http://www.nabble.com/JAAS-with-a-standalone-client-tp16824275s134p16824275.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
JCA Connector and hidden-classes
Hello, I created my own JCA connector. Wanting to use my own version of commons-logging and log4j, I have embedded in thre RAR the two corresponding jars and, in geronimo-ra.xml, added the following lines dep:hidden-classes filterorg.apache.commons.logging,org.apache.log4/filter /dep:hidden-classes But, when I deploy the adapter (stand-alone deployment, not thru an EAR), I do not get the expected result. I traced the code, and discovered that in fact the resources are loaded from the parent --- LOG FACTORY is loaded from file:/D:/geronimo-1.0/lib/commons-logging-1.0.4.jar If any one has got an explaination Thanks Jean-Noël
Re: JCA Connector and hidden-classes
The filter element only takes one package, so you want dep:hidden-classes dep:filterorg.apache.commons.logging./dep:filter dep:filterorg.apache.log4./dep:filter /dep:hidden-classes Also its a good idea to include the . just in case someone has a package org.apache.log4jakarta or something that you don't want to hide :-) Let us know if there are additional problems thanks david jencks On Apr 22, 2008, at 7:50 AM, johnxmas wrote: Hello, I created my own JCA connector. Wanting to use my own version of commons-logging and log4j, I have embedded in thre RAR the two corresponding jars and, in geronimo-ra.xml, added the following lines dep:hidden-classes filterorg.apache.commons.logging,org.apache.log4/filter /dep:hidden-classes But, when I deploy the adapter (stand-alone deployment, not thru an EAR), I do not get the expected result. I traced the code, and discovered that in fact the resources are loaded from the parent --- LOG FACTORY is loaded from file:/D:/geronimo-1.0/lib/commons- logging-1.0.4.jar If any one has got an explaination Thanks Jean-Noël
Re: Substitute geronimo javamail with sun implementation
I guess we have one jar where sun has 2? If so I think you need to copy the javamail config project, rename it, and replace the dependency on our jar with dependencies on the sun jars in the pom. If you were using g 2.1 you could arrange it so that when your plugin was installed it would replace ours, but this can't be automated in 2.0.2. In 2.0.2 I think you can map the plugins by hand by including lines like this in var/config/artifact_aliases.properties: org.apache.geronimo.configs/javamail/2.0.2/car=com.mark/sun-javamail/ 1.0-SNAPSHOT/car org.apache.geronimo.configs/javamail//car=com.mark/sun-javamail/1.0- SNAPSHOT/car There's a good chance you'll only need one of these lines, but I'm not sure which. As Rick said, please let us know what pop3 problems you are seeing so we can fix them. thanks david jencks On Apr 22, 2008, at 6:36 AM, maho77 wrote: Hello, When I use the geronimo-mail implementation to access pop3 folders in a bean, I get exceptions for some of the messages. So i tried a sample main application with the sun implementation without any errors. Now I wanted Geronimo to use the sun implementation instead of geronimo-mail. My first step was to get the Geronimo implementation running. So I created an GBean: ?xml version=1.0 encoding=UTF-8? module xmlns=http://geronimo.apache.org/xml/ns/deployment-1.2; environment moduleId groupIdcom.mvolution.mti.commons/groupId artifactIdPOPMailGBean/artifactId version1.0/version typecar/type /moduleId dependencies dependency groupIdorg.apache.geronimo.modules/groupId artifactIdgeronimo-mail/artifactId version2.0.2/version typejar/type /dependency dependency groupIdorg.apache.geronimo.configs/groupId artifactIdjavamail/artifactId version2.0.2/version typecar/type /dependency dependency groupIdorg.apache.geronimo.modules/groupId artifactIdgeronimo-management/artifactId version2.0.2/version typejar/type /dependency /dependencies /environment gbean name=POP3 class=org.apache.geronimo.mail.POP3StoreGBean attribute name=host type=java.lang.Stringpopserver/attribute attribute name=user type=java.lang.Stringusername/attribute attribute name=port type=java.lang.Integer110/attribute /gbean gbean name=mail/POPMailSession class=org.apache.geronimo.mail.MailGBean attribute name=transportProtocolpop3/attribute attribute name=jndiNameger:/POPMailSession/attribute reference name=Protocols/ /gbean This works very well in my Bean with the @Resource annotation. I want this with the sun implemention. So I installed the javamail.jar and activation.jar from sun on Geronimo. The problem is the dependency org.apache.geronimo.configs/javamail/ 2.0.2/car in the GBean. There is an geronimo.plugin.xml in rg.apache.geronimo.configs/javamail/2.0.2/car which shows the dependency to the org.apache.geronimo.javamail/geronimo-javamail_1.4_mail/1.2/jar. How can I create such a configuration? Do I have to create it with a deployment-plan? What schema do I have to use? Thank you for your help. Mark -- View this message in context: http://www.nabble.com/Substitute- geronimo-javamail-with-sun-implementation-tp16824270s134p16824270.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Locked keystore, forgive me I'm just a newbie
I have managed to mess-up my keystore and now Geronimo(2.1) won't start. I made the geronimo-default file editable and then I deleted the entry within it.(Don't ask why, just for fun, I guess) Is there a way to recover from this? I added the file itself back to the var/security/keystores folder but now it tells me that the keystore is locked. Am I hopeless or can I restore a few folders from the install to get back to square one, but leave all the database pools intact or is there an even better way to recover. Thanks, Steven Ashwill
Re: JAAS with a standalone client
On Apr 22, 2008, at 6:45 AM, maho77 wrote: Hello, I have a standalone client, no jee-application client. Now I want to login to the server using JAAS, which works until now. But the only principal I get from the subject is a server principal. But I need all GeronimoGroupPricipals and GeronimoUserPrincipals of the authneticated user in the subject on my client, to enable or disable UI elements. I investigated in the source code but found no solution for this. Is it possible to get the GeronimoPricipals to the client or can I get the server subject in any way? Currently I have a bean that does the same as the corresponding SQLRealm. It provides the user and group depending on the user that is currently logged in. But I want to avoid this solution. Can you give me an hint? Well, I kind of hope you can't get the server side Subject into your client :-). Could I suggest that doing so might not be appropriate from a security standpoint? You don't really know what other sensitive info might have been added to the Subject. Also, I think you would be tying your client to a particular login module which might not be an appropriate coupling. What I would suggest considering is to have a server component (ejb?) that maps the principals in the Subject to a set of (String) roles that are sent back to the client, and that you base the UI stuff on these roles. It's pretty silly that there isn't a getUserRoles() call in the ee specs but that is what we have to live with now. Anyway I think this would prevent accidentally sending sensitive info to the client, and provide some decoupling between the specific login module you happen to be using now and your client. There might be something I've overlooked here, so feel free to try to change my mind :-) thanks david jencks Mark -- View this message in context: http://www.nabble.com/JAAS-with-a- standalone-client-tp16824275s134p16824275.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: JAX-WS webservice deployment
Yes, you need to add in the servlet and servlet-mapping entires for your web service. What exceptions did you see? Jarek On Mon, Apr 21, 2008 at 3:23 PM, Virtual Light [EMAIL PROTECTED] wrote: 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
Re: Locked keystore, forgive me I'm just a newbie
After replacing the geronimo-default keystore, edit var/config/config.xml and locate the following xml fragment: module name=org.apache.geronimo.framework/server-security-config/2.1/car gbean name=org.apache.geronimo.framework/server-security-config/2.1/car?ServiceModule=org.apache.geronimo.framework/server-security-config/2.1/car,j2eeType=Keystore,name=geronimo-default attribute name=keyPasswords/ attribute name=keystorePassword/ /gbean /module Replace the above with: module name=org.apache.geronimo.framework/server-security-config/2.1/car/ and start the server. Let us know if it helped. ++Vamsi On Tue, Apr 22, 2008 at 10:09 PM, Ashwill, Steve (Facilities Services) [EMAIL PROTECTED] wrote: I have managed to mess-up my keystore and now Geronimo(2.1) won't start. I made the geronimo-default file editable and then I deleted the entry within it.(Don't ask why, just for fun, I guess) Is there a way to recover from this? I added the file itself back to the var/security/keystores folder but now it tells me that the keystore is locked. Am I hopeless or can I restore a few folders from the install to get back to square one, but leave all the database pools intact or is there an even better way to recover. Thanks, Steven Ashwill
RE: Locked keystore, forgive me I'm just a newbie
That did the trick. Do you mind explaining what this did? Steven Ashwill From: Vamsavardhana Reddy [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 22, 2008 12:32 PM To: user@geronimo.apache.org Subject: Re: Locked keystore, forgive me I'm just a newbie After replacing the geronimo-default keystore, edit var/config/config.xml and locate the following xml fragment: module name=org.apache.geronimo.framework/server-security-config/2.1/car gbean name=org.apache.geronimo.framework/server-security-config/2.1/car?Servi ceModule=org.apache.geronimo.framework/server-security-config/2.1/car,j2 eeType=Keystore,name=geronimo-default attribute name=keyPasswords/ attribute name=keystorePassword/ /gbean /module Replace the above with: module name=org.apache.geronimo.framework/server-security-config/2.1/car/ and start the server. Let us know if it helped. ++Vamsi On Tue, Apr 22, 2008 at 10:09 PM, Ashwill, Steve (Facilities Services) [EMAIL PROTECTED] wrote: I have managed to mess-up my keystore and now Geronimo(2.1) won't start. I made the geronimo-default file editable and then I deleted the entry within it.(Don't ask why, just for fun, I guess) Is there a way to recover from this? I added the file itself back to the var/security/keystores folder but now it tells me that the keystore is locked. Am I hopeless or can I restore a few folders from the install to get back to square one, but leave all the database pools intact or is there an even better way to recover. Thanks, Steven Ashwill
Re: Locked keystore, forgive me I'm just a newbie
After you replaced the keystore, you have to undo the effect of deleting the key-entry and locking the keystore which is persisted to config.xml. This is done by removing the gbean element under module name=org.apache.geronimo.framework/server-security-config/2.1/car which resets the keystorePassword and keyPasswords attributes to their default values. ++Vamsi On Tue, Apr 22, 2008 at 11:30 PM, Ashwill, Steve (Facilities Services) [EMAIL PROTECTED] wrote: That did the trick. Do you mind explaining what this did? Steven Ashwill -- *From:* Vamsavardhana Reddy [mailto:[EMAIL PROTECTED] *Sent:* Tuesday, April 22, 2008 12:32 PM *To:* user@geronimo.apache.org *Subject:* Re: Locked keystore, forgive me I'm just a newbie After replacing the geronimo-default keystore, edit var/config/config.xml and locate the following xml fragment: module name=org.apache.geronimo.framework/server-security-config/2.1/car gbean name=org.apache.geronimo.framework/server-security-config/2.1/car?ServiceModule=org.apache.geronimo.framework/server-security-config/2.1/car,j2eeType=Keystore,name=geronimo-default attribute name=keyPasswords/ attribute name=keystorePassword/ /gbean /module Replace the above with: module name=org.apache.geronimo.framework/server-security-config/2.1/car/ and start the server. Let us know if it helped. ++Vamsi On Tue, Apr 22, 2008 at 10:09 PM, Ashwill, Steve (Facilities Services) [EMAIL PROTECTED] wrote: I have managed to mess-up my keystore and now Geronimo(2.1) won't start. I made the geronimo-default file editable and then I deleted the entry within it.(Don't ask why, just for fun, I guess) Is there a way to recover from this? I added the file itself back to the var/security/keystores folder but now it tells me that the keystore is locked. Am I hopeless or can I restore a few folders from the install to get back to square one, but leave all the database pools intact or is there an even better way to recover. Thanks, Steven Ashwill
can't edit data source
I see the JIRA (https://issues.apache.org/jira/browse/GERONIMO-3931) about error when trying to delete a data source at the console, but I get a similar error when trying to edit a data source. Is this a known problem? geronimo.log says INFO [SupportedModesServiceImpl] Portlet mode 'edit' not found for portletId: '/system-database.DBWizard!1134683811|0' -- View this message in context: http://www.nabble.com/can%27t-edit-data-source-tp16825901s134p16825901.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.