Re: Problems creating JMS Resrouce Group
For one thing, I think your parentId should be geronimo/activemq-broker/1.0/car (you want to force the broker to start first, not the other standard ActiveMQ resources). Also, you should remove the implemented-interface element you have -- that's only used if you have additional interfaces above and beyond what's listed in the connectionfactory-interface, and repeating the same one appears to hose it up. Thanks, Aaron On 2/6/06, Johnny l <[EMAIL PROTECTED]> wrote: > lol well after relooking at that entire section, I took a swipe at the > manual config of it. Unfortunately I still can't seem to get it going. When > I deploy the deployment plan with deploy, everything goes fine until i check > it out in the admin console. The connection factory's state is set to Failed > and when i try to check the details, it gives me "Error occurred in > portlet!". > > In the server window the exception thrown is: > ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED > state: > objectName="geronimo.server:J2EEApplication=null,J2EEServer=geronimo, > JCAResource=jms/TopicConnectionFactory,j2eeType=JCAManagedConnectionFactory,name=jms/TopicConnectionFactory" > > Considering I took most of my deployplan from the tutorial and didn't change > too much, I feel I sorta missed some vital step in actually setting up the > server perhaps? Any help would be greatly appreciated (and sorry about all > these bash head on desk silly problems :) > > > xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.0"; > configId="MyTopicConnectionFactory" > parentId="geronimo/activemq/1.0/car"> > > > > TestJMS > > tcp://localhost:61616 > > > not needed > > > not needed > > > DefaultWorkManager > > > > > > > javax.jms.TopicConnectionFactory > > > jms/MyTopicConnectionFactory > > javax.jms.TopicConnectionFactory > > > > > > > 10 > 0 > > 5000 > > > 0 > > > > > > > > > > > javax.jms.Topic > org.activemq.message.ActiveMQTopic > > > > jms/Topic >name="PhysicalName">jms/Topic > > > >
Re: Problems creating JMS Resrouce Group
lol well after relooking at that entire section, I took a swipe at the manual config of it. Unfortunately I still can't seem to get it going. When I deploy the deployment plan with deploy, everything goes fine until i check it out in the admin console. The connection factory's state is set to Failed and when i try to check the details, it gives me "Error occurred in portlet!". In the server window the exception thrown is: ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: objectName="geronimo.server:J2EEApplication=null,J2EEServer=geronimo, JCAResource=jms/TopicConnectionFactory,j2eeType=JCAManagedConnectionFactory,name=jms/TopicConnectionFactory" Considering I took most of my deployplan from the tutorial and didn't change too much, I feel I sorta missed some vital step in actually setting up the server perhaps? Any help would be greatly appreciated (and sorry about all these bash head on desk silly problems :) http://geronimo.apache.org/xml/ns/j2ee/connector-1.0" configId="MyTopicConnectionFactory" parentId="geronimo/activemq/1.0/car"> TestJMS tcp://localhost:61616 not needed not needed DefaultWorkManager javax.jms.TopicConnectionFactory jms/MyTopicConnectionFactory javax.jms.TopicConnectionFactory 10 0 5000 0 javax.jms.Topic org.activemq.message.ActiveMQTopic jms/Topic jms/Topic
Re: Axis stub caller from EJB
Are you saying that you have a web service in Axis server 1, and you want an EJB in Geronimo server 2 to call that web service? If so... It sounds like you generated client code (interfaces and stubs) for the web service with Axis, and bundled all that with your EJB. If that's correct, you'll probably need to add elements to your geronimo-ejb-jar.xml listing the Axis package prefix, to prevent your EJB JAR from seeing the Geronimo version of the Axis libraries. I'm not totally sure this won't break other things, but it seems like your best bet if you really need to use the Axis client stubs (because you most likely want Axis and all the interfaces to be in the same classloader, namely the EJB's classloader). However, the more portable appraoch is to forget about the Axis-generated stubs and add a service-ref to ejb-jar.xml for that EJB, pointing to the WSDL and JAX-RPC mapping file describing the service, and also bundle the service interface and port (aka service endpoint) interface with the EJB classes in the EJB JAR. You do not need any stubs, since Geronimo will generate those as needed. The down side to this approach is that you'll probably need to write the JAX-RPC mapping file (or use the JWSDP to generate the client, since I think it can write a JAX-RPC mapping file for you). There's some documentation on this approach here: http://chariotsolutions.com/geronimo/web-services.html Thanks, Aaron On 2/6/06, lubaki nsele <[EMAIL PROTECTED]> wrote: > > Is anyone has been successful to call Axis webservice using stubs from EJBs > in Geronimo? > stubs are packaged as libraries in the EJB app and need to make remote call > to a webservice. It seems not create Axis call. > This apps works fine under Websphere but Geronimo is throwing class cast > Exception or Document fiels not found. OR > Exception from service object: 32=Invalid search entry or entry does not > exist. Please try again. > Lubaki
Axis stub caller from EJB
Is anyone has been successful to call Axis webservice using stubs from EJBs in Geronimo? stubs are packaged as libraries in the EJB app and need to make remote call to a webservice. It seems not create Axis call. This apps works fine under Websphere but Geronimo is throwing class cast Exception or Document fiels not found. OR Exception from service object: 32=Invalid search entry or entry does not exist. Please try again. Lubaki
Re: Running under Eclipse
This worked like a charm. Thanks.This would make a great addition to the wiki paper that talks about debugging with Eclipse.Sachin Patel <[EMAIL PROTECTED]> wrote: Here's another idea so you don't have to build...Extract/Unzip the source. Then without building, run maven m:eclipse. Then import all the projects into your workspace. You'll have build errors, but all you care about is the source being available at runtime, so ignore the errors and/or turn off autobuild and clean. Now you add add all the projects in the source attachment wizard and I think this should do the trick. - sachin On Feb 6, 2006, at 11:49 AM, Gary Karasiuk wrote:Yes, I downloaded the source tree. That seemed to go ok . To be specific I downloaded from here:http://svn.apache.org/repos/asf/geronimo/tags/1.0.0I followed the build instructions, but the first problem I had was with step:maven m:fresh-checkoutthat step failed with: [cvs] /home/projects/openejb/scm: no such repositoryI ignored this error and kept on going. Maybe this is the source of my problems, is there a workarounf for this? Sachin Patel <[EMAIL PROTECTED]> wrote: Hi Gary,Did you download the geronimo source tree? Then you will need to build once, following the build instructions. Then you need to run the maven m:eclipse goal which will generate the .project and .classpath files, so they can be imported into ec lipse. This is what I'm referring to as the "geronimo-xxx" projects.- sachinOn Feb 6, 2006, at 8:41 AM, Gary Karasiuk wrote:> I'm trying to run the 1.0 version of Geronimo under Eclipse, to > debug a problem I'm having. I've been following the instructions > in the wiki:>> http://wiki.apache.org/geronimo/EclipseDeployment>> I'm confused when reading the "Creating Maven and Server Launch > Configurations" section. It keeps talking about a "geronimo" > project, but I don't have such a project in my workspace. I have > many geronimo-xxx projects, but no geronimo project. Which project > does it mean?GaryGary
Re: Running under Eclipse
Here's another idea so you don't have to build...Extract/Unzip the source. Then without building, run maven m:eclipse. Then import all the projects into your workspace. You'll have build errors, but all you care about is the source being available at runtime, so ignore the errors and/or turn off autobuild and clean. Now you add add all the projects in the source attachment wizard and I think this should do the trick. - sachin On Feb 6, 2006, at 11:49 AM, Gary Karasiuk wrote:Yes, I downloaded the source tree. That seemed to go ok. To be specific I downloaded from here:http://svn.apache.org/repos/asf/geronimo/tags/1.0.0I followed the build instructions, but the first problem I had was with step:maven m:fresh-checkoutthat step failed with: [cvs] /home/projects/openejb/scm: no such repositoryI ignored this error and kept on going. Maybe this is the source of my problems, is there a workarounf for this? Sachin Patel <[EMAIL PROTECTED]> wrote: Hi Gary,Did you download the geronimo source tree? Then you will need to build once, following the build instructions. Then you need to run the maven m:eclipse goal which will generate the .project and .classpath files, so they can be imported into ec lipse. This is what I'm referring to as the "geronimo-xxx" projects.- sachinOn Feb 6, 2006, at 8:41 AM, Gary Karasiuk wrote:> I'm trying to run the 1.0 version of Geronimo under Eclipse, to > debug a problem I'm having. I've been following the instructions > in the wiki:>> http://wiki.apache.org/geronimo/EclipseDeployment>> I'm confused when reading the "Creating Maven and Server Launch > Configurations" section. It keeps talking about a "geronimo" > project, but I don't have such a project in my workspace. I have > many geronimo-xxx projects, but no geronimo project. Which project > does it mean?Gary
Re: Subscribe: Geronimo JNDI problem
It's hard to understand how the resulting home object could be null. You should get a NamingException if the object is not present in JNDI. However, people have reported problems with PortableRemoteObject when running on JDK's other than Sun 1.4.2, so perhaps you should just try: ChiselGatewayHome home = (ChiselGatewayHome)new InitialContext().lookup("java:comp/env/ChiselGateway"); System.out.println("Home is "+home); That should work from a web component such as a servlet or JSP, with the web.xml settings you showed above. If it still doesn't work, try undeploying or redeploying the application and make sure you don't get a bunch of errors saying something like "object should be stopped before die is called" (which indicates that parts of the application never started, possibly due to a bad reference or missing import or something like that). Thanks, Aaron P.S. Note that the jndi-name specified in openejb-jar.xml is *only* used for application clients. You might as well leave it out if you're only going to be accessing the EJB from the web application -- it won't hurt and it might be less confusing. On 2/6/06, Oscar Oreja <[EMAIL PROTECTED]> wrote: > > > On 1/31/06, Oscar Oreja <[EMAIL PROTECTED]> wrote: > > Hello David, > > > > Thanks for your interest and help. > > > > All the modules are packed on the ear. There are an app.war and > appEJB.jar files within appEAR.ear. There are web.xml and geronimo-web.xml > in app.war WEB-INF folder. On appEJB.jar META-INF are ejb-jar.xml and > openejb-jar.xml. I have added 2 files more: db-plan.xml and jms-plan.xml > within appEAR.ear and, on folder META-INF, the application.xml file. > > > > When I deploy the ear file I'm using a app-plan.xml. > > > > This is an example of the web.xml ejb-ref and the ejb-jar.xml related > definition. > > > > web.xml > > --- > > > > > > ChiselGateway > > Session > > > com.whitestone.chisel.framework.ejb.chiselgateway.ChiselGatewayHome > > > com.whitestone.chisel.framework.ejb.chiselgateway.ChiselGateway > > > ChiselGateway > > > > > > > > > > ejb-jar.xml > > - > > > > ChiselGateway > > > com.whitestone.chisel.framework.ejb.chiselgateway.ChiselGatewayHome > > > com.whitestone.chisel.framework.ejb.chiselgateway.ChiselGateway > > > com.whitestone.chisel.framework.ejb.chiselgateway.ChiselGatewayEJB > > Stateless > > Container > > > > ... > > > > openejb-jar.xml > > > > > > ChiselGateway > > ChiselGateway > > > > > > > > On the code, we use this to try to load the class from JNDI: > > > > Object objref = ic.lookup(jndiHomeName); > > Object obj = PortableRemoteObject.narrow (objref, className); > > home = (EJBHome)obj; > > > > The jndiHomeName is "ChiselGateway" on our application when we want to > load the class above. We have tried to use too "java:comp/env/ChiselGateway" > but it doesn't work. > > The home object is null allways. We added some code to show bindings but > all it show is from the namespace "". There is nothing more. > > > > Any idea why is it failing? > > > > Thank you for your help. > > > > Regards, > > > > Oscar > > > >
Re: Running under Eclipse
Yes, I downloaded the source tree. That seemed to go ok. To be specific I downloaded from here:http://svn.apache.org/repos/asf/geronimo/tags/1.0.0I followed the build instructions, but the first problem I had was with step:maven m:fresh-checkoutthat step failed with: [cvs] /home/projects/openejb/scm: no such repositoryI ignored this error and kept on going. Maybe this is the source of my problems, is there a workarounf for this? Sachin Patel <[EMAIL PROTECTED]> wrote: Hi Gary,Did you download the geronimo source tree? Then you will need to build once, following the build instructions. Then you need to run the maven m:eclipse goal which will generate the .project and .classpath files, so they can be imported into ec lipse. This is what I'm referring to as the "geronimo-xxx" projects.- sachinOn Feb 6, 2006, at 8:41 AM, Gary Karasiuk wrote:> I'm trying to run the 1.0 version of Geronimo under Eclipse, to > debug a problem I'm having. I've been following the instructions > in the wiki:>> http://wiki.apache.org/geronimo/EclipseDeployment>> I'm confused when reading the "Creating Maven and Server Launch > Configurations" section. It keeps talking about a "geronimo" > project, but I don't have such a project in my workspace. I have > many geronimo-xxx projects, but no geronimo project. Which project > does it mean?Gary
Re: Subscribe: Geronimo JNDI problem
On 1/31/06, Oscar Oreja <[EMAIL PROTECTED]> wrote: Hello David, Thanks for your interest and help. All the modules are packed on the ear. There are an app.war and appEJB.jar files within appEAR.ear. There are web.xml and geronimo-web.xml in app.war WEB-INF folder. On appEJB.jar META-INF are ejb-jar.xml and openejb-jar.xml. I have added 2 files more: db-plan.xml and jms-plan.xml within appEAR.ear and, on folder META-INF, the application.xml file. When I deploy the ear file I'm using a app-plan.xml. This is an example of the web.xml ejb-ref and the ejb-jar.xml related definition. web.xml--- ChiselGateway Session com.whitestone.chisel.framework.ejb.chiselgateway.ChiselGatewayHome com.whitestone.chisel.framework.ejb.chiselgateway.ChiselGateway ChiselGateway ejb-jar.xml- ChiselGateway com.whitestone.chisel.framework.ejb.chiselgateway.ChiselGatewayHome com.whitestone.chisel.framework.ejb.chiselgateway.ChiselGateway com.whitestone.chisel.framework.ejb.chiselgateway.ChiselGatewayEJB Stateless Container ...openejb-jar.xml ChiselGateway ChiselGateway On the code, we use this to try to load the class from JNDI: Object objref = ic.lookup(jndiHomeName); Object obj = PortableRemoteObject.narrow (objref, className); home = (EJBHome)obj; The jndiHomeName is "ChiselGateway" on our application when we want to load the class above. We have tried to use too "java:comp/env/ChiselGateway" but it doesn't work. The home object is null allways. We added some code to show bindings but all it show is from the namespace "". There is nothing more. Any idea why is it failing? Thank you for your help. Regards, Oscar
Re: Running under Eclipse
Gary, Geronimo also provides a source zip. So rather then go through these heavyweight instructions for what you're trying to do, you might try attaching the source jars as a source attachment. - sachin On Feb 6, 2006, at 10:06 AM, Sachin Patel wrote: Hi Gary, Did you download the geronimo source tree? Then you will need to build once, following the build instructions. Then you need to run the maven m:eclipse goal which will generate the .project and .classpath files, so they can be imported into eclipse. This is what I'm referring to as the "geronimo-xxx" projects. - sachin On Feb 6, 2006, at 8:41 AM, Gary Karasiuk wrote: I'm trying to run the 1.0 version of Geronimo under Eclipse, to debug a problem I'm having. I've been following the instructions in the wiki: http://wiki.apache.org/geronimo/EclipseDeployment I'm confused when reading the "Creating Maven and Server Launch Configurations" section. It keeps talking about a "geronimo" project, but I don't have such a project in my workspace. I have many geronimo-xxx projects, but no geronimo project. Which project does it mean?
Re: Running under Eclipse
Hi Gary, Did you download the geronimo source tree? Then you will need to build once, following the build instructions. Then you need to run the maven m:eclipse goal which will generate the .project and .classpath files, so they can be imported into eclipse. This is what I'm referring to as the "geronimo-xxx" projects. - sachin On Feb 6, 2006, at 8:41 AM, Gary Karasiuk wrote: I'm trying to run the 1.0 version of Geronimo under Eclipse, to debug a problem I'm having. I've been following the instructions in the wiki: http://wiki.apache.org/geronimo/EclipseDeployment I'm confused when reading the "Creating Maven and Server Launch Configurations" section. It keeps talking about a "geronimo" project, but I don't have such a project in my workspace. I have many geronimo-xxx projects, but no geronimo project. Which project does it mean?
Re: WEBSERVICES problem
OK, can you file a bug for this? I'm not too familiar with the Axis code myself, but it seems clear that extra slashes are getting inserted here and there. http://issues.apache.org/jira/secure/BrowseProject.jspa?id=10220 Thanks, Aaron On 2/6/06, Phani Madgula <[EMAIL PROTECTED]> wrote: > Hi Aaron, > Thanks for reply. > > I have added the following tags in openejb-jar.xml to bind the service to a > different URL than what is specified in wsdl file. > > > > HelloBean > HelloBean > > /RAMESH/Hello > > > > where as my wsdl file contains > >location="http://localhost:8080/TestEJB/Hello"/> > > > In either case, the extra '/' is being generated while using Dynamic Proxy > client. > > Contacting webservice at > http://localhost:8080/RAMESH/Hello?wsdl > Exception in thread "main" javax.xml.rpc.ServiceException: Error processing > WSDL document: > java.io.IOException: Server returned HTTP response code: 500 for URL: > http://localhost:8080/RAMESH/Hello/?wsdl > at org.apache.axis.client.Service.initService > (Service.java:250) > at org.apache.axis.client.Service.(Service.java:165) > at > org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java:198) > at HelloClient.main(HelloClient.java :27) > > Even while viewing wsdl from a browser window, at the URL > 'http://localhost:8080/TestEJB/Hello?wsdl";, the extra '/' > is getting appended. > > Thanks > phani > > > > > On 2/6/06, Aaron Mulder <[EMAIL PROTECTED]> wrote: > > I was able to get a web services reference (service-ref) from a web > > app to connect to an EJB exposed as a web service in Geronimo 1.0 when > > working through some tests for my web services chapter at: > > > > http://chariotsolutions.com/geronimo/web-services.html > > > > However, I did not try a dynamic proxy client. > > > > I did notice that a servlet web service got an extra slash in the URL > > it generated in the WSDL, though in my case it was after the port not > > at the end of the name. Perhaps this is related? > > > > If you look at the WSDL file at the URL > > http://localhost:8080/TestEJB/Hello?wsdl (NOTE: not your > original copy > > of the WSDL, but specifically look at the copy at that URL), does the > > service URL have the extra slash in it? If so, that's likely the > > problem, and possibly related to the slash problem I had, which I > > recorded at: > > > > http://issues.apache.org/jira/browse/GERONIMO-1584 > > > > In any case, to work around this, you might try adding a > > web-service-address element to your EJB configuration in > > openejb-jar.xml and see if you can provide an explicit value there > > that might override the auto-generated one with the extra slash. > > (Also, of course, make sure you don't have a web-service-address there > > already that has a slash on the end.) > > > > Thanks, > >Aaron > > > > On 2/5/06, Phani Madgula <[EMAIL PROTECTED]> wrote: > > > Hi > > > > > > I have deployed a WEBSERVICE implemented using an EJB, and facing a > problem > > > while accessing through Dynamic Proxy client. > > > The client is as follows. > > > > > > > > > > > > String urlstr = > > > "http://localhost:8080/TestEJB/Hello?wsdl "; > > > > > > String argument = "phani"; > > > > > > System.out.println("Contacting webservice at " + urlstr); > > > > > > URL url = new URL(urlstr); > > > > > > QName qname = new QName("http://hello.phani.org/";, > "HelloService"); > > > > > > ServiceFactory factory = ServiceFactory.newInstance (); > > > Serviceservice = factory.createService(url, qname); > > > > > > Hello hello = (Hello) service.getPort(Hello.class); > > > > > > System.out.println("hello.hello (" + argument + ")"); > > > System.out.println("output:" + hello.hello(argument)); > > > > > > > > > > > > The error is > > > > > > Contacting webservice at > > > http://localhost:8080/TestEJB/Hello?wsdl > > > Exception in thread "main" javax.xml.rpc.ServiceException: Error > processing > > > WSDL document: > > > java.io.IOException: Server returned HTTP response code: 500 for URL: > > > http://localhost:8080/TestEJB/Hello/?wsdl > > > at org.apache.axis.client.Service.initService > > > (Service.java:250) > > > at org.apache.axis.client.Service .(Service.java:165) > > > at > > > > org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java:198) > > > at HelloClient.main(HelloClient.java :27) > > > > > > If we can observe the error trace, a '/' is getting appended for the URL > > > "http://localhost:8080/TestEJB/Hello"; and making it " > > > http://localhost:8080/TestEJB/Hello/?wsdl ". It is not > > > happening for WEBSERVICE implemented using a servlet. > > > > > > > > > > > > The WSDL is as follows. > > > > > > > > > > > > targetNamespace="http://hello.phani.org/"; > > > xmlns:tns="http://hello.phani.org/ " xmlns=" > > > http://schemas.xmlsoap.org/w
Running under Eclipse
I'm trying to run the 1.0 version of Geronimo under Eclipse, to debug a problem I'm having. I've been following the instructions in the wiki: http://wiki.apache.org/geronimo/EclipseDeployment I'm confused when reading the "Creating Maven and Server Launch Configurations" section. It keeps talking about a "geronimo" project, but I don't have such a project in my workspace. I have many geronimo-xxx projects, but no geronimo project. Which project does it mean?