Re: javax.jms.JMSException: Failed to build body from bytes

2008-10-13 Thread Kevan Miller
On Oct 13, 2008, at 5:10 PM, jklcom99 wrote: Hi Kevan, I tested out your sample with inPlace deplopment today and it works, the ContextClassLoader is correct. In the sample deployment plan: http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:sch

Re: javax.jms.JMSException: Failed to build body from bytes

2008-10-13 Thread jklcom99
Hi Kevan, I tested out your sample with inPlace deplopment today and it works, the ContextClassLoader is correct. In the sample deployment plan: http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee htt

Re: Exception in using: @OneToMany with mappedBy

2008-10-13 Thread Jay D. McHugh
Marco, Sorry that it took so long for anyone to send you a response. Here is something to try. Add an annotation to your entity classes of: @XmlAccessorType(XmlAccessType.PROPERTY) I think that OpenJPA has field access set by default. Or, if you want to use field access instead, you can expli

Re: I need a Servlet to be started when the web container is starting

2008-10-13 Thread David Jencks
On Oct 13, 2008, at 11:11 AM, Juan David wrote: Hi David I think what I need is descrived for you “If you need some code to execute before your actual apps start you could write a gbean to execute the code and deploy it in a plugin that depends on the tomcat plugin. If your apps depend

Re: shared libraries in the OAS way

2008-10-13 Thread David Jencks
On Oct 13, 2008, at 10:56 AM, Juan David wrote: Hi David I think that solution is what I needs. Are there any examples in how to implement and deploy the classloader plugins and of course define dependencies among them First of all you should be using geronimo 2.1.x or if you are really

Re: I need a Servlet to be started when the web container is starting

2008-10-13 Thread Juan David
Hi David I think what I need is descrived for you “If you need some code to execute before your actual apps start you could write a gbean to execute the code and deploy it in a plugin that depends on the tomcat plugin. If your apps depend on this service plugin it is sure to get started before t

Re: shared libraries in the OAS way

2008-10-13 Thread Juan David
Hi David I think that solution is what I needs. Are there any examples in how to implement and deploy the classloader plugins and of course define dependencies among them Thank you very much Juan David Perez djencks wrote: > > > On Oct 13, 2008, at 9:51 AM, Juan David wrote: > >> >> Hi A

Re: shared libraries in the OAS way

2008-10-13 Thread David Jencks
On Oct 13, 2008, at 9:51 AM, Juan David wrote: Hi All I would like to know how to accomplish shared libraries in the OAS way on Geronimo. What I mean by OAS way is the possibility to define a shared library that holds some jars and also can define dependencies with some other librarie

Re: I need a Servlet to be started when the web container is starting

2008-10-13 Thread Lin Sun
Hi, Did you try write a simple geronimo-web.xml and deploy it along with your war file when you use sharedlib? Here's some information on geronimo-web.xml (geronimo specific web deployment plan) - http://cwiki.apache.org/GMOxDOC21/geronimo-webxml.html You can also try use the plan creator portlet

Re: I need a Servlet to be started when the web container is starting

2008-10-13 Thread David Jencks
On Oct 13, 2008, at 9:50 AM, Juan David wrote: Hi All I have a problem to set up a framework application on Geronimo. I need a Servlet to be started when the web container is starting. As I previously did this configuration on Tomcat y try to add the Servlet definition on installDir\var

Re: shared libraries in the OAS way

2008-10-13 Thread Lin Sun
Hi, Can sharedlib work for you? The G server provides a common directory where you can install class files and JAR files that can be shared by multiple Java EE assets. You can install the shared jar files to GERONIMO_HOME/var/shared/lib, then include the shared library as a dependency in your ge

shared libraries in the OAS way

2008-10-13 Thread Juan David
Hi All I would like to know how to accomplish shared libraries in the OAS way on Geronimo. What I mean by OAS way is the possibility to define a shared library that holds some jars and also can define dependencies with some other libraries. It is also possible to define a default set of depende

I need a Servlet to be started when the web container is starting

2008-10-13 Thread Juan David
Hi All I have a problem to set up a framework application on Geronimo. I need a Servlet to be started when the web container is starting. As I previously did this configuration on Tomcat y try to add the Servlet definition on installDir\var\catalina\conf\web.xml and it loads the Servlet the pro

Re: how to deploy application scope activemq broker?

2008-10-13 Thread aaaaa
Kevan Miller wrote: > > > On Oct 7, 2008, at 3:50 PM, a wrote: > > >> can anybody give me a hint what I'm doing wrong? I would like to >> have both >> brokers running... > > Hmm. Not sure... Are you sure that the second broker is up and > listening on 62626? Can you 'telnet localho

Re: SecurityException trying to use JavaMail

2008-10-13 Thread Rick McGuire
Kevan Miller wrote: On Oct 13, 2008, at 7:14 AM, Rick McGuire wrote: Kevan Miller wrote: On Oct 11, 2008, at 8:07 PM, John wrote: Hi, I have a webapp setup to send an email notification using javamail. The code works in both Tomcat and JBoss, but in Geronimo I am getting a SecurityExce

Re: SecurityException trying to use JavaMail

2008-10-13 Thread Kevan Miller
On Oct 13, 2008, at 7:14 AM, Rick McGuire wrote: Kevan Miller wrote: On Oct 11, 2008, at 8:07 PM, John wrote: Hi, I have a webapp setup to send an email notification using javamail. The code works in both Tomcat and JBoss, but in Geronimo I am getting a SecurityException. Here is a s

Re: SecurityException trying to use JavaMail

2008-10-13 Thread Rick McGuire
Kevan Miller wrote: On Oct 11, 2008, at 8:07 PM, John wrote: Hi, I have a webapp setup to send an email notification using javamail. The code works in both Tomcat and JBoss, but in Geronimo I am getting a SecurityException. Here is a subset of the stacktrace: java.lang.SecurityException