Geronimo 2.0.1 to WAS-CE 2.0.0 - strange warnings
Hi All! I've moved my application from Geronimo 2.0.1 to WAS-CE 2.0.0, and I get two strange warnings. First: 09:35:42,864 WARN [MetaData] Found duplicate query "findWebModuleByName" in "class org.xh.dataweaver.web.entity.WebModule". Ignoring. WOW, that rocks. This is how my WebModule entity looks like: @Entity @Table(name = "dw_modules", schema = "dw") @NamedQuery(name = "findWebModuleByName", query = "SELECT wm FROM WebModule wm WHERE wm.name = :name") public class WebModule implements Serializable { ... } only one @NamedQuery is declared. NOTE: on G2 there was no such warning! Of course I can execute findWebModuleByName query and it works. But what's going on? Second: 09:35:38,918 WARN [OpenEJB] Injection data not found in enc: jndiName='org.xh.dataweaver.web.facades.WebEntityFacadeBean/utx', target=class org.xh.dataweaver.web.facades.WebEntityFacadeBean/utx My WebEntityFacadeBean looks like this: @Stateless public class WebEntityFacadeBean implements WebEntityFacade { @PersistenceContext(unitName = "DataWeaverPU") private EntityManager em; @Resource private UserTransaction utx; ... } NOTE: on G2 there was no such warning! If the injection data was not found how come this works: utx.begin(); em.persist(module); utx.commit(); strange things happen ;) any idea? maybe IBM uses older Geronimo than 2.0.1? thanks and best regards Łukasz ___ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/
Re: XML and EXSLT support disappeared from Geronimo 2.0.1!
Hi! I've checked my Geronimo 1.x lib/endorsed directory and there is Xalan (xalan-2.6.0-26.jar). So it looks like Xalan was shipped with G1 and is not shipped with G2 any more ;) Any way, I've copied it to the corresponding Geronimo 2.0.1 directory and now it works. thanks! Łukasz - Original Message From: Donald Woods <[EMAIL PROTECTED]> To: user@geronimo.apache.org Sent: Friday, 5 October, 2007 7:26:41 PM Subject: Re: XML and EXSLT support disappeared from Geronimo 2.0.1! Geronimo 2.0.x only includes xercesImpl-2.8.1.jar. For Xalan support, you can use the IBM 1.5.0 SDK which includes IBM's XML4J updated versions of Xerces and Xalan. If you are using the Sun 1.5.0 SDK, you'll need to include Xalan in your app or install it into the server's repo, as Sun renamed the packages in their distro -Donald Xh wrote: > Hi All! > > I'm having problems with running XSLT stylesheets that I was successfully > using with previous Geronimo 1.1.0. > > I have (example use of http://exslt.org/sets): > > > xmlns:set="http://exslt.org/sets";; exclude-result-prefixes="set" > version="2.0"> > > > href="/stuff/installs/IBM/WASCE2/var/dataweaver/xsl/utils/main.xsl" /> > . > > > > > > > select="set:distinct(/dw/contents/examinationTypes/examinationType/@idRange)"> > ... > > > > > > Above stylesheet was working with Geronimo 1.1.0 and WAS-CE 1.0.0. > > Maybe some XML libraries were changed, or are not shipped with Geronimo 2.0.1 > any more? > > thanks and best regards > Łukasz > > > > > > > > ___ > Yahoo! Answers - Got a question? Someone out there knows the answer. Try it > now. > http://uk.answers.yahoo.com/ > > ___ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html
XML and EXSLT support disappeared from Geronimo 2.0.1!
Hi All! I'm having problems with running XSLT stylesheets that I was successfully using with previous Geronimo 1.1.0. I have (example use of http://exslt.org/sets): xmlns:set="http://exslt.org/sets"; exclude-result-prefixes="set" version="2.0"> . ... Above stylesheet was working with Geronimo 1.1.0 and WAS-CE 1.0.0. Maybe some XML libraries were changed, or are not shipped with Geronimo 2.0.1 any more? thanks and best regards Łukasz ___ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/
AspectJ and Geronimo 2.0.1
Hi All! Has anyone managed to install successfully WAR or EAR with AspectJ support? Any hints are most welcome! thanks and regards Łukasz ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
Re: G2.0.1 @Stateless and @Stateful name parameter ignored?
Hi David! There were no errors during deployment. Application deploys and starts. Bean does not work. Without name attribute, everything is OK. best regards Łukasz - Original Message From: David Blevins <[EMAIL PROTECTED]> To: user@geronimo.apache.org Sent: Saturday, 8 September, 2007 12:44:42 AM Subject: Re: G2.0.1 @Stateless and @Stateful name parameter ignored? On Sep 7, 2007, at 1:14 PM, Xh wrote: > Hi All! > > I've encountered a strange thing. > I've noticed that all @State*(name="Name") definitions are ignored > by Geronimo 2.0.1. > Application deploys successfully, but in JNDI Viewer there are no > session beans. > > Simple: > > @Stateless(name = "ModuleProxy") > public class ModuleProxyBean implements ModuleProxy { > ... > } > > doesn't not work, but this: > > @Stateless > public class ModuleProxyBean implements ModuleProxy { > ... > } > > works. > > After removing name definition and redeploying application I can > see in JNDI Viewer my bean. > Also, I can look it up in JNDI with this string (note the full > class name ModuleProxyBean): > DataWeaver2EnterpriseProxyModule.jar/ModuleProxyBean/ > org.xh.dataweaver.interfaces.ejb.ModuleProxy > > Has somebody else experienced this? Is it normal Geronimo behaviour? > The 'name' attribute of @Stateless, @Stateful, and @MessageDriven is definitely used in the code and tested for. Maybe there's another issue going on. When you say there are no session beans in the JNDI Viewer, that would seem to imply a different issue such as the bean not getting deployed at all. -David ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
G2.0.1 @Stateless and @Stateful name parameter ignored?
Hi All! I've encountered a strange thing. I've noticed that all @State*(name="Name") definitions are ignored by Geronimo 2.0.1. Application deploys successfully, but in JNDI Viewer there are no session beans. Simple: @Stateless(name = "ModuleProxy") public class ModuleProxyBean implements ModuleProxy { ... } doesn't not work, but this: @Stateless public class ModuleProxyBean implements ModuleProxy { ... } works. After removing name definition and redeploying application I can see in JNDI Viewer my bean. Also, I can look it up in JNDI with this string (note the full class name ModuleProxyBean): DataWeaver2EnterpriseProxyModule.jar/ModuleProxyBean/org.xh.dataweaver.interfaces.ejb.ModuleProxy Has somebody else experienced this? Is it normal Geronimo behaviour? best regards Łukasz ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
Re: G2.0.1 geronimo-javamail dependency is not loading?
Hi Rick! --- One quick solution would be to drop the javamail jar into the JVM ext directory. --- Yes, it solves the problem, but it's rather inelegant. I was just testing the Log4j in Geronimo 2.0.1 for Waldo and only by the way among other appenders I have configured SMTPAppender in my log4j.xml file ;) That's how I have unfortunately encountered this issue. thanks and best regards Łukasz ___ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html
Re: G2.0.1 geronimo-javamail dependency is not loading?
Hi Kevan, --- One possibility is the the activation spec (e.g. org/apache/geronimo/ specs/geronimo-activation_1.1_spec/1.0/geronimo- activation_1.1_spec-1.0.jar), but that's not making a lot of sense, ATM... --- nope, I've tried it. --- What JRE are you running on? Can you share your test app/deployment plans with us? Alternatively, you'll need to debug the class loading to figure out what isn't being found... --- Linux Ubuntu $ java -version java version "1.6.0_02" Java(TM) SE Runtime Environment (build 1.6.0_02-b05) Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing) And now my deployment files: geronimo-web.xml: xmlns:naming="http://geronimo.apache.org/xml/ns/naming";> org.xh Log4jTest org.apache.geronimo.configs javamail 2.0.1 car org.apache.geronimo.javamail geronimo-javamail_1.4_mail 1.2 jar /Log4jTest web.xml: 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/web-app_2_4.xsd";> Log4jTest index.jsp Test Test org.xh.log4jtest.Test Test /Test my servlet: package org.xh.log4jtest; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Level; import org.apache.log4j.Logger; import org.apache.log4j.net.SMTPAppender; public class Test extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet { static final long serialVersionUID = 1L; public void init() { // throws NoDef error! SMTPAppender newAppender = new SMTPAppender(); // any of the below instructions will be executed newAppender.setSMTPDebug(true); // values removed newAppender.setSMTPHost(""); newAppender.setSMTPUsername(""); newAppender.setSMTPPassword(""); newAppender.setFrom(""); newAppender.setTo(""); newAppender.setSubject("Error!"); newAppender.setThreshold(Level.INFO); newAppender.setLayout(new org.apache.log4j.SimpleLayout()); Logger.getRootLogger().addAppender(newAppender); } } I have removed Log4j and its DOMConfigurator, because it raise the same error. best regards Łukasz ___ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html
Re: G2.0.1 geronimo-javamail dependency is not loading?
- Original Message From: Rick McGuire <[EMAIL PROTECTED]> To: user@geronimo.apache.org Sent: Thursday, 6 September, 2007 1:15:49 PM Subject: Re: G2.0.1 geronimo-javamail dependency is not loading? > Could you post a stack trace for this new failure? [2007-09-06 15:45:43,881] ERROR org.apache.catalina.core.ApplicationContext.log(ApplicationContext.java:660) StandardWrapper.Throwable java.lang.NoClassDefFoundError: javax/mail/Multipart at org.xh.log4jtest.Test.init(Test.java:59) at javax.servlet.GenericServlet.init(GenericServlet.java:215) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1053) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:780) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56) at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:351) at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) [2007-09-06 15:45:43,881] ERROR org.apache.catalina.core.ApplicationContext.log(ApplicationContext.java:660) StandardWrapper.Throwable java.lang.NoClassDefFoundError: javax/mail/Multipart at org.xh.log4jtest.Test.init(Test.java:59) at javax.servlet.GenericServlet.init(GenericServlet.java:215) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1053) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:780) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56) at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:351) at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) [2007-09-06 15:45:43,884] ERROR org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:147) Allocate exception for servlet Test java.lang.NoClassDefFoundError: javax/mail/Multipart at org.xh.log4jtest.Test.init(Test.java:59) at javax.servlet.GenericServlet.init(GenericServlet.java:215) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1053) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:780) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56) at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:351) at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache
Re: G2.0.1 geronimo-javamail dependency is not loading?
Hi David! Now I use both org.apache.geronimo.configs/javamail and org.apache.geronimo.javamail/geronimo-javamail_1.4_mail dependencies. I did just like You asked, I've configured my SMTPAppender programmatically (in servlet's init method): SMTPAppender newAppender = new SMTPAppender(); newAppender.setSMTPDebug(true); newAppender.setSMTPHost("HOST.pl"); newAppender.setSMTPUsername("USERXX"); newAppender.setSMTPPassword(""); newAppender.setFrom("[EMAIL PROTECTED]"); newAppender.setTo("[EMAIL PROTECTED]"); newAppender.setSubject("Test!"); newAppender.setThreshold(Level.INFO); newAppender.setLayout(new org.apache.log4j.SimpleLayout()); Logger.getRootLogger().addAppender(newAppender); The result is still the same: java.lang.NoClassDefFoundError: javax/mail/Multipart org.xh.log4jtest.Test.init(Test.java:25) what should I do now? best regards Łukasz - Original Message From: David Jencks <[EMAIL PROTECTED]> To: user@geronimo.apache.org Sent: Thursday, 6 September, 2007 2:25:03 AM Subject: Re: G2.0.1 geronimo-javamail dependency is not loading? 1. you should use: org.apache.geronimo.configs javamail car to minimize the chances of ClassCastException due to loading javamail in the wrong classloader 2. this still won't work unless log4j is using the public static Class forName(String name, boolean initialize, ClassLoader loader) method with the ThreadContextClassLoader. Can you construct the appender yourself in your servlet init method, where you _can_ access javamail classes via the above dependency, and register it with log4j in code? thanks david jencks On Sep 5, 2007, at 4:22 PM, Xh wrote: > Hi All! > > I have very strange problem. > > In my geronimo-web.xml I wrote: > > > repository.org.apache.geronimo.javamail groupId> > geronimo-javamail_1.4_mail > 1.2 > jar > > > but when SMTPAppender for Log4j is being loaded I get: > > java.lang.NoClassDefFoundError: javax/mail/Multipart > java.lang.Class.getDeclaredConstructors0(Native Method) > java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) > java.lang.Class.getConstructor0(Class.java:2699) > java.lang.Class.newInstance0(Class.java:326) > java.lang.Class.newInstance(Class.java:308) > org.apache.log4j.xml.DOMConfigurator.parseAppender > (DOMConfigurator.java:174) > org.apache.log4j.xml.DOMConfigurator.findAppenderByName > (DOMConfigurator.java:150) > org.apache.log4j.xml.DOMConfigurator.findAppenderByReference > (DOMConfigurator.java:163) > org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement > (DOMConfigurator.java:425) > org.apache.log4j.xml.DOMConfigurator.parseRoot > (DOMConfigurator.java:394) > org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:829) > org.apache.log4j.xml.DOMConfigurator.doConfigure > (DOMConfigurator.java:712) > org.apache.log4j.xml.DOMConfigurator.doConfigure > (DOMConfigurator.java:604) > org.apache.log4j.xml.DOMConfigurator.configure > (DOMConfigurator.java:733) > org.xh.log4jtest.Test.init(Test.java:21) > > I've looked the repository/org/apache/geronimo/javamail/geronimo- > javamail_1.4_mail/1.2/geronimo-javamail_1.4_mail-1.2.jar file > and I can see that there is javax/mail/Multipart.class file. > > Is geronimo not loading my dependency or is it something else? > > best regards > Łukasz > > > > > ___ > Yahoo! Answers - Got a question? Someone out there knows the > answer. Try it > now. > http://uk.answers.yahoo.com/ ___ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html
G2.0.1 geronimo-javamail dependency is not loading?
Hi All! I have very strange problem. In my geronimo-web.xml I wrote: repository.org.apache.geronimo.javamail geronimo-javamail_1.4_mail 1.2 jar but when SMTPAppender for Log4j is being loaded I get: java.lang.NoClassDefFoundError: javax/mail/Multipart java.lang.Class.getDeclaredConstructors0(Native Method) java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) java.lang.Class.getConstructor0(Class.java:2699) java.lang.Class.newInstance0(Class.java:326) java.lang.Class.newInstance(Class.java:308) org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:174) org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:150) org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:163) org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:425) org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:394) org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:829) org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712) org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:604) org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:733) org.xh.log4jtest.Test.init(Test.java:21) I've looked the repository/org/apache/geronimo/javamail/geronimo-javamail_1.4_mail/1.2/geronimo-javamail_1.4_mail-1.2.jar file and I can see that there is javax/mail/Multipart.class file. Is geronimo not loading my dependency or is it something else? best regards Łukasz ___ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/
Re: Logging in Geronimo 2.0.1
Hi Waldo! Problem solved ;) I've written simple servlet and deployed it on Geronimo 2.0.1. The solution is to use servlet's init method. Check this out. web.xml: Test Test org.xh.log4jtest.Test log4j-init-file WEB-INF/classes/log4j.xml and the org.xh.log4jtest.Test servlet's init method: public void init() { String prefix = getServletContext().getRealPath("/"); String file = getInitParameter("log4j-init-file"); if (file != null) { DOMConfigurator.configure(prefix + file); } } now it works in Geronimo 2.0.1 best regards Łukasz - Original Message From: Waldo Ramírez Montaño <[EMAIL PROTECTED]> To: user@geronimo.apache.org Sent: Wednesday, 5 September, 2007 7:51:10 PM Subject: Re: Logging in Geronimo 2.0.1 Thanks for your answer, But that's the problem :( Previously, an app in Geronimo 1.1.1 worked ok and it creates the log as you described, but in Geronimo 2.0.1... the same config didn't work!!! Even I've tested inverse classloading in Geronimo's deployment descriptor and the same. I'll compare your xml with mine; thanks again. Waldo Xh wrote: > > Hi, > > You can use Your own Log4j configuration in your applications (to tell the > truth I've only used it in WAR). > > Below is my configuration that works with WAS-CE (based on Geronimo 1.1). > It should also work on G2.0.1 (I have G2.0.1, but I haven't migrated the > project, yet). > > Place Your own log4j.xml and log4j.dtd in e.g. WEB-INF/classes directory > (it must be on the class path). Add log4j librarry to Your project > WEB-INF/lib. > > To load new instance of Log4J Logger and all other classes, You need to > inform Geronimo that > You want Your own classes to be loaded, in deployment file e.g. > geronimo-web.ml in add this: > > > org.apache.log4j > > > Geronimo will load Your classes from org.apache.log4j package (including > sub-packages). > > My log4j.xml looks sth like this: > > > > > > > > > > > > > > > > > > > > > > > > > class="org.apache.log4j.DailyRollingFileAppender"> > > > > > > > > > > > > > > > > > And now all logs of Your application will be logged into: > > ${org.apache.geronimo.server.dir}/var/log/Log4jTest.log > > It works perfect ;) > > best regards > Łukasz > > - Original Message > From: Waldo Ramírez Montaño <[EMAIL PROTECTED]> > To: user@geronimo.apache.org > Sent: Monday, 3 September, 2007 8:14:09 PM > Subject: Logging in Geronimo 2.0.1 > > > Hello, > > Is it possible that deployments (EJB's, WAR's, EAR's) have their own > log-files in Geronimo 2.0.1? > > Thanks again, > Waldo > > -- > View this message in context: > http://www.nabble.com/Logging-in-Geronimo-2.0.1-tf4373488s134.html#a12465934 > Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. > > > > > > > ___ > Want ideas for reducing your carbon footprint? Visit Yahoo! For Good > http://uk.promotions.yahoo.com/forgood/environment.html > > -- View this message in context: http://www.nabble.com/Logging-in-Geronimo-2.0.1-tf4373488s134.html#a12507419 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. ___ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/
Re: Logging in Geronimo 2.0.1
Hi, You can use Your own Log4j configuration in your applications (to tell the truth I've only used it in WAR). Below is my configuration that works with WAS-CE (based on Geronimo 1.1). It should also work on G2.0.1 (I have G2.0.1, but I haven't migrated the project, yet). Place Your own log4j.xml and log4j.dtd in e.g. WEB-INF/classes directory (it must be on the class path). Add log4j librarry to Your project WEB-INF/lib. To load new instance of Log4J Logger and all other classes, You need to inform Geronimo that You want Your own classes to be loaded, in deployment file e.g. geronimo-web.ml in add this: org.apache.log4j Geronimo will load Your classes from org.apache.log4j package (including sub-packages). My log4j.xml looks sth like this: And now all logs of Your application will be logged into: ${org.apache.geronimo.server.dir}/var/log/Log4jTest.log It works perfect ;) best regards Łukasz - Original Message From: Waldo Ramírez Montaño <[EMAIL PROTECTED]> To: user@geronimo.apache.org Sent: Monday, 3 September, 2007 8:14:09 PM Subject: Logging in Geronimo 2.0.1 Hello, Is it possible that deployments (EJB's, WAR's, EAR's) have their own log-files in Geronimo 2.0.1? Thanks again, Waldo -- View this message in context: http://www.nabble.com/Logging-in-Geronimo-2.0.1-tf4373488s134.html#a12465934 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. ___ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html
Geronimo 2.0.1 and entity bean problem
Hi All! I'm trying to create my first ejb3 entity bean in Geronimo 2.0.1. I base on this wiki: http://cwiki.apache.org/GMOxDOC20/very-simple-entity-ejb-example.html I've created simple WebModule and annoted it, just like this: @Entity @Table(name="dw_module",schema="dw") public class WebModule implements Serializable { ... } Acording to the above wiki openejb-jar.xml is only to define module and artifactId, so do mine. In addition, I have META-INF/persistance.xml that looks like this: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="1.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd";> org.apache.openjpa.persistence.PersistenceProviderImpl org.xh.dataweaver2.web.entity.WebModule Later on, in my Servlet I have: // thread-safe, class level context @PersistenceContext(unitName = "WebModulePU", name = "persistence/em") public class DispatcherServlet extends HttpServlet implements Servlet { ... EntityManager em = null; try { em = (EntityManager) (new InitialContext()) .lookup("java:comp/env/persistence/em"); } catch (NamingException e) { e.printStackTrace(); } ... } The thing is that my application deploys and starts without any errors. But I cannot see my entity bean in the JNDI Viewer; as a result, when I access my Servlet I keep getting: javax.naming.NotContextException: persistence/em Can some one provide an example of working entity bean and its persistance.xml? thanks and best regards Łukasz ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
Re: Geronimo 2.0.1 first startup and GBean is now in the FAILED state
Hi Kevan! Thanks for You reply it really helped. Now I can run both WAS-CE 1.1 and G2.0.1 with Java 6! best regards Łukasz ___ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html
Re: Geronimo 2.0.1 first startup and GBean is now in the FAILED state
Hi! I must say that I'm confused... Why G2.0.1 needs old Java 5? I have WAS-CE 1.1 that bases on G1.1 and it works fine with Java 6. tell me I'm dreaming... best regards Łukasz - Original Message From: Vamsavardhana Reddy <[EMAIL PROTECTED]> To: user@geronimo.apache.org Sent: Tuesday, 4 September, 2007 3:56:11 PM Subject: Re: Geronimo 2.0.1 first startup and GBean is now in the FAILED state You need to use 1.5 JRE. Vamsi On 9/4/07, Xh <[EMAIL PROTECTED]> wrote: Hi Kevan! These are my settings: $ echo $JAVA_HOME /usr/local/java $ echo $JRE_HOME /usr/local/java Directory /usr/local/java exists $ sudo update-alternatives --config java There are 3 alternatives which provide `java'. SelectionAlternative --- 1/usr/bin/gij-wrapper-4.1 +2/usr/lib/jvm/java-gcj/jre/bin/java * 3/usr/local/java/bin/java Press enter to keep the default[*], or type selection number: $ java -version java version "1.6.0_02" Java(TM) SE Runtime Environment (build 1.6.0_02-b05) Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing) same as: $ /usr/local/java/bin/java -version java version "1.6.0_02" Java(TM) SE Runtime Environment (build 1.6.0_02-b05) Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing) any other idea? best regards Łukasz - Original Message From: Kevan Miller <[EMAIL PROTECTED]> To: " user@geronimo.apache.org" Sent: Tuesday, 4 September, 2007 2:36:07 PM Subject: Re: Geronimo 2.0.1 first startup and GBean is now in the FAILED state Check your JRE_HOME or JAVA_HOME setting. One of them is not set properly... --kevan Sent from my iPhone On Sep 4, 2007, at 5:27 AM, Xh <[EMAIL PROTECTED]> wrote: Hi! I have Ubuntu 6.06 LTS with 2.6.15 kernel It's for sure not the long path problem, I have my Geronimo in: /wazne/dist/geronimo2/ To be 100% sure it's not the long path issue, I've tried the /wazne/dist/g2 directory with the same result. G 2.0.1 fails at startup! any other idea? thanks and best regards Łukasz - Original Message From: Vamsavardhana Reddy < [EMAIL PROTECTED]> To: user@geronimo.apache.org Sent: Monday, 3 September, 2007 5:37:27 PM Subject: Re: Geronimo 2.0.1 first startup and GBean is now in the FAILED state What is your OS? If it is Windows, you may have hit the "long-path" problem. Try extracting the archive to the root of a drive, for e.g. C:\, and then start the server. Vamsi On 9/3/07, Xh < [EMAIL PROTECTED]> wrote: Hi All! I have just downloaded the newest G2.0.1 I unzipped and run it, but I get webconsole-tomcat "GBean is now in the FAILED state". I've tried to run it few times, but I keep getting this error. This is very strange as far as the only thing I did was unzip downloaded archive. Any ideas what may be wrong? thanks and best regards Łukasz the content of var/log/geronimo.out is as follows: Booting Geronimo Kernel (in Java 1.6.0_02)... Module 1/30 org.apache.geronimo.configs/rmi-naming/2.0.1/car started in 1.228s Module 2/30 org.apache.geronimo.configs/j2ee-server/2.0.1/car started in .595s Module 3/30 org.apache.geronimo.configs/transaction/2.0.1/car started in 1.685s Module 4/30 org.apache.geronimo.configs/j2ee-security/2.0.1/car started in .000s Module 5/30 org.apache.geronimo.configs /openejb/2.0.1/car started in 20.113s Module 6/30 org.apache.geronimo.configs/system-database/2.0.1/car started in .000s Module 7/30 org.apache.geronimo.configs/activemq-broker/2.0.1/car started in .000s Module 8/30 org.apache.geronimo.configs/activemq-ra/2.0.1/car started in .000s Module 9/30 org.apache.geronimo.configs/jasper/2.0.1/car started in .004s Module 10/30 org.apache.geronimo.configs /myfaces/2.0.1/car started in .039s Module 11/30 org.apache.geronimo.configs/tomcat6/2.0.1/car 17:12:55,775 ERROR [[/]] "Restricted listeners property file not found started in 4.094s Module 12/30 org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.1/car started in 1.598s Module 13/30 org.apache.geronimo.configs/j2ee-deployer/2.0.1/car started in .749s Module 14/30 org.apache.geronimo.configs/connector-deployer/2.0.1/car started in .419s Module 15/30 org.apache.geronimo.configs/persistence-jpa10-deployer/2.0.1/car started in .251s Module 16/30 org.apache.geronimo.configs /openejb-deployer/2.0.1/car started in .264s Module 17/30 org.apache.geronimo.configs/client-deployer/2.0.1/car started in .615s Module 18/30 org.apache.geronimo.configs/axis2-deployer/2.0.1/car started in .422s Module 19/30
Re: Geronimo 2.0.1 first startup and GBean is now in the FAILED state
Hi! I forgot to add that, on my Ubuntu, I also have WAS-CE 1.1 and it works fine. The problem is with G2.0.1. thanks best regards Łukasz - Original Message From: Xh <[EMAIL PROTECTED]> To: user@geronimo.apache.org Sent: Tuesday, 4 September, 2007 3:51:29 PM Subject: Re: Geronimo 2.0.1 first startup and GBean is now in the FAILED state Hi Kevan! These are my settings: $ echo $JAVA_HOME /usr/local/java $ echo $JRE_HOME /usr/local/java Directory /usr/local/java exists $ sudo update-alternatives --config java There are 3 alternatives which provide `java'. SelectionAlternative --- 1/usr/bin/gij-wrapper-4.1 +2/usr/lib/jvm/java-gcj/jre/bin/java * 3/usr/local/java/bin/java Press enter to keep the default[*], or type selection number: $ java -version java version "1.6.0_02" Java(TM) SE Runtime Environment (build 1.6.0_02-b05) Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing) same as: $ /usr/local/java/bin/java -version java version "1.6.0_02" Java(TM) SE Runtime Environment (build 1.6.0_02-b05) Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing) any other idea? best regards Łukasz - Original Message From: Kevan Miller <[EMAIL PROTECTED]> To: "user@geronimo.apache.org" Sent: Tuesday, 4 September, 2007 2:36:07 PM Subject: Re: Geronimo 2.0.1 first startup and GBean is now in the FAILED state Check your JRE_HOME or JAVA_HOME setting. One of them is not set properly... --kevan Sent from my iPhone On Sep 4, 2007, at 5:27 AM, Xh <[EMAIL PROTECTED]> wrote: Hi! I have Ubuntu 6.06 LTS with 2.6.15 kernel It's for sure not the long path problem, I have my Geronimo in: /wazne/dist/geronimo2/ To be 100% sure it's not the long path issue, I've tried the /wazne/dist/g2 directory with the same result. G 2.0.1 fails at startup! any other idea? thanks and best regards Łukasz - Original Message From: Vamsavardhana Reddy <[EMAIL PROTECTED]> To: user@geronimo.apache.org Sent: Monday, 3 September, 2007 5:37:27 PM Subject: Re: Geronimo 2.0.1 first startup and GBean is now in the FAILED state What is your OS? If it is Windows, you may have hit the "long-path" problem. Try extracting the archive to the root of a drive, for e.g. C:\, and then start the server. Vamsi On 9/3/07, Xh <[EMAIL PROTECTED]> wrote: Hi All! I have just downloaded the newest G2.0.1 I unzipped and run it, but I get webconsole-tomcat "GBean is now in the FAILED state". I've tried to run it few times, but I keep getting this error. This is very strange as far as the only thing I did was unzip downloaded archive. Any ideas what may be wrong? thanks and best regards Łukasz the content of var/log/geronimo.out is as follows: Booting Geronimo Kernel (in Java 1.6.0_02)... Module 1/30 org.apache.geronimo.configs/rmi-naming/2.0.1/car started in 1.228s Module 2/30 org.apache.geronimo.configs/j2ee-server/2.0.1/car started in .595s Module 3/30 org.apache.geronimo.configs/transaction/2.0.1/car started in 1.685s Module 4/30 org.apache.geronimo.configs/j2ee-security/2.0.1/car started in .000s Module 5/30 org.apache.geronimo.configs /openejb/2.0.1/carstarted in 20.113s Module 6/30 org.apache.geronimo.configs/system-database/2.0.1/car started in .000s Module 7/30 org.apache.geronimo.configs/activemq-broker/2.0.1/car started in .000s Module 8/30 org.apache.geronimo.configs/activemq-ra/2.0.1/car started in .000s Module 9/30 org.apache.geronimo.configs/jasper/2.0.1/car started in .004s Module 10/30 org.apache.geronimo.configs /myfaces/2.0.1/carstarted in .039s Module 11/30 org.apache.geronimo.configs/tomcat6/2.0.1/car 17:12:55,775 ERROR [[/]] "Restricted listeners property file not found started in 4.094s Module 12/30 org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.1/car started in 1.598s Module 13/30 org.apache.geronimo.configs/j2ee-deployer/2.0.1/car started in .749s Module 14/30 org.apache.geronimo.configs/connector-deployer/2.0.1/car started in .419s Module 15/30 org.apache.geronimo.configs/persistence-jpa10-deployer/2.0.1/car started in .251s Module 16/30 org.apache.geronimo.configs /openejb-deployer/2.0.1/car started in .264s Module 17/30 org.apache.geronimo.configs/client-deployer/2.0.1/car started in .615s Module 18/30 org.apache.geronimo.configs/axis2-deployer/2.0.1/car started in .422s Module 19/30 org.apache.geronimo.configs/axis-deployer/2.0.1/car started in 2.677s Module 20/30 org.apache.geronimo.configs/javamail/2.0.1/car starte
Re: Geronimo 2.0.1 first startup and GBean is now in the FAILED state
Hi Kevan! These are my settings: $ echo $JAVA_HOME /usr/local/java $ echo $JRE_HOME /usr/local/java Directory /usr/local/java exists $ sudo update-alternatives --config java There are 3 alternatives which provide `java'. SelectionAlternative --- 1/usr/bin/gij-wrapper-4.1 +2/usr/lib/jvm/java-gcj/jre/bin/java * 3/usr/local/java/bin/java Press enter to keep the default[*], or type selection number: $ java -version java version "1.6.0_02" Java(TM) SE Runtime Environment (build 1.6.0_02-b05) Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing) same as: $ /usr/local/java/bin/java -version java version "1.6.0_02" Java(TM) SE Runtime Environment (build 1.6.0_02-b05) Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing) any other idea? best regards Łukasz - Original Message From: Kevan Miller <[EMAIL PROTECTED]> To: "user@geronimo.apache.org" Sent: Tuesday, 4 September, 2007 2:36:07 PM Subject: Re: Geronimo 2.0.1 first startup and GBean is now in the FAILED state Check your JRE_HOME or JAVA_HOME setting. One of them is not set properly... --kevan Sent from my iPhone On Sep 4, 2007, at 5:27 AM, Xh <[EMAIL PROTECTED]> wrote: Hi! I have Ubuntu 6.06 LTS with 2.6.15 kernel It's for sure not the long path problem, I have my Geronimo in: /wazne/dist/geronimo2/ To be 100% sure it's not the long path issue, I've tried the /wazne/dist/g2 directory with the same result. G 2.0.1 fails at startup! any other idea? thanks and best regards Łukasz - Original Message From: Vamsavardhana Reddy <[EMAIL PROTECTED]> To: user@geronimo.apache.org Sent: Monday, 3 September, 2007 5:37:27 PM Subject: Re: Geronimo 2.0.1 first startup and GBean is now in the FAILED state What is your OS? If it is Windows, you may have hit the "long-path" problem. Try extracting the archive to the root of a drive, for e.g. C:\, and then start the server. Vamsi On 9/3/07, Xh <[EMAIL PROTECTED]> wrote: Hi All! I have just downloaded the newest G2.0.1 I unzipped and run it, but I get webconsole-tomcat "GBean is now in the FAILED state". I've tried to run it few times, but I keep getting this error. This is very strange as far as the only thing I did was unzip downloaded archive. Any ideas what may be wrong? thanks and best regards Łukasz the content of var/log/geronimo.out is as follows: Booting Geronimo Kernel (in Java 1.6.0_02)... Module 1/30 org.apache.geronimo.configs/rmi-naming/2.0.1/car started in 1.228s Module 2/30 org.apache.geronimo.configs/j2ee-server/2.0.1/car started in .595s Module 3/30 org.apache.geronimo.configs/transaction/2.0.1/car started in 1.685s Module 4/30 org.apache.geronimo.configs/j2ee-security/2.0.1/car started in .000s Module 5/30 org.apache.geronimo.configs /openejb/2.0.1/carstarted in 20.113s Module 6/30 org.apache.geronimo.configs/system-database/2.0.1/car started in .000s Module 7/30 org.apache.geronimo.configs/activemq-broker/2.0.1/car started in .000s Module 8/30 org.apache.geronimo.configs/activemq-ra/2.0.1/car started in .000s Module 9/30 org.apache.geronimo.configs/jasper/2.0.1/car started in .004s Module 10/30 org.apache.geronimo.configs /myfaces/2.0.1/carstarted in .039s Module 11/30 org.apache.geronimo.configs/tomcat6/2.0.1/car 17:12:55,775 ERROR [[/]] "Restricted listeners property file not found started in 4.094s Module 12/30 org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.1/car started in 1.598s Module 13/30 org.apache.geronimo.configs/j2ee-deployer/2.0.1/car started in .749s Module 14/30 org.apache.geronimo.configs/connector-deployer/2.0.1/car started in .419s Module 15/30 org.apache.geronimo.configs/persistence-jpa10-deployer/2.0.1/car started in .251s Module 16/30 org.apache.geronimo.configs /openejb-deployer/2.0.1/car started in .264s Module 17/30 org.apache.geronimo.configs/client-deployer/2.0.1/car started in .615s Module 18/30 org.apache.geronimo.configs/axis2-deployer/2.0.1/car started in .422s Module 19/30 org.apache.geronimo.configs/axis-deployer/2.0.1/car started in 2.677s Module 20/30 org.apache.geronimo.configs/javamail/2.0.1/car started in .180s Module 21/30 org.apache.geronimo.configs /sharedlib/2.0.1/car started in .029s Module 22/30 org.apache.geronimo.configs/tomcat6-deployer/2.0.1/car started in .229s Module 23/30 org.apache.geronimo.configs/jasper-deployer/2.0.1/car started in .092s Module 24/30 org.apache.geronimo.configs/myfaces-deploy
Re: Geronimo 2.0.1 first startup and GBean is now in the FAILED state
Hi! I have Ubuntu 6.06 LTS with 2.6.15 kernel It's for sure not the long path problem, I have my Geronimo in: /wazne/dist/geronimo2/ To be 100% sure it's not the long path issue, I've tried the /wazne/dist/g2 directory with the same result. G 2.0.1 fails at startup! any other idea? thanks and best regards Łukasz - Original Message From: Vamsavardhana Reddy <[EMAIL PROTECTED]> To: user@geronimo.apache.org Sent: Monday, 3 September, 2007 5:37:27 PM Subject: Re: Geronimo 2.0.1 first startup and GBean is now in the FAILED state What is your OS? If it is Windows, you may have hit the "long-path" problem. Try extracting the archive to the root of a drive, for e.g. C:\, and then start the server. Vamsi On 9/3/07, Xh <[EMAIL PROTECTED]> wrote: Hi All! I have just downloaded the newest G2.0.1 I unzipped and run it, but I get webconsole-tomcat "GBean is now in the FAILED state". I've tried to run it few times, but I keep getting this error. This is very strange as far as the only thing I did was unzip downloaded archive. Any ideas what may be wrong? thanks and best regards Łukasz the content of var/log/geronimo.out is as follows: Booting Geronimo Kernel (in Java 1.6.0_02)... Module 1/30 org.apache.geronimo.configs/rmi-naming/2.0.1/car started in 1.228s Module 2/30 org.apache.geronimo.configs/j2ee-server/2.0.1/car started in .595s Module 3/30 org.apache.geronimo.configs/transaction/2.0.1/car started in 1.685s Module 4/30 org.apache.geronimo.configs/j2ee-security/2.0.1/car started in .000s Module 5/30 org.apache.geronimo.configs /openejb/2.0.1/carstarted in 20.113s Module 6/30 org.apache.geronimo.configs/system-database/2.0.1/car started in .000s Module 7/30 org.apache.geronimo.configs/activemq-broker/2.0.1/car started in .000s Module 8/30 org.apache.geronimo.configs/activemq-ra/2.0.1/car started in .000s Module 9/30 org.apache.geronimo.configs/jasper/2.0.1/car started in .004s Module 10/30 org.apache.geronimo.configs /myfaces/2.0.1/carstarted in .039s Module 11/30 org.apache.geronimo.configs/tomcat6/2.0.1/car 17:12:55,775 ERROR [[/]] "Restricted listeners property file not found started in 4.094s Module 12/30 org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.1/car started in 1.598s Module 13/30 org.apache.geronimo.configs/j2ee-deployer/2.0.1/car started in .749s Module 14/30 org.apache.geronimo.configs/connector-deployer/2.0.1/car started in .419s Module 15/30 org.apache.geronimo.configs/persistence-jpa10-deployer/2.0.1/car started in .251s Module 16/30 org.apache.geronimo.configs /openejb-deployer/2.0.1/car started in .264s Module 17/30 org.apache.geronimo.configs/client-deployer/2.0.1/car started in .615s Module 18/30 org.apache.geronimo.configs/axis2-deployer/2.0.1/car started in .422s Module 19/30 org.apache.geronimo.configs/axis-deployer/2.0.1/car started in 2.677s Module 20/30 org.apache.geronimo.configs/javamail/2.0.1/car started in .180s Module 21/30 org.apache.geronimo.configs /sharedlib/2.0.1/car started in .029s Module 22/30 org.apache.geronimo.configs/tomcat6-deployer/2.0.1/car started in .229s Module 23/30 org.apache.geronimo.configs/jasper-deployer/2.0.1/car started in .092s Module 24/30 org.apache.geronimo.configs/myfaces-deployer/2.0.1/car started in .097s Module 25/30 org.apache.geronimo.configs/welcome-tomcat/2.0.1/car started in .571s Module 26/30 org.apache.geronimo.configs /dojo-tomcat/2.0.1/carstarted in .293s Module 27/30 org.apache.geronimo.configs/webconsole-tomcat/2.0.1/car 17:13:10,916 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName=" org.apache.geronimo.configs/webconsole-tomcat/2.0.1/car?J2EEApplication=org.apache.geronimo.configs/webconsole-tomcat/2.0.1/car,j2eeType=JACCManager,name=JACCManager" java.lang.ExceptionInInitializerError at org.apache.geronimo.security.jacc.ApplicationPolicyConfigurationManager.(ApplicationPolicyConfigurationManager.java:109) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:946) at org.apache.geronimo.gbean.runtime.GBeanInst
Geronimo 2.0.1 first startup and GBean is now in the FAILED state
Hi All! I have just downloaded the newest G2.0.1 I unzipped and run it, but I get webconsole-tomcat "GBean is now in the FAILED state". I've tried to run it few times, but I keep getting this error. This is very strange as far as the only thing I did was unzip downloaded archive. Any ideas what may be wrong? thanks and best regards Łukasz the content of var/log/geronimo.out is as follows: Booting Geronimo Kernel (in Java 1.6.0_02)... Module 1/30 org.apache.geronimo.configs/rmi-naming/2.0.1/car started in 1.228s Module 2/30 org.apache.geronimo.configs/j2ee-server/2.0.1/car started in .595s Module 3/30 org.apache.geronimo.configs/transaction/2.0.1/car started in 1.685s Module 4/30 org.apache.geronimo.configs/j2ee-security/2.0.1/car started in .000s Module 5/30 org.apache.geronimo.configs/openejb/2.0.1/car started in 20.113s Module 6/30 org.apache.geronimo.configs/system-database/2.0.1/car started in .000s Module 7/30 org.apache.geronimo.configs/activemq-broker/2.0.1/car started in .000s Module 8/30 org.apache.geronimo.configs/activemq-ra/2.0.1/car started in .000s Module 9/30 org.apache.geronimo.configs/jasper/2.0.1/car started in .004s Module 10/30 org.apache.geronimo.configs/myfaces/2.0.1/car started in .039s Module 11/30 org.apache.geronimo.configs/tomcat6/2.0.1/car 17:12:55,775 ERROR [[/]] "Restricted listeners property file not found started in 4.094s Module 12/30 org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.1/car started in 1.598s Module 13/30 org.apache.geronimo.configs/j2ee-deployer/2.0.1/car started in .749s Module 14/30 org.apache.geronimo.configs/connector-deployer/2.0.1/car started in .419s Module 15/30 org.apache.geronimo.configs/persistence-jpa10-deployer/2.0.1/car started in .251s Module 16/30 org.apache.geronimo.configs/openejb-deployer/2.0.1/car started in .264s Module 17/30 org.apache.geronimo.configs/client-deployer/2.0.1/car started in .615s Module 18/30 org.apache.geronimo.configs/axis2-deployer/2.0.1/car started in .422s Module 19/30 org.apache.geronimo.configs/axis-deployer/2.0.1/car started in 2.677s Module 20/30 org.apache.geronimo.configs/javamail/2.0.1/car started in .180s Module 21/30 org.apache.geronimo.configs/sharedlib/2.0.1/car started in .029s Module 22/30 org.apache.geronimo.configs/tomcat6-deployer/2.0.1/car started in .229s Module 23/30 org.apache.geronimo.configs/jasper-deployer/2.0.1/car started in .092s Module 24/30 org.apache.geronimo.configs/myfaces-deployer/2.0.1/car started in .097s Module 25/30 org.apache.geronimo.configs/welcome-tomcat/2.0.1/car started in .571s Module 26/30 org.apache.geronimo.configs/dojo-tomcat/2.0.1/car started in .293s Module 27/30 org.apache.geronimo.configs/webconsole-tomcat/2.0.1/car 17:13:10,916 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.configs/webconsole-tomcat/2.0.1/car?J2EEApplication=org.apache.geronimo.configs/webconsole-tomcat/2.0.1/car,j2eeType=JACCManager,name=JACCManager" java.lang.ExceptionInInitializerError at org.apache.geronimo.security.jacc.ApplicationPolicyConfigurationManager.(ApplicationPolicyConfigurationManager.java:109) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:946) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102) at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:539) at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111) at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146) at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120) at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176) at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44) at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunning
Re: the newest available dependencies - question
Hi! I have came to a solution to that problem (as far as WAS-CE 1.1.0.2 is concerned). I have registered brand new library lib-test version 2.0.0 In deployment descriptor I have: dataweaver lib-test jar I added simple invocation of the Test class and its getVersion() method: System.out.println(Test.getVersion()); works fine, the result is "2.0.0"! Now, I have changed the Test.getVersion() to return "2.0.1", and registered as a new 2.0.1 library 1. I have restarted my application, the result was 2.0.0 2. I have stopped and then started application, the result was 2.0.0 3. I have redeployed application, the result was 2.0.0 4. I have restarted the SERVER, the result was 2.0.1 uuu that hurts... I've checked it once again with the 2.0.2 version, I also had to restart the server to get things work best regards Lukasz ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
Re: the newest available dependencies - question
Hi! I'm using IBM WAS-CE based on Apache Geronimo 1.1 If You think I should still create a JIRA tell me best regards Lukasz - Original Message From: Vamsavardhana Reddy <[EMAIL PROTECTED]> To: user@geronimo.apache.org Sent: Tuesday, 7 August, 2007 3:40:08 PM Subject: Re: the newest available dependencies - question Oops... that bombs. If I have 1.2 and 1.15, 1.15 gets selected. Can you create a JIRA. https://issues.apache.org/jira/browse/GERONIMO Thanks and regards, Vamsi On 8/7/07, Vamsavardhana Reddy <[EMAIL PROTECTED]> wrote: Which version of Geronimo are you using? Can you post a testcase? With Geronimo 2.0, I am noticing that if I don't specify the version in dependency, it is selecting the latest version from repository. I have used versions 1.0 and 1.1 in my verification. Thanks and regards, Vamsi On 8/7/07, Xh < [EMAIL PROTECTED] > wrote: Hi All! I was wondering if there is a way I can point to Apache Geronimo that I want the newest version of given dependency? I have few versions of my "commons" libraries and I thought it would be very nice feature if I wouldn't have to change my and redeploy whole application each time I change something in my commons libraries. I've deployed successfully my app with: dataweaver dataweaver-commons jar (so I guess that element is not required) added new method (getVersion) to the one of my classes. when running the result: java.lang.NoSuchMethodError: org.xh.dataweaver.common.utils.StringUtils.getVersion() when I add the element: dataweaver dataweaver-commons 1.15 jar StringUtils.getVersion () works fine. So, is there any way I can point to AG that I want the newest available dependencies? thanks and regards Lukasz Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today. ___ Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html
the newest available dependencies - question
Hi All! I was wondering if there is a way I can point to Apache Geronimo that I want the newest version of given dependency? I have few versions of my "commons" libraries and I thought it would be very nice feature if I wouldn't have to change my and redeploy whole application each time I change something in my commons libraries. I've deployed successfully my app with: dataweaver dataweaver-commons jar (so I guess that element is not required) added new method (getVersion) to the one of my classes. when running the result: java.lang.NoSuchMethodError: org.xh.dataweaver.common.utils.StringUtils.getVersion() when I add the element: dataweaver dataweaver-commons 1.15 jar StringUtils.getVersion() works fine. So, is there any way I can point to AG that I want the newest available dependencies? thanks and regards Lukasz ___ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/
two entity beans in one module
Hi All, I'm using WAS-CE (based on Geronimo 1.1) , I have defined two entity beans, while fetching them this way: WebPageLocalHome home = (WebPageLocalHome)context.lookup("java:comp/env/ejb/WebPageBean"); System.out.println(home.getClass().getSimpleName()); WebModuleLocalHome mhome = (WebModuleLocalHome)context.lookup("java:comp/env/ejb/WebModuleBean"); System.out.println(mhome.getClass().getSimpleName()); I have: EntityEJBLocalHome$$EnhancerByCGLIB$$904af65b javax.naming.NameNotFoundException: env/ejb/WebModuleBean at org.apache.geronimo.naming.enc.AbstractReadOnlyContext.lookup(AbstractReadOnlyContext.java:81) at org.apache.geronimo.naming.java.RootContext.lookup(RootContext.java:51) at javax.naming.InitialContext.lookup(Unknown Source) WebPageBean is successfully retrieved, the result of home.getClass().getSimpleName() is: EntityEJBLocalHome$$EnhancerByCGLIB$$904af65b but the WebModuleBean is not found. WebPageBean is successfully registered, for example its non-default finder works fine: WebPageLocal local = home.findByNameAndIdModule("Menu", 1); but normally I need WebModuleBean to get idModule I've gone through ejb-jar.xml and openejb-jar.xml several times and I cannot see the reason why WebModuleBean is no registered in JNDI. While deploying my application WAS-CE does not show any errors. maybe I miss something, don't see simple error? my descriptors are attached below thanks best regards Lukasz ejb-jar.xml fragment: An EJB named WebPageBean WebPageBean org.xh.dataweaver.web.entity.WebPageLocalHome org.xh.dataweaver.web.entity.WebPageLocal org.xh.dataweaver.web.entity.WebPageBean Container java.lang.Integer false 2.x WebPage idPage idPage idModule idModule name name title title noOfVisits noOfVisits noOfAJAXRequests noOfAJAXRequests idPage This is a reference to DataWeaver Derby database. jdbc/DataWeaverDS javax.sql.DataSource Container An EJB named WebModuleBean WebModuleBean org.xh.dataweaver.web.entity.WebModuleLocalHome org.xh.dataweaver.web.entity.WebModuleLocal org.xh.dataweaver.web.entity.WebModuleBean Container java.lang.Integer false 2.x WebModule idModule idModule name name description description host host username username passwd passwd idModule This is a reference to DataWeaver Derby database. jdbc/DataWeaverDS javax.sql.DataSource Container openejb-jar.xml fragment: WebModuleBean WebModuleBean dw_modules idModule idModule name name description description host host username username passwd passwd jdbc/DataWeaverDS DataWeaverDispatcherDerby findByName java.lang.String SELECT OBJECT(m) FROM WebModule m WHERE m.name = ?1 WebPageBean WebPageBean dw_pages idPage idPage idModule idModule name name
JDBC Security Realm and dataSourceName option
Hi All! Lately I was in a mood of embedding all resource like JDBC pool and security realms. It was quite easy to create application-wide JDBC Security Realm, I only copied web-generated into geronimo-application.xml Now I have successfully created application-wide JDBC pool. It works fine, I'm 100% satisfied with the results. But when I turned on the security constraints I've encountered a problem in JDBC Security Realm. It defines: DataWeaverDispatcherDerby2 (I have global, server-wide DataWeaverDispatcherDerby pool and my new embedded DataWeaverDispatcherDerby2 pool) Application deploys without any errors, but when signing in, JAAS logs: 07/27/2007 11:58:26 - Authentication attempt - xh 07/27/2007 11:58:26 - Authentication failed - xh I assume it's because there is a problem with DataWeaverDispatcherDerby2 application-wide pool. Has anyone succeeded in deploying both embedded JDBC and Security Realm? I'm using WAS-CE 1.1. thanks in advance best regards Lukasz ___ Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html
application wide db pool
Hi All, I'm trying to create application wide pool, I did all the necessary modifications in: application.xml and geronimo-application.xml files. (see: http://www.chariotsolutions.com/geronimo/geronimo-1.0/database-manual.html#database-manual-deploy-application) for example in geronimo-application.xml I wrote: tranql-connector-derby-client-xa-1.1.rar DataWeaverDispatcherDerby.xml But now I have a question how to map deployed pool to JNDI resource-ref? In my DataWeaverDispatcherDerby.xml db pool deployment plan I have: dataweaver.dbpool DataWeaverDispatcherDerby 1.0 rar but the resource "dataweaver.dbpool" is unknown during deployment, and below fragment of geronimo-web.xml throws an exception: jdbc/DataWeaverDS dataweaver.dbpool DataWeaverDispatcherDerby DataWeaverDispatcherDerby the exception is: // toggle the display state of an element function Pluto_apps_all_row1_col1_p1_toggleDisplay(id) { var element = document.getElementById("Pluto_apps_all_row1_col1_p1_"+id); if (element.style.display == 'inline') { element.style.display='none'; } else { element.style.display='inline'; } } Deployment failed: Unable to resolve resource reference 'jdbc/DataWeaverDS' (Could not find the resource specified in your Geronimo deployment plan: How to define an application-scope db pool and bind it to JNDI name jdbc/XYZ? second question, I have application-scope Realm, that use server-wide db pool, how to configure it to work with my application-scope pool? fragment of geronimo-application.xml: DataWeaverSecurity org.apache.geronimo.security.realm.providers.SQLLoginModule SELECT username, passwd FROM dw_users WHERE username = ? null SELECT u.username, r.role FROM dw_users u, dw_roles r, dw_users_roles_assoc ur WHERE ur.idUser = u.idUser AND ur.idRole = r.idRole AND u.username = ? DataWeaverDispatcherDerby thanks in advance best regards Lukasz ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
Re: AW: G1.1 to G2.0-M6 migration: JNDI problems
Hi All! I'm making some progress with migrating from G1.1 to G2.0, It was a hell easier to migrate from JBoss to WebSphere Application Server Community Edition (based on G1.1) than to migrate from 1.1 to 2.0 ;( I've changed the @Stateful to @Stateless and now I can see my bean in: http://localhost:8080/console/portal/DebugViews/DebugViews_JNDIViewer but few things still don't work, like accessing remote interface through JNDI as a continuation of previous reply: - - you deployed a EJB 3.0 application in an xxx-ejb.jar - I deployed my EJB 3.0 application as an *.ear, but the extension is not important at all - - you configured an openejb-jar.xml deployment plan where you set an artifactId for your app, let's say "MyApp" - just as said here: http://cwiki.apache.org/GMOxDOC20/using-some-of-ejb-30-functionalities.html "By annotating this class as a @Stateless session there is no need for a deployment descriptor to describe it separately." my EJB module does not have any ejb-jar.xml or openejb-jar.xml - - you have build a remote interface for your session bean (EJB 3.0 means a simple interface), let's say "MySessionRemote" then the following is the right jndi name to get a connection to your bean "MyApp/MySessionBean/my.package.MySessionRemote" - I have built @Local and @Remote interfaces I don't have openejb-jar.xml file with artefactId elements, thus I use the artifactId from geronimo-application.xml I'm trying to fetch the remote interface with this code: Context c = new InitialContext(p); // don't have to redeploy it each time I want test new JNDI name // it is extracted from URL parameter s if (request.getParameterMap().get("s") != null) { s = ((String[])request.getParameterMap().get("s"))[0]; } Object o = c.lookup(s + ModuleProxyRemote.class.getName()); if (o != null) { System.out.println(o.getClass().getName()); } always throws an exception, NameNotFound in the http://localhost:8080/console/portal/DebugViews/DebugViews_JNDIViewer I can see that there is my application: + org.xh.jee.ejb3.samples/EJB3Test/1184674652609/ear - EJBModule - EJB3EJB.jar - SessionBeans - ModuleProxyBean local interface works without any problems, its annoted with @EJB: @EJB private ModuleProxyLocal proxy = null; proxy.initialize("this is only", "a local test"); System.out.println(proxy.getInfo()); any ideas? best regards Lukasz ___ What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the Yahoo! Mail Championship. http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk
Re: AW: G1.1 to G2.0-M6 migration: JNDI problems
Hi! Well to clear few things. I have defined: @Stateful public class ModuleProxyBean implements ModuleProxyRemote, ModuleProxyLocal { ... } I can access its local interface. It works. In my servlet I wrote: @EJB private ModuleProxyLocal proxy = null; protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { proxy.initialize("this is only", "a local test"); // displays "this is only a local test" System.out.println(proxy.getInfo()); } but I cannot access the remote interface, everything I do ends with javax.naming.NameNotFoundException... for example: Properties p = new Properties(); p.put("java.naming.factory.initial", "org.openejb.client.RemoteInitialContextFactory"); p.put("java.naming.provider.url", "127.0.0.1:4201"); //p.put("java.naming.security.principal", "system"); //p.put("java.naming.security.credentials", "manager"); try { Context c = new InitialContext(p); Object o = c.lookup("ProxyTest/ModuleProxyBean/" + ModuleProxyRemote.class.getName()); if (o != null) { System.out.println(o.getClass().getName()); } in addition, while browsing the: http://localhost:8080/console/portal/DebugViews/DebugViews_JNDIViewer I don't see any SessionBeans in my EJBModule in my EAR Application, so how come a local interface works? best regards Lukasz - Original Message From: "Ueberbach, Michael" <[EMAIL PROTECTED]> To: user@geronimo.apache.org Sent: Monday, 16 July, 2007 3:13:57 PM Subject: AW: G1.1 to G2.0-M6 migration: JNDI problems DIV { MARGIN:0px;} Hi Lukasz, I don't know exactly your situation, please check the following conditions: - you deployed a EJB 3.0 application in an xxx-ejb.jar - you configured an openejb-jar.xml deployment plan where you set an artifactId for your app, let's say "MyApp" - you have a session bean you want connect to, let's say "MySessionBean" - you have build a remote interface for your session bean (EJB 3.0 means a simple interface), let's say "MySessionRemote" then the following is the right jndi name to get a connection to your bean "MyApp/MySessionBean/my.package.MySessionRemote" You have to use the fully qualified class name for the Interface! I tried to define a jndi name for the session bean inside the deployment plan, but this doesn't work (deployment is ok but lookup fails). regards Michael Von: Xh [mailto:[EMAIL PROTECTED] Gesendet: Montag, 16. Juli 2007 11:23 An: User Geronimo Betreff: G1.1 to G2.0-M6 migration: JNDI problems Hi All, I'm making some progress while moving my app to G2.0-M6. I have some questions about JNDI. first I've noticed that when connecting to remote EJB (for tests I use 127.0.0.1:4201) I don't have to provide principals and credentials, when I provide system/manager I get "AuthenticationException: This principal is not authorized" to successfully connect to 4201 port I need to comment out java.naming.security properties: Properties p = new Properties(); p.put("java.naming.factory.initial", "org.openejb.client.RemoteInitialContextFactory"); p.put("java.naming.provider.url", "127.0.0.1:4201"); //p.put("java.naming.security.principal", "system"); //p.put("java.naming.security.credentials", "manager"); // now I can connect Context c = new InitialContext(p); quick question: how to turn security back? i'm using EJB 2.x (G1.1) and I'm trying to connect to EJB through the "remote" JNDI but I get: "java.lang.RuntimeException: javax.naming.NameNotFoundException: /ejb/ModuleFactory does not exist in the system. Check that the app was successfully deployed." well, yes, my EAR app is successfully deployed in G2.0, no errors were reported during deployment... it all worked on G1.1... maybe it's because I didn't provide any principals and credentials? any ideas? best regards Lukasz Win a BlackBerry device from O2 with Yahoo!. Enter now. ___ New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes. http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk
G1.1 to G2.0-M6 migration: JNDI problems
Hi All, I'm making some progress while moving my app to G2.0-M6. I have some questions about JNDI. first I've noticed that when connecting to remote EJB (for tests I use 127.0.0.1:4201) I don't have to provide principals and credentials, when I provide system/manager I get "AuthenticationException: This principal is not authorized" to successfully connect to 4201 port I need to comment out java.naming.security properties: Properties p = new Properties(); p.put("java.naming.factory.initial", "org.openejb.client.RemoteInitialContextFactory"); p.put("java.naming.provider.url", "127.0.0.1:4201"); //p.put("java.naming.security.principal", "system"); //p.put("java.naming.security.credentials", "manager"); // now I can connect Context c = new InitialContext(p); quick question: how to turn security back? i'm using EJB 2.x (G1.1) and I'm trying to connect to EJB through the "remote" JNDI but I get: "java.lang.RuntimeException: javax.naming.NameNotFoundException: /ejb/ModuleFactory does not exist in the system. Check that the app was successfully deployed." well, yes, my EAR app is successfully deployed in G2.0, no errors were reported during deployment... it all worked on G1.1... maybe it's because I didn't provide any principals and credentials? any ideas? best regards Lukasz ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
Re: G1.1 to G2.0-M6 migration: JDBC ClassCastException: DelegatingDriver
Hi, - Original Message I think you need to change the dependency from the derby jar to system-database org.apache.geronimo.configs system-database car I have no idea why your app worked in G 1.1 :-), the DelegatingDriver wasn't there but I thought the same kind of problem still occurred. Let us know if this doesn't fix the problem - I didn't say I use SystemDatabase and its SystemDatasource pool ;) I have created my own database (dataweaver) and created pool to this database. So in my G2.0M-6 I have two following embedded Derby databases: 1. SystemDatabase with its org.apache.geronimo.configs/system-database pool 2. dataweaver with its console.dbpool/DataWeaverWARDerby one the funniest thing is, that SystemDatabase getConnection() does not throw any exceptions, dataweaver getConnection() throws... maybe something else is wrong? best regards Lukasz ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
G1.1 to G2.0-M6 migration: JDBC ClassCastException: DelegatingDriver
Hi All, I'm migrating my application from G1.1 to G2.0-M6 and have very strange error... I use for my Web application embedded Derby. I have successfully created pool, I use the same web-application.xml and web.xml files that were used in G1.1. the datasource fetched from JNDI is not NULL, but getConnection() throws ClassCastException exception when retrieving connection. I don't have the slightest idea what is wrong... the snippet: public Connection getConnection() { /* fetching, etc. ... */ System.out.println(datasource); return datasource.getConnection(); // class cast exception } results in: [EMAIL PROTECTED] 11:18:11,828 ERROR [[DispatcherServlet]] Servlet.service() for servlet DispatcherServlet threw exception java.lang.ClassCastException: org.apache.geronimo.jdbc.DelegatingDriver at org.apache.derby.jdbc.EmbeddedDataSource.findDriver(Unknown Source) at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source) at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source) at org.apache.derby.jdbc.EmbeddedXADataSource.setupResourceAdapter(Unknown Source) at org.apache.derby.jdbc.EmbeddedXADataSource.getXAConnection(Unknown Source) at org.tranql.connector.jdbc.AbstractXADataSourceMCF.getPhysicalConnection(AbstractXADataSourceMCF.jav a:74) at org.tranql.connector.derby.EmbeddedXAMCF.createManagedConnection(EmbeddedXAMCF.java:52) at org.apache.geronimo.connector.outbound.MCFConnectionInterceptor.getConnection(MCFConnectionIntercep tor.java:48) at org.apache.geronimo.connector.outbound.LocalXAResourceInsertionInterceptor.getConnection(LocalXARes ourceInsertionInterceptor.java:41) at org.apache.geronimo.connector.outbound.SinglePoolConnectionInterceptor.internalGetConnection(Single PoolConnectionInterceptor.java:66) at org.apache.geronimo.connector.outbound.AbstractSinglePoolConnectionInterceptor.getConnection(Abstra ctSinglePoolConnectionInterceptor.java:78) at org.apache.geronimo.connector.outbound.TransactionEnlistingInterceptor.getConnection(TransactionEnl istingInterceptor.java:46) at org.apache.geronimo.connector.outbound.TransactionCachingInterceptor.getConnection(TransactionCachi ngInterceptor.java:95) at org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor.getConnection(ConnectionHandleIn terceptor.java:43) at org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection(TCCLInterceptor.java:39) at org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor.getConnection(ConnectionTracki ngInterceptor.java:66) at org.apache.geronimo.connector.outbound.AbstractConnectionManager.allocateConnection(AbstractConnect ionManager.java:61) at org.tranql.connector.jdbc.DataSource.getConnection(DataSource.java:56) at org.xh.dataweaver.common.db.DerbyConnectionFactory.getConnection(DerbyConnectionFactory.java:38) at org.xh.dataweaver.web.dao.WebModuleDAO.findModuleByName(WebModuleDAO.java:23) at org.xh.dataweaver.web.engine.RequestDispatcher.dispatchAndProcess(RequestDispatcher.java:44) at org.xh.dataweaver.web.engine.DispatcherServlet.processRequest(DispatcherServlet.java:40) at org.xh.dataweaver.web.engine.DispatcherServlet.doGet(DispatcherServlet.java:104) at javax.servlet.http.HttpServlet.service(HttpServlet.java:693) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292) at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:694) at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:665) at org.apache.jsp.index_jsp._jspService(index_jsp.java:57) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache
Calculator Stateless POJO example - FileNotFoundException
Hi All! I've noticed that the example stateless session bean throws an exception (FileNotFoundException). The file is available at: http://cwiki.apache.org/GMOxDOC20/using-some-of-ejb-30-functionalities.data/calculator-stateless-pojo.zip Stack trace is presented below. Second thing, in which jar there are all EJB3 annotations? I cannot compile downloaded example because I cannot resolve all classes (annotations) best regards Lukasz org.apache.geronimo.common.DeploymentException: org.apache.geronimo.common.DeploymentException: Problem deploying war at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:383) at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124) at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke() 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:127) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:863) 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) Caused by: org.apache.geronimo.common.DeploymentException: Problem deploying war at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.installModule(AbstractWebModuleBuilder.java:306) at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder$$FastClassByCGLIB$$8523248f.invoke() 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:127) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:828) 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.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$66c2f149.installModule() at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.installModule(SwitchingModuleBuilder.java:153) at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder$$FastClassByCGLIB$$d0c31844.invoke() 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:127) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:828) 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.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$66c2f149.installModule() at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:555) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke() 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:127) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:828) 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.j2ee.deployment.CorbaGBeanNameSource$$EnhancerByCGLIB$$9df06b5e.buildConfiguration() at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:302) ... 10 more Caused by: java.io.FileNotFoundException: H:\programy\apache\geronimo\repository\org\apache\geronimo\samples\calculator-stateless-ear\2.0-SNAPSHOT\calculator-stateless-ear-2.0-SNAPSHOT.ear\calculator-stateless-war-2.0-SNAPSHOT.war\apidocsxxx\org\apache\geronimo\samples\calculator\class-use\CalculatorServlet.html (System nie może odnaleźć określon
Re: JAAS - Authentication succeeded but error 403 sent
Hi once again! - geronimo-web.xml (role-mappings, principals, etc.) - so sorry guys, I had a typo in principals... now it works best regards Lukasz Yahoo! Answers - Get better answers from someone who knows. Try it now. ___ Yahoo! Photos – NEW, now offering a quality print service from just 8p a photo http://uk.photos.yahoo.com
JAAS - Authentication succeeded but error 403 sent
Hi All! I have successfully deployed my own form based security realm. But very strange thing happens. When I enter wrong username and password in my audit log I have: 07/13/2007 16:38:03 - Authentication attempt - asdsadasdsda 07/13/2007 16:38:03 - Authentication failed - asdsadasdsda result: I'm being forwarded to error.jsp page When I enter correct username and password I have: 07/13/2007 16:38:51 - Authentication attempt - xh 07/13/2007 16:38:51 - Authentication succeeded - xh result: 403 header are sent: Server: Apache-Coyote/1.1 Pragma: No-cache Cache-Control: no-cache Expires: Thu, 01 Jan 1970 01:00:00 CET Content-Type: text/html;charset=utf-8 Content-Length: 972 Date: Fri, 13 Jul 2007 14:38:03 GMT 403 Forbidden why? I understand that in order to help me You need more information, but which file should I copy&caste? web.xml (security-constraint etc.) geronimo-web.xml (role-mappings, principals, etc.) geronimo-application.xml (gbean definition, I'm not using server-wide realm) thanks in advance for any help best regards Lukasz ___ Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html
UTF-8 request strings corrupted
Hi All! I have a problem with UTF-8 web pages encoding and Polish language. Pages are generated from XML files with XSLT. All Polish characters are properly displayed. Everything is OK. Response is sent as: Server: Apache-Coyote/1.1 Set-Cookie: JSESSIONID=DCDE41C9E12D69A15B261649CF15DF8E; Path=/DataWeaver Content-Type: text/html;charset=UTF-8 ... also, the generated XHTML resposne's element consists: but... when I fill Polish characters in web form and submit it, all Polish characters are corrupted... for example, inserted records in database are displayed as strange strings furthermore, when I extract parameters in this way: Map temp = (Map)request.getParameterMap(); for (String s: temp.keySet()) { // output to the console // this will print every single Polish character as double '?' System.out.println(s + ": " + temp.get(s)[0]); } any idea how to extract UTF-8 encoded strings from request? thanks in advance best regards Lukasz ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
Re: how to access dbpool in EAR application
Hi once again... - Original Message any idea what should I write in openejb-jar.xml to get things work? - Original Message how stupid! in openejb-jar.xml inside I should add: jdbc/ERSDS DataWeaverEARDB2 now it works sorry, for bothering and spamming ;) best regards Lukasz ___ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/
Re: how to access dbpool in EAR application
- I think if you already have the DB pool deployed in Geronimo, you can just have a dependency on it in your openejb-jar.xml. - I have read this page: http://docs.codehaus.org/display/OPENEJB/Details+on+openejb-jar and I did everything it says: In ejb-jar.xml I added: This is a reference to ERS DB2 database. jdbc/ERSDS javax.sql.DataSource Container and now openejb-jar.xml... in I added: console.dbpool DataWeaverEARDB2 but how to map the console.dbpool/DataWeaverEARDB2 to jdbc/ERSDS? any idea what should I write in openejb-jar.xml to get things work? thanks in advance best regards Lukasz ___ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/
how to access dbpool in EAR application
Hi All, I can successfully connect to my remote bean, retrieve some results etc. But in real situation I need to access a database. In geronimo-application.xml I have: console.dbpool DataWeaverEARDB2 but unlike web.xml, geronimo-application.xml does not allow element. I can configure web application to access my database, but it's now what I really want ;( My question is, how to add a pool to EAR application? best regards Lukasz ___ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/
annoying embedded Derby exception
Hi All! I have very annoying embedded Derby exception that occurs once in a while: SQL Exception: Failed to start database 'dataweaver', see the next exception for details. Usually restart helps and every thing works fine, but this situation is really annoying... I use Geronimo 1.1, and it's embedded Derby 10, the configuration was simply created with Web wizard - http://127.0.0.1:8080/console/portal/services/services_jdbc I attach the generated below best regards Lukasz console.dbpool DataWeaverWARDerby 1.0 rar org.apache.derby derby 10.1.3-2 jar javax.sql.DataSource DataWeaverWARDerby dataweaver 10 0 ___ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/
Re: JNDI remote lookup and ClassCastException
Hi All! I found it ;) I forgot to add ejb/ModuleFactory in the openejb-jar.xml file. now I can connect to remote session bean best regards Lukasz - Original Message From: Xh <[EMAIL PROTECTED]> To: user@geronimo.apache.org Sent: Wednesday, 4 July, 2007 1:20:56 PM Subject: JNDI remote lookup and ClassCastException Hi All! I have successfully deployed Remote Session Stateful Bean. No I'm trying to connect to it remotely, but lookup method throws ClassCastException. I'm using Geronimo 1.1 and openejb-core 2.1.1 I have: Properties p = new Properties(); p.put("java.naming.factory.initial", "org.openejb.client.RemoteInitialContextFactory"); p.put("java.naming.provider.url", "127.0.0.1:4201"); p.put("java.naming.security.principal", "system"); p.put("java.naming.security.credentials", "manager"); Context ic = new InitialContext(p); // every thing seems to be OK... pw.write(ic.toString()); // ClassCastException in lookup Object o = ic.lookup("ejb/ModuleFactory"); the beginning of stack trace follows: java.lang.ClassCastException: java.lang.IllegalArgumentException at org.openejb.client.JNDIContext.lookup(JNDIContext.java:266) at javax.naming.InitialContext.lookup(Unknown Source) at org.xh.dataweaver.web.engine.DispatcherServlet.processRequest(DispatcherServlet.java:98) is it my fault or is it something in the org.openejb.client.JNDIContext class? thanks in advance for help best regards Lukasz Yahoo! Answers - Get better answers from someone who knows. Try it now. ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
JNDI remote lookup and ClassCastException
Hi All! I have successfully deployed Remote Session Stateful Bean. No I'm trying to connect to it remotely, but lookup method throws ClassCastException. I'm using Geronimo 1.1 and openejb-core 2.1.1 I have: Properties p = new Properties(); p.put("java.naming.factory.initial", "org.openejb.client.RemoteInitialContextFactory"); p.put("java.naming.provider.url", "127.0.0.1:4201"); p.put("java.naming.security.principal", "system"); p.put("java.naming.security.credentials", "manager"); Context ic = new InitialContext(p); // every thing seems to be OK... pw.write(ic.toString()); // ClassCastException in lookup Object o = ic.lookup("ejb/ModuleFactory"); the beginning of stack trace follows: java.lang.ClassCastException: java.lang.IllegalArgumentException at org.openejb.client.JNDIContext.lookup(JNDIContext.java:266) at javax.naming.InitialContext.lookup(Unknown Source) at org.xh.dataweaver.web.engine.DispatcherServlet.processRequest(DispatcherServlet.java:98) is it my fault or is it something in the org.openejb.client.JNDIContext class? thanks in advance for help best regards Lukasz ___ Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html
WAR deployment problem: Could not find an EJB for reference ejb/ModuleFactory
// toggle the display state of an element function Pluto_apps_all_row1_col1_p1_toggleDisplay(id) { var element = document.getElementById("Pluto_apps_all_row1_col1_p1_"+id); if (element.style.display == 'inline') { element.style.display='none'; } else { element.style.display='inline'; } } Hi All! I can deploy successfully the EJB JAR that defines remote stateful session bean. But I have a problem while deploying WAR application that needs to retrieve this remote session bean. In my EJB JAR I have defined two files: META-INF/ejb-jar.xml and META-INF/openejb-jar.xml ejb-jar.xml extract follows: ModuleFactory ModuleFactory org.xh.dataweaver.common.ejb.ModuleFactoryHome org.xh.dataweaver.common.ejb.ModuleFactory org.xh.dataweaver.enterprise.core.ejb.ModuleFactoryBean Stateful Container openejb-jar.xml extract follows: ModuleFactory ejb/ModuleFactory ModuleFactory After successful deployment of EJB JAR I tried to create proper web.xml file for my WAR application. In WEB-INF/web.xml I wrote: ejb/ModuleFactory Session org.xh.dataweaver.common.ejb.ModuleFactoryHome org.xh.dataweaver.common.ejb.ModuleFactory ModuleFactory But when I'm deploying WAR I receive: Could not find an EJB for reference ejb/ModuleFactory to a remote session bean that has the home interface org.xh.dataweaver.common.ejb.ModuleFactoryHome and the remote interface org.xh.dataweaver.common.ejb.ModuleFactory what am I doing wrong? I read http://cwiki.apache.org/GMOxDOC11/ejb-sample-application.html and http://cwiki.apache.org/GMOxDOC11/very-simple-session-ejb-example.html but I still don't see the error in my descriptors... thanks in advance for help best regards Lukasz ___ Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html