You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Jeff Genender <jg...@savoirtech.com> on 2005/06/15 19:12:20 UTC

Webservices for Tomcat now integrated

Just announcing that webservices for Tomcat has been integrated.

The only caveat is for the EJB side.  Currently all webservices will go 
to the default Host (which for 99% of the applications is fine)...as 
there needs to be some slight modifications to OpenEJB to handle virtual 
hosts.  JIRA issue GERONIMO-666 was opened on this.

However, it does appear to work with my setup. I can use some help with 
testing this piece with both EJB and Servlet based web services with 
different types of applications.  So any users who want to give it a 
roll, it would be appreciated ;-)

Jeff

Re: Webservices for Tomcat now integrated

Posted by Stefan Schmidt <sc...@gmail.com>.
Jacek Laskowski wrote:

> Stefan Schmidt wrote:
>
>> Hi Jeff,
>>
>> I compiled Geronimo with Tomcat and started the server without any 
>> problems. 
>
>
> How did you do that? Could you describe what steps you did to get 
> Tomcat  GBean running? I'm really confused with the term 'compiled' 
> which could mean that you did more that it's described in the wiki.

Basically I followed the Wiki instructions and recompiled the assembly 
freshly. (cd modules/assembly;maven -o) The problem is that I did it 
offline this way maven does not download all dependencies again (saves 
time and gets around the build failures I experienced).

>
>> The ear deploys and runs on Jetty
>
>
> Jetty? That struck me even stronger.

Yes, Jetty is the default web container integrated in Geronimo, Tomcat 
is the alternative, that's why you have to follow the Wiki to exchange them.

>
>> DEBUG [BaseDeserializerFactory] Exception:
>> java.lang.NoSuchMethodException: 
>> org.apache.axis.encoding.ser.ArrayDeserializerFactory.<init>(java.lang.Class, 
>> javax.xml.namespace.QName)
>>    at java.lang.Class.getConstructor0(Unknown Source)
>>    at java.lang.Class.getConstructor(Unknown Source)
>>    at 
>> org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(BaseDeserializerFactory.java:246) 
>>
>>    at 
>> org.apache.geronimo.axis.client.TypeInfo.register(TypeInfo.java:93)
>>    at 
>> org.apache.geronimo.axis.client.TypeInfo.register(TypeInfo.java:47)
>
>
> It happened on a client side, didn't it? Would that mean there's a 
> version mismatch between the client and the server? It's just shot in 
> the dark, so I might be missing the point.

No it happened on the server side. The whole webapp fails to run on Tomcat.

>
>> Am I compiling the Geronimo/Tomcat server with an obsolete Axis 
>> distribution?
>
>
> You aren't. Maven takes care of the libararies and their versions. 
> Unless you messed up Maven's local repository it shouldn't be possible 
> you are.

Since I am compiling offline I am not so shure about that, but the axis 
libs maven uses can't be more than two weeks old.

>
>> Also, I would really appreciate if you could have a look into 
>> GERONIMO-678 <http://issues.apache.org/jira/browse/GERONIMO-678> 
>> since you seem to be quite into the WS stuff and David is too busy to 
>> look into this before JavaOne.
>
>
> Dave is busy?! You don't know how much stuff he can do in parallel ;)
>
>> Stefan
>
>
> Jacek
>
Stefan


Re: Webservices for Tomcat now integrated

Posted by Jacek Laskowski <jl...@apache.org>.
Stefan Schmidt wrote:
> Hi Jeff,
> 
> I compiled Geronimo with Tomcat and started the server without any 
> problems. 

How did you do that? Could you describe what steps you did to get Tomcat 
  GBean running? I'm really confused with the term 'compiled' which 
could mean that you did more that it's described in the wiki.

> The ear deploys and runs on Jetty

Jetty? That struck me even stronger.

> DEBUG [BaseDeserializerFactory] Exception:
> java.lang.NoSuchMethodException: 
> org.apache.axis.encoding.ser.ArrayDeserializerFactory.<init>(java.lang.Class, 
> javax.xml.namespace.QName)
>    at java.lang.Class.getConstructor0(Unknown Source)
>    at java.lang.Class.getConstructor(Unknown Source)
>    at 
> org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(BaseDeserializerFactory.java:246) 
> 
>    at org.apache.geronimo.axis.client.TypeInfo.register(TypeInfo.java:93)
>    at org.apache.geronimo.axis.client.TypeInfo.register(TypeInfo.java:47)

It happened on a client side, didn't it? Would that mean there's a 
version mismatch between the client and the server? It's just shot in 
the dark, so I might be missing the point.

> Am I compiling the Geronimo/Tomcat server with an obsolete Axis 
> distribution?

You aren't. Maven takes care of the libararies and their versions. 
Unless you messed up Maven's local repository it shouldn't be possible 
you are.

> Also, I would really appreciate if you could have a look into 
> GERONIMO-678 <http://issues.apache.org/jira/browse/GERONIMO-678> since 
> you seem to be quite into the WS stuff and David is too busy to look 
> into this before JavaOne.

Dave is busy?! You don't know how much stuff he can do in parallel ;)

> Stefan

Jacek


Re: Webservices for Tomcat now integrated

Posted by Jeff Genender <jg...@savoirtech.com>.
Stefan,

That would be great...if you can reproduce this with a simple test case 
(perhaps removing the DB), this would really be helpful.

Jeff

Stefan Schmidt wrote:
> Hi Jeff,
> 
> I posted the interesting parts into JIRA. The application itself uses a 
> db as well so maybe it is a bit too much overhead for testing a web 
> service. I think I will create some simple test cases over the weekend, 
> so you guys can use them for testing etc.
> 
> Regards,
> 
> Stefan
> 
> Jeff Genender wrote:
> 
>> First...thanks for trying Tomcat...I need more people like yourself
>> exercising the module.
>>
>> Can you open a JIRA issue on this under Tomcat and attach a zip file with
>> all of your code, deployment descripters, etc, to the JIRA issue?  I can
>> then work on it and find the problem.
>>
>> Thanks,
>>
>> Jeff
>> -----Original Message-----
>> From: Stefan Schmidt [mailto:schmidtitc@gmail.com] Sent: Thursday, 
>> June 16, 2005 4:09 AM
>> To: dev@geronimo.apache.org
>> Subject: Re: Webservices for Tomcat now integrated
>>
>> Hi Jeff,
>>
>> I compiled Geronimo with Tomcat and started the server without any 
>> problems.
>> Then I deployed my ear containing some jsp's, a servlet, a session 
>> bean, two
>> entity beans and a Web service (which passes an array of complexTypes).
>>
>> The ear deploys and runs on Jetty apart from a SOAP response problem (see
>> JIRA GERONIMO-678 <http://issues.apache.org/jira/browse/GERONIMO-678> 
>> that I
>> filed today). However deploying the same ear (after changing ports in 
>> the wsdl) I get
>> heaps of errors:
>>
>> DEBUG [BaseDeserializerFactory] Exception:
>> java.lang.NoSuchMethodException: 
>> org.apache.axis.encoding.ser.ArrayDeserializerFactory.<init>(java.lang.Class 
>>
>> ,
>> javax.xml.namespace.QName)
>>    at java.lang.Class.getConstructor0(Unknown Source)
>>    at java.lang.Class.getConstructor(Unknown Source)
>>    at
>> org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(BaseDeser 
>>
>> ializerFactory.java:246)
>>    at org.apache.geronimo.axis.client.TypeInfo.register(TypeInfo.java:93)
>>    at org.apache.geronimo.axis.client.TypeInfo.register(TypeInfo.java:47)
>>
>> The same error is thrown several more times in different line numbers 
>> of the
>> BaseDeserializerFactory class.
>>
>> Am I compiling the Geronimo/Tomcat server with an obsolete Axis
>> distribution?
>>
>> Also, I would really appreciate if you could have a look into
>> GERONIMO-678 <http://issues.apache.org/jira/browse/GERONIMO-678> since 
>> you
>> seem to be quite into the WS stuff and David is too busy to look into 
>> this
>> before JavaOne. I will also have a look into it over the weekend (but I
>> might not be experienced enough to find the cause of the problem, what 
>> makes
>> it worse is that there is actually no error msg).
>>
>> Regards,
>>
>> Stefan
>>
>> Jeff Genender wrote:
>>
>>  
>>
>>> Hi Stefan,
>>>
>>> To set up Tomcat...look here:
>>>
>>> http://wiki.apache.org/geronimo/Tomcat
>>>
>>>
>>> Basically its just a lot of commenting and uncommenting in the plans, 
>>> then rebuilding assembly again (we will be making this simpler in the 
>>> near future).  Deploying your webservices should be nearly identical to
>>>   
>>
>> Jetty.
>>  
>>
>>> As for GERONIMO-672...after looking at that...is it possible you have 
>>> your configuration messed up slightly? I looked at the stack trace 
>>> and I saw
>>> this:
>>>
>>> Caused by: java.lang.IllegalStateException: No wsdl or schema known 
>>> at location: ETA-INF/wsdl/HelloService.wsdl
>>>
>>> Notice...ETA-INF/wsdl/HelloService.wsdl.  Looks like the "M" was 
>>> missing and thus could be the cause of the error.  What does your 
>>> open-ejb deployment plan and webservices.xml look like?
>>>
>>> What are your issues with complexTypes etc?  Have you opened a JIRA 
>>> ticket in this area?
>>>
>>> Jeff
>>>
>>> -----Original Message-----
>>> From: Stefan Schmidt [mailto:schmidtitc@gmail.com]
>>> Sent: Wednesday, June 15, 2005 6:17 PM
>>> To: dev@geronimo.apache.org
>>> Subject: Re: Webservices for Tomcat now integrated
>>>
>>> Hi Jeff,
>>>
>>> Since I am currently working on a Servlet and EJB-based WS example on 
>>> Geronimo I am very interested in testing it. For now I have only run 
>>> some tests on Jetty, but if you could provide some information on 
>>> Tomcat I would be more than happy to test this. Could you provide 
>>> your detailed setup information?
>>>
>>> Also, I encountered some issues for the EJB endpoint and opened JIRA 
>>> issue
>>> GERONIMO-762 so I am not sure if that has been fixed. Furthermore, 
>>> have you looked into complexTypes (and the mappings)? I have 
>>> encountered some more problems there recently.
>>>
>>> Regards,
>>>
>>> Stefan Schmidt
>>>
>>> Dain Sundstrom wrote:
>>>
>>>
>>>
>>>   
>>>
>>>> Very cool!
>>>>
>>>> -dain
>>>>
>>>> On Jun 15, 2005, at 10:12 AM, Jeff Genender wrote:
>>>>
>>>>  
>>>>     
>>>>
>>>>> Just announcing that webservices for Tomcat has been integrated.
>>>>>
>>>>> The only caveat is for the EJB side.  Currently all webservices  
>>>>> will go to the default Host (which for 99% of the applications is 
>>>>> fine)...as there needs to be some slight modifications to OpenEJB  
>>>>> to handle virtual hosts.  JIRA issue GERONIMO-666 was opened on this.
>>>>>
>>>>> However, it does appear to work with my setup. I can use some help 
>>>>> with testing this piece with both EJB and Servlet based web  
>>>>> services with different types of applications.  So any users who  
>>>>> want to give it a roll, it would be appreciated ;-)
>>>>>
>>>>> Jeff
>>>>>
>>>>>    
>>>>>       
>>>>
>>>>  
>>>>     
>>>
>>>
>>>
>>>
>>>   
>>
>>
>>
>>
>>  
>>

Re: Webservices for Tomcat now integrated

Posted by Jeff Genender <jg...@savoirtech.com>.
Be sure you have no "java" running before you build (you could have had 
a hanging Geronimo running).  Also, in assembly, I would do a maven -o 
clean before doing the assembly build.

If that doesn't help, we probably need one of the other guys to chime in 
on that particular error as I don't think its related to the change that 
was just made (although I could be wrong).

Jeff

Stefan Schmidt wrote:
> Jeff,
> 
> I have changed the two files but cannot build (cd modules/assembly/maven 
> -o)
> I get the following msg:
> 
> ----------------------------------------------------------------------------- 
> 
> 13:45:09,290 INFO  [Daemon] Server startup completed
>    [echo] server has started
>    [echo] Building default database configuration
>    [java]     Error: Deployment failed, Server reports:
>    [java]     org.apache.geronimo.common.DeploymentException: Syntax 
> error in
>    [java]     deployment plan or no deployer service available 
> (currently I can't
>    [java]     tell the difference):
>    [java]     
> planFile=D:\javalibs\geronimo3\geronimo\modules\assembly\target\plan\default-database-plan.xml, 
> 
>    [java]     
> moduleFileC:\DOCUME~1\STEFAN~1\LOCALS~1\Temp\deployer21004.tmpdir\tranql-connector-1.0-SNAPSHOT.rar 
> 
>    [java]
>    [java]      Syntax error in deployment plan or no deployer service 
> available
> 
>    [java]     (currently I can't tell the difference):
>    [java]     
> planFile=D:\javalibs\geronimo3\geronimo\modules\assembly\target\plan\default-database-plan.xml, 
> 
>    [java]     
> moduleFileC:\DOCUME~1\STEFAN~1\LOCALS~1\Temp\deployer21004.tmpdir\tranql-connector-1.0-SNAPSHOT.rar 
> 
>    [java]
> 
> BUILD FAILED
> File...... D:\javalibs\geronimo3\geronimo\modules\assembly\maven.xml
> Element... ant:java
> Line...... 388
> Column.... 88
> Java returned: 1
> Total time: 1 minutes 10 seconds
> ------------------------------------------------------------------------------------- 
> 
> 
> I have not changed anything in default-database-plan.xml.
> 
> Any ideas?
> 
> :Stefan
> 
> Jeff Genender wrote:
> 
>> Stefan...you are almost there ;-)
>> In j2ee-deployer-plan.xml and j2ee-runtime-deployerplan.xml, there is a
>> Gbean called EJBBuilder.
>>
>> In this, you will see an attribute defined as follows:
>>
>> <attribute
>> name="listener">geronimo.server:J2EEApplication=null,J2EEModule=org/apache/g 
>>
>> eronimo/Server,J2EEServer=geronimo,j2eeType=GBean,name=JettyWebContainer</at 
>>
>> tribute>
>>
>> Please change the JettyWebContainer to TomcatWebContainer....and the line
>> should look as follows:
>>
>> <attribute
>> name="listener">geronimo.server:J2EEApplication=null,J2EEModule=org/apache/g 
>>
>> eronimo/Server,J2EEServer=geronimo,j2eeType=GBean,name=TomcatWebContainer</a 
>>
>> ttribute>
>>
>> Then Tomcat should take control of the EJB webservices deployment.
>>
>> Jeff
>>
>> -----Original Message-----
>> From: Stefan Schmidt [mailto:schmidtitc@gmail.com] Sent: Thursday, 
>> June 16, 2005 9:27 PM
>> To: dev@geronimo.apache.org
>> Subject: Re: Webservices for Tomcat now integrated
>>
>> Jeff,
>>
>> I did check out your latest code with svn and build the assembly 
>> again. I have now created two Geronimo folders such as d:/web/Geronimo 
>> and
>> d:/web/Geronimo-Tomcat. Then started d:/web/Geronimo-Tomcat (not
>> d:/web/Geronimo!) and it appears like Tomcat is up and running:
>>
>> INFO  [JkMain] Jk running ID=0 time=0/40  config=null INFO  
>> [Http11Protocol]
>> Initializing Coyote HTTP/1.1 on http-8090 INFO  [Http11Protocol] Starting
>> Coyote HTTP/1.1 on http-8090
>>
>> I changed my port numbers in the wsdl document where necessary and 
>> deployed
>> my ear to Geronimo:
>>
>> INFO  [/dW_PetStore] JSR154 unwrappedDispatchSupported=true INFO
>> [JettyWebAppContext] JettyWebAppContext started INFO  [Container] Started
>> WebApplicationContext[/dW_PetStore,file:/D:/web/Geronimo-Tomcat/config-store 
>>
>> /21/dW_PetStore.war/]
>> INFO
>> [GenericEJBContainer]GenericEJBContainer'geronimo.server:EJBModule=dW_PetSto 
>>
>> re-cmp-ejb.jar,J2EEApplication=dW_PetStore,J2EEServer=geronimo,j2eeType=Enti 
>>
>> tyBean,name=ProductBean'started
>> INFO  [GenericEJBContainer] GenericEJBContainer
>> 'geronimo.server:EJBModule=dW_PetStore-ejb.jar,J2EEApplication=dW_PetStore,J 
>>
>> 2EEServer=geronimo,j2ee
>> Type=StatelessSessionBean,name=PetShopEJB' started
>>
>> So this looks good as well.
>>
>> However from here on I am lost: I try to browse my wsdl on
>> http://localhost:8090/dW_PetStore/WS?wsdl but get an 404 file not 
>> found from
>> Tomcat (obviously it is listening on 8090). However, I accidently went to
>> http://localhost:8080/dW_PetStore/WS?wsdl and the wsdl appears. Now, I 
>> expected Tomcat to run on 8090 but not Jetty on 8080. Then I looked
>> into the Geronimo-Tomcat/config-store/21/dW_PetStore and my ear is nicely
>> sitting there.
>>
>> What gets me even more confused is that the wsdl found at
>> http://localhost:8080/dW_PetStore/WS?wsdl is not my latest wsdl where I
>> inserted a comment for testing purposes...
>> My questions:
>> Is it correct that Jetty is running as well?
>> Where does Jetty find the old dW_PetStore application which is not 
>> deployed
>> on Geronimo-Tomcat, but on Geronimo?
>> How do I deploy to Tomcat?
>>
>> Is it just me who lost it here :-)?
>>
>> Regards,
>>
>> Stefan
>>
>> Jeff Genender wrote:
>>
>>  
>>
>>> Stefan,
>>>
>>> Try and svn update the Tomcat module...I set the necessary 
>>> classloader on the context in one of the objects (which I didn't do 
>>> before).  I don't know if this will fix this...but its worth a try 
>>> (before I try your code myself).
>>>
>>> Jeff
>>>
>>> Stefan Schmidt wrote:
>>>
>>>   
>>>
>>>> Hi Jeff,
>>>>
>>>> I posted the interesting parts into JIRA. The application itself 
>>>> uses a db as well so maybe it is a bit too much overhead for testing 
>>>> a web service. I think I will create some simple test cases over the 
>>>> weekend, so you guys can use them for testing etc.
>>>>
>>>> Regards,
>>>>
>>>> Stefan
>>>>
>>>> Jeff Genender wrote:
>>>>
>>>>     
>>>>
>>>>> First...thanks for trying Tomcat...I need more people like yourself 
>>>>> exercising the module.
>>>>>
>>>>> Can you open a JIRA issue on this under Tomcat and attach a zip 
>>>>> file with all of your code, deployment descripters, etc, to the 
>>>>> JIRA issue?  I can then work on it and find the problem.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Jeff
>>>>> -----Original Message-----
>>>>> From: Stefan Schmidt [mailto:schmidtitc@gmail.com] Sent: Thursday, 
>>>>> June 16, 2005 4:09 AM
>>>>> To: dev@geronimo.apache.org
>>>>> Subject: Re: Webservices for Tomcat now integrated
>>>>>
>>>>> Hi Jeff,
>>>>>
>>>>> I compiled Geronimo with Tomcat and started the server without any 
>>>>> problems.
>>>>> Then I deployed my ear containing some jsp's, a servlet, a session 
>>>>> bean, two entity beans and a Web service (which passes an array of 
>>>>> complexTypes).
>>>>>
>>>>> The ear deploys and runs on Jetty apart from a SOAP response 
>>>>> problem (see JIRA GERONIMO-678 
>>>>> <http://issues.apache.org/jira/browse/GERONIMO-678> that I filed 
>>>>> today). However deploying the same ear (after changing ports in the 
>>>>> wsdl) I get heaps of errors:
>>>>>
>>>>> DEBUG [BaseDeserializerFactory] Exception:
>>>>> java.lang.NoSuchMethodException: 
>>>>> org.apache.axis.encoding.ser.ArrayDeserializerFactory.<init>(java.la
>>>>> ng.Class
>>>>>
>>>>> ,
>>>>> javax.xml.namespace.QName)
>>>>>   at java.lang.Class.getConstructor0(Unknown Source)
>>>>>   at java.lang.Class.getConstructor(Unknown Source)
>>>>>   at
>>>>> org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(B
>>>>> aseDeser
>>>>>
>>>>> ializerFactory.java:246)
>>>>>   at
>>>>> org.apache.geronimo.axis.client.TypeInfo.register(TypeInfo.java:93)
>>>>>   at
>>>>> org.apache.geronimo.axis.client.TypeInfo.register(TypeInfo.java:47)
>>>>>
>>>>> The same error is thrown several more times in different line 
>>>>> numbers of the BaseDeserializerFactory class.
>>>>>
>>>>> Am I compiling the Geronimo/Tomcat server with an obsolete Axis 
>>>>> distribution?
>>>>>
>>>>> Also, I would really appreciate if you could have a look into
>>>>> GERONIMO-678 <http://issues.apache.org/jira/browse/GERONIMO-678>
>>>>> since you
>>>>> seem to be quite into the WS stuff and David is too busy to look 
>>>>> into this before JavaOne. I will also have a look into it over the 
>>>>> weekend (but I might not be experienced enough to find the cause of 
>>>>> the problem, what makes it worse is that there is actually no error 
>>>>> msg).
>>>>>
>>>>> Regards,
>>>>>
>>>>> Stefan
>>>>>
>>>>> Jeff Genender wrote:
>>>>>
>>>>>
>>>>>
>>>>>       
>>>>>
>>>>>> Hi Stefan,
>>>>>>
>>>>>> To set up Tomcat...look here:
>>>>>>
>>>>>> http://wiki.apache.org/geronimo/Tomcat
>>>>>>
>>>>>>
>>>>>> Basically its just a lot of commenting and uncommenting in the 
>>>>>> plans, then rebuilding assembly again (we will be making this 
>>>>>> simpler in the near future).  Deploying your webservices should be 
>>>>>> nearly identical to
>>>>>>  
>>>>>>         
>>>>>
>>>>> Jetty.
>>>>>
>>>>>
>>>>>       
>>>>>
>>>>>> As for GERONIMO-672...after looking at that...is it possible you 
>>>>>> have your configuration messed up slightly? I looked at the stack 
>>>>>> trace and I saw
>>>>>> this:
>>>>>>
>>>>>> Caused by: java.lang.IllegalStateException: No wsdl or schema 
>>>>>> known at location: ETA-INF/wsdl/HelloService.wsdl
>>>>>>
>>>>>> Notice...ETA-INF/wsdl/HelloService.wsdl.  Looks like the "M" was 
>>>>>> missing and thus could be the cause of the error.  What does your 
>>>>>> open-ejb deployment plan and webservices.xml look like?
>>>>>>
>>>>>> What are your issues with complexTypes etc?  Have you opened a 
>>>>>> JIRA ticket in this area?
>>>>>>
>>>>>> Jeff
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Stefan Schmidt [mailto:schmidtitc@gmail.com]
>>>>>> Sent: Wednesday, June 15, 2005 6:17 PM
>>>>>> To: dev@geronimo.apache.org
>>>>>> Subject: Re: Webservices for Tomcat now integrated
>>>>>>
>>>>>> Hi Jeff,
>>>>>>
>>>>>> Since I am currently working on a Servlet and EJB-based WS example 
>>>>>> on Geronimo I am very interested in testing it. For now I have 
>>>>>> only run some tests on Jetty, but if you could provide some 
>>>>>> information on Tomcat I would be more than happy to test this. 
>>>>>> Could you provide your detailed setup information?
>>>>>>
>>>>>> Also, I encountered some issues for the EJB endpoint and opened 
>>>>>> JIRA issue
>>>>>> GERONIMO-762 so I am not sure if that has been fixed. Furthermore, 
>>>>>> have you looked into complexTypes (and the mappings)? I have 
>>>>>> encountered some more problems there recently.
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Stefan Schmidt
>>>>>>
>>>>>> Dain Sundstrom wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>         
>>>>>>
>>>>>>> Very cool!
>>>>>>>
>>>>>>> -dain
>>>>>>>
>>>>>>> On Jun 15, 2005, at 10:12 AM, Jeff Genender wrote:
>>>>>>>
>>>>>>>
>>>>>>>  
>>>>>>>           
>>>>>>>
>>>>>>>> Just announcing that webservices for Tomcat has been integrated.
>>>>>>>>
>>>>>>>> The only caveat is for the EJB side.  Currently all webservices 
>>>>>>>> will go to the default Host (which for 99% of the applications 
>>>>>>>> is fine)...as there needs to be some slight modifications to 
>>>>>>>> OpenEJB  to handle virtual hosts.  JIRA issue GERONIMO-666 was 
>>>>>>>> opened on this.
>>>>>>>>
>>>>>>>> However, it does appear to work with my setup. I can use some 
>>>>>>>> help with testing this piece with both EJB and Servlet based web 
>>>>>>>> services with different types of applications.  So any users who 
>>>>>>>> want to give it a roll, it would be appreciated ;-)
>>>>>>>>
>>>>>>>> Jeff
>>>>>>>>
>>>>>>>>                     
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>  
>>>>>>         
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>       
>>
>>
>>
>>
>>  
>>

Re: Webservices for Tomcat now integrated

Posted by Stefan Schmidt <sc...@gmail.com>.
Jeff,

I have changed the two files but cannot build (cd modules/assembly/maven -o)
I get the following msg:

-----------------------------------------------------------------------------
13:45:09,290 INFO  [Daemon] Server startup completed
    [echo] server has started
    [echo] Building default database configuration
    [java]     Error: Deployment failed, Server reports:
    [java]     org.apache.geronimo.common.DeploymentException: Syntax 
error in
    [java]     deployment plan or no deployer service available 
(currently I can't
    [java]     tell the difference):
    [java]     
planFile=D:\javalibs\geronimo3\geronimo\modules\assembly\target\plan\default-database-plan.xml,
    [java]     
moduleFileC:\DOCUME~1\STEFAN~1\LOCALS~1\Temp\deployer21004.tmpdir\tranql-connector-1.0-SNAPSHOT.rar
    [java]
    [java]      Syntax error in deployment plan or no deployer service 
available

    [java]     (currently I can't tell the difference):
    [java]     
planFile=D:\javalibs\geronimo3\geronimo\modules\assembly\target\plan\default-database-plan.xml,
    [java]     
moduleFileC:\DOCUME~1\STEFAN~1\LOCALS~1\Temp\deployer21004.tmpdir\tranql-connector-1.0-SNAPSHOT.rar
    [java]

BUILD FAILED
File...... D:\javalibs\geronimo3\geronimo\modules\assembly\maven.xml
Element... ant:java
Line...... 388
Column.... 88
Java returned: 1
Total time: 1 minutes 10 seconds
-------------------------------------------------------------------------------------

I have not changed anything in default-database-plan.xml.

Any ideas?

:Stefan

Jeff Genender wrote:

>Stefan...you are almost there ;-) 
>
>In j2ee-deployer-plan.xml and j2ee-runtime-deployerplan.xml, there is a
>Gbean called EJBBuilder.
>
>In this, you will see an attribute defined as follows:
>
><attribute
>name="listener">geronimo.server:J2EEApplication=null,J2EEModule=org/apache/g
>eronimo/Server,J2EEServer=geronimo,j2eeType=GBean,name=JettyWebContainer</at
>tribute>
>
>Please change the JettyWebContainer to TomcatWebContainer....and the line
>should look as follows:
>
><attribute
>name="listener">geronimo.server:J2EEApplication=null,J2EEModule=org/apache/g
>eronimo/Server,J2EEServer=geronimo,j2eeType=GBean,name=TomcatWebContainer</a
>ttribute>
>
>Then Tomcat should take control of the EJB webservices deployment.
>
>Jeff
>
>-----Original Message-----
>From: Stefan Schmidt [mailto:schmidtitc@gmail.com] 
>Sent: Thursday, June 16, 2005 9:27 PM
>To: dev@geronimo.apache.org
>Subject: Re: Webservices for Tomcat now integrated
>
>Jeff,
>
>I did check out your latest code with svn and build the assembly again. 
>I have now created two Geronimo folders such as d:/web/Geronimo and
>d:/web/Geronimo-Tomcat. Then started d:/web/Geronimo-Tomcat (not
>d:/web/Geronimo!) and it appears like Tomcat is up and running:
>
>INFO  [JkMain] Jk running ID=0 time=0/40  config=null INFO  [Http11Protocol]
>Initializing Coyote HTTP/1.1 on http-8090 INFO  [Http11Protocol] Starting
>Coyote HTTP/1.1 on http-8090
>
>I changed my port numbers in the wsdl document where necessary and deployed
>my ear to Geronimo:
>
>INFO  [/dW_PetStore] JSR154 unwrappedDispatchSupported=true INFO
>[JettyWebAppContext] JettyWebAppContext started INFO  [Container] Started
>WebApplicationContext[/dW_PetStore,file:/D:/web/Geronimo-Tomcat/config-store
>/21/dW_PetStore.war/]
>INFO
>[GenericEJBContainer]GenericEJBContainer'geronimo.server:EJBModule=dW_PetSto
>re-cmp-ejb.jar,J2EEApplication=dW_PetStore,J2EEServer=geronimo,j2eeType=Enti
>tyBean,name=ProductBean'started
>INFO  [GenericEJBContainer] GenericEJBContainer
>'geronimo.server:EJBModule=dW_PetStore-ejb.jar,J2EEApplication=dW_PetStore,J
>2EEServer=geronimo,j2ee
>Type=StatelessSessionBean,name=PetShopEJB' started
>
>So this looks good as well.
>
>However from here on I am lost: I try to browse my wsdl on
>http://localhost:8090/dW_PetStore/WS?wsdl but get an 404 file not found from
>Tomcat (obviously it is listening on 8090). However, I accidently went to
>http://localhost:8080/dW_PetStore/WS?wsdl and the wsdl appears. 
>Now, I expected Tomcat to run on 8090 but not Jetty on 8080. Then I looked
>into the Geronimo-Tomcat/config-store/21/dW_PetStore and my ear is nicely
>sitting there.
>
>What gets me even more confused is that the wsdl found at
>http://localhost:8080/dW_PetStore/WS?wsdl is not my latest wsdl where I
>inserted a comment for testing purposes... 
>
>My questions:
>Is it correct that Jetty is running as well?
>Where does Jetty find the old dW_PetStore application which is not deployed
>on Geronimo-Tomcat, but on Geronimo?
>How do I deploy to Tomcat?
>
>Is it just me who lost it here :-)?
>
>Regards,
>
>Stefan
>
>Jeff Genender wrote:
>
>  
>
>>Stefan,
>>
>>Try and svn update the Tomcat module...I set the necessary classloader 
>>on the context in one of the objects (which I didn't do before).  I 
>>don't know if this will fix this...but its worth a try (before I try 
>>your code myself).
>>
>>Jeff
>>
>>Stefan Schmidt wrote:
>>
>>    
>>
>>>Hi Jeff,
>>>
>>>I posted the interesting parts into JIRA. The application itself uses 
>>>a db as well so maybe it is a bit too much overhead for testing a web 
>>>service. I think I will create some simple test cases over the 
>>>weekend, so you guys can use them for testing etc.
>>>
>>>Regards,
>>>
>>>Stefan
>>>
>>>Jeff Genender wrote:
>>>
>>>      
>>>
>>>>First...thanks for trying Tomcat...I need more people like yourself 
>>>>exercising the module.
>>>>
>>>>Can you open a JIRA issue on this under Tomcat and attach a zip file 
>>>>with all of your code, deployment descripters, etc, to the JIRA 
>>>>issue?  I can then work on it and find the problem.
>>>>
>>>>Thanks,
>>>>
>>>>Jeff
>>>>-----Original Message-----
>>>>From: Stefan Schmidt [mailto:schmidtitc@gmail.com] Sent: Thursday, 
>>>>June 16, 2005 4:09 AM
>>>>To: dev@geronimo.apache.org
>>>>Subject: Re: Webservices for Tomcat now integrated
>>>>
>>>>Hi Jeff,
>>>>
>>>>I compiled Geronimo with Tomcat and started the server without any 
>>>>problems.
>>>>Then I deployed my ear containing some jsp's, a servlet, a session 
>>>>bean, two entity beans and a Web service (which passes an array of 
>>>>complexTypes).
>>>>
>>>>The ear deploys and runs on Jetty apart from a SOAP response problem 
>>>>(see JIRA GERONIMO-678 
>>>><http://issues.apache.org/jira/browse/GERONIMO-678> that I filed 
>>>>today). However deploying the same ear (after changing ports in the 
>>>>wsdl) I get heaps of errors:
>>>>
>>>>DEBUG [BaseDeserializerFactory] Exception:
>>>>java.lang.NoSuchMethodException: 
>>>>org.apache.axis.encoding.ser.ArrayDeserializerFactory.<init>(java.la
>>>>ng.Class
>>>>
>>>>,
>>>>javax.xml.namespace.QName)
>>>>   at java.lang.Class.getConstructor0(Unknown Source)
>>>>   at java.lang.Class.getConstructor(Unknown Source)
>>>>   at
>>>>org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(B
>>>>aseDeser
>>>>
>>>>ializerFactory.java:246)
>>>>   at
>>>>org.apache.geronimo.axis.client.TypeInfo.register(TypeInfo.java:93)
>>>>   at
>>>>org.apache.geronimo.axis.client.TypeInfo.register(TypeInfo.java:47)
>>>>
>>>>The same error is thrown several more times in different line 
>>>>numbers of the BaseDeserializerFactory class.
>>>>
>>>>Am I compiling the Geronimo/Tomcat server with an obsolete Axis 
>>>>distribution?
>>>>
>>>>Also, I would really appreciate if you could have a look into
>>>>GERONIMO-678 <http://issues.apache.org/jira/browse/GERONIMO-678>
>>>>since you
>>>>seem to be quite into the WS stuff and David is too busy to look 
>>>>into this before JavaOne. I will also have a look into it over the 
>>>>weekend (but I might not be experienced enough to find the cause of 
>>>>the problem, what makes it worse is that there is actually no error 
>>>>msg).
>>>>
>>>>Regards,
>>>>
>>>>Stefan
>>>>
>>>>Jeff Genender wrote:
>>>>
>>>> 
>>>>
>>>>        
>>>>
>>>>>Hi Stefan,
>>>>>
>>>>>To set up Tomcat...look here:
>>>>>
>>>>>http://wiki.apache.org/geronimo/Tomcat
>>>>>
>>>>>
>>>>>Basically its just a lot of commenting and uncommenting in the 
>>>>>plans, then rebuilding assembly again (we will be making this 
>>>>>simpler in the near future).  Deploying your webservices should be 
>>>>>nearly identical to
>>>>>  
>>>>>          
>>>>>
>>>>Jetty.
>>>> 
>>>>
>>>>        
>>>>
>>>>>As for GERONIMO-672...after looking at that...is it possible you 
>>>>>have your configuration messed up slightly? I looked at the stack 
>>>>>trace and I saw
>>>>>this:
>>>>>
>>>>>Caused by: java.lang.IllegalStateException: No wsdl or schema known 
>>>>>at location: ETA-INF/wsdl/HelloService.wsdl
>>>>>
>>>>>Notice...ETA-INF/wsdl/HelloService.wsdl.  Looks like the "M" was 
>>>>>missing and thus could be the cause of the error.  What does your 
>>>>>open-ejb deployment plan and webservices.xml look like?
>>>>>
>>>>>What are your issues with complexTypes etc?  Have you opened a JIRA 
>>>>>ticket in this area?
>>>>>
>>>>>Jeff
>>>>>
>>>>>-----Original Message-----
>>>>>From: Stefan Schmidt [mailto:schmidtitc@gmail.com]
>>>>>Sent: Wednesday, June 15, 2005 6:17 PM
>>>>>To: dev@geronimo.apache.org
>>>>>Subject: Re: Webservices for Tomcat now integrated
>>>>>
>>>>>Hi Jeff,
>>>>>
>>>>>Since I am currently working on a Servlet and EJB-based WS example 
>>>>>on Geronimo I am very interested in testing it. For now I have only 
>>>>>run some tests on Jetty, but if you could provide some information 
>>>>>on Tomcat I would be more than happy to test this. Could you 
>>>>>provide your detailed setup information?
>>>>>
>>>>>Also, I encountered some issues for the EJB endpoint and opened 
>>>>>JIRA issue
>>>>>GERONIMO-762 so I am not sure if that has been fixed. Furthermore, 
>>>>>have you looked into complexTypes (and the mappings)? I have 
>>>>>encountered some more problems there recently.
>>>>>
>>>>>Regards,
>>>>>
>>>>>Stefan Schmidt
>>>>>
>>>>>Dain Sundstrom wrote:
>>>>>
>>>>>
>>>>>
>>>>> 
>>>>>
>>>>>          
>>>>>
>>>>>>Very cool!
>>>>>>
>>>>>>-dain
>>>>>>
>>>>>>On Jun 15, 2005, at 10:12 AM, Jeff Genender wrote:
>>>>>>
>>>>>> 
>>>>>>   
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>Just announcing that webservices for Tomcat has been integrated.
>>>>>>>
>>>>>>>The only caveat is for the EJB side.  Currently all webservices 
>>>>>>>will go to the default Host (which for 99% of the applications is 
>>>>>>>fine)...as there needs to be some slight modifications to OpenEJB  
>>>>>>>to handle virtual hosts.  JIRA issue GERONIMO-666 was opened on 
>>>>>>>this.
>>>>>>>
>>>>>>>However, it does appear to work with my setup. I can use some 
>>>>>>>help with testing this piece with both EJB and Servlet based web 
>>>>>>>services with different types of applications.  So any users who 
>>>>>>>want to give it a roll, it would be appreciated ;-)
>>>>>>>
>>>>>>>Jeff
>>>>>>>
>>>>>>>         
>>>>>>>              
>>>>>>>
>>>>>> 
>>>>>>    
>>>>>>            
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>  
>>>>>          
>>>>>
>>>>
>>>>
>>>>
>>>> 
>>>>
>>>>        
>>>>
>
>
>
>  
>


RE: Webservices for Tomcat now integrated

Posted by Jeff Genender <jg...@savoirtech.com>.
Stefan...you are almost there ;-) 

In j2ee-deployer-plan.xml and j2ee-runtime-deployerplan.xml, there is a
Gbean called EJBBuilder.

In this, you will see an attribute defined as follows:

<attribute
name="listener">geronimo.server:J2EEApplication=null,J2EEModule=org/apache/g
eronimo/Server,J2EEServer=geronimo,j2eeType=GBean,name=JettyWebContainer</at
tribute>

Please change the JettyWebContainer to TomcatWebContainer....and the line
should look as follows:

<attribute
name="listener">geronimo.server:J2EEApplication=null,J2EEModule=org/apache/g
eronimo/Server,J2EEServer=geronimo,j2eeType=GBean,name=TomcatWebContainer</a
ttribute>

Then Tomcat should take control of the EJB webservices deployment.

Jeff

-----Original Message-----
From: Stefan Schmidt [mailto:schmidtitc@gmail.com] 
Sent: Thursday, June 16, 2005 9:27 PM
To: dev@geronimo.apache.org
Subject: Re: Webservices for Tomcat now integrated

Jeff,

I did check out your latest code with svn and build the assembly again. 
I have now created two Geronimo folders such as d:/web/Geronimo and
d:/web/Geronimo-Tomcat. Then started d:/web/Geronimo-Tomcat (not
d:/web/Geronimo!) and it appears like Tomcat is up and running:

INFO  [JkMain] Jk running ID=0 time=0/40  config=null INFO  [Http11Protocol]
Initializing Coyote HTTP/1.1 on http-8090 INFO  [Http11Protocol] Starting
Coyote HTTP/1.1 on http-8090

I changed my port numbers in the wsdl document where necessary and deployed
my ear to Geronimo:

INFO  [/dW_PetStore] JSR154 unwrappedDispatchSupported=true INFO
[JettyWebAppContext] JettyWebAppContext started INFO  [Container] Started
WebApplicationContext[/dW_PetStore,file:/D:/web/Geronimo-Tomcat/config-store
/21/dW_PetStore.war/]
INFO
[GenericEJBContainer]GenericEJBContainer'geronimo.server:EJBModule=dW_PetSto
re-cmp-ejb.jar,J2EEApplication=dW_PetStore,J2EEServer=geronimo,j2eeType=Enti
tyBean,name=ProductBean'started
INFO  [GenericEJBContainer] GenericEJBContainer
'geronimo.server:EJBModule=dW_PetStore-ejb.jar,J2EEApplication=dW_PetStore,J
2EEServer=geronimo,j2ee
Type=StatelessSessionBean,name=PetShopEJB' started

So this looks good as well.

However from here on I am lost: I try to browse my wsdl on
http://localhost:8090/dW_PetStore/WS?wsdl but get an 404 file not found from
Tomcat (obviously it is listening on 8090). However, I accidently went to
http://localhost:8080/dW_PetStore/WS?wsdl and the wsdl appears. 
Now, I expected Tomcat to run on 8090 but not Jetty on 8080. Then I looked
into the Geronimo-Tomcat/config-store/21/dW_PetStore and my ear is nicely
sitting there.

What gets me even more confused is that the wsdl found at
http://localhost:8080/dW_PetStore/WS?wsdl is not my latest wsdl where I
inserted a comment for testing purposes... 

My questions:
Is it correct that Jetty is running as well?
Where does Jetty find the old dW_PetStore application which is not deployed
on Geronimo-Tomcat, but on Geronimo?
How do I deploy to Tomcat?

Is it just me who lost it here :-)?

Regards,

Stefan

Jeff Genender wrote:

> Stefan,
>
> Try and svn update the Tomcat module...I set the necessary classloader 
> on the context in one of the objects (which I didn't do before).  I 
> don't know if this will fix this...but its worth a try (before I try 
> your code myself).
>
> Jeff
>
> Stefan Schmidt wrote:
>
>> Hi Jeff,
>>
>> I posted the interesting parts into JIRA. The application itself uses 
>> a db as well so maybe it is a bit too much overhead for testing a web 
>> service. I think I will create some simple test cases over the 
>> weekend, so you guys can use them for testing etc.
>>
>> Regards,
>>
>> Stefan
>>
>> Jeff Genender wrote:
>>
>>> First...thanks for trying Tomcat...I need more people like yourself 
>>> exercising the module.
>>>
>>> Can you open a JIRA issue on this under Tomcat and attach a zip file 
>>> with all of your code, deployment descripters, etc, to the JIRA 
>>> issue?  I can then work on it and find the problem.
>>>
>>> Thanks,
>>>
>>> Jeff
>>> -----Original Message-----
>>> From: Stefan Schmidt [mailto:schmidtitc@gmail.com] Sent: Thursday, 
>>> June 16, 2005 4:09 AM
>>> To: dev@geronimo.apache.org
>>> Subject: Re: Webservices for Tomcat now integrated
>>>
>>> Hi Jeff,
>>>
>>> I compiled Geronimo with Tomcat and started the server without any 
>>> problems.
>>> Then I deployed my ear containing some jsp's, a servlet, a session 
>>> bean, two entity beans and a Web service (which passes an array of 
>>> complexTypes).
>>>
>>> The ear deploys and runs on Jetty apart from a SOAP response problem 
>>> (see JIRA GERONIMO-678 
>>> <http://issues.apache.org/jira/browse/GERONIMO-678> that I filed 
>>> today). However deploying the same ear (after changing ports in the 
>>> wsdl) I get heaps of errors:
>>>
>>> DEBUG [BaseDeserializerFactory] Exception:
>>> java.lang.NoSuchMethodException: 
>>> org.apache.axis.encoding.ser.ArrayDeserializerFactory.<init>(java.la
>>> ng.Class
>>>
>>> ,
>>> javax.xml.namespace.QName)
>>>    at java.lang.Class.getConstructor0(Unknown Source)
>>>    at java.lang.Class.getConstructor(Unknown Source)
>>>    at
>>> org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(B
>>> aseDeser
>>>
>>> ializerFactory.java:246)
>>>    at
>>> org.apache.geronimo.axis.client.TypeInfo.register(TypeInfo.java:93)
>>>    at
>>> org.apache.geronimo.axis.client.TypeInfo.register(TypeInfo.java:47)
>>>
>>> The same error is thrown several more times in different line 
>>> numbers of the BaseDeserializerFactory class.
>>>
>>> Am I compiling the Geronimo/Tomcat server with an obsolete Axis 
>>> distribution?
>>>
>>> Also, I would really appreciate if you could have a look into
>>> GERONIMO-678 <http://issues.apache.org/jira/browse/GERONIMO-678>
>>> since you
>>> seem to be quite into the WS stuff and David is too busy to look 
>>> into this before JavaOne. I will also have a look into it over the 
>>> weekend (but I might not be experienced enough to find the cause of 
>>> the problem, what makes it worse is that there is actually no error 
>>> msg).
>>>
>>> Regards,
>>>
>>> Stefan
>>>
>>> Jeff Genender wrote:
>>>
>>>  
>>>
>>>> Hi Stefan,
>>>>
>>>> To set up Tomcat...look here:
>>>>
>>>> http://wiki.apache.org/geronimo/Tomcat
>>>>
>>>>
>>>> Basically its just a lot of commenting and uncommenting in the 
>>>> plans, then rebuilding assembly again (we will be making this 
>>>> simpler in the near future).  Deploying your webservices should be 
>>>> nearly identical to
>>>>   
>>>
>>>
>>> Jetty.
>>>  
>>>
>>>> As for GERONIMO-672...after looking at that...is it possible you 
>>>> have your configuration messed up slightly? I looked at the stack 
>>>> trace and I saw
>>>> this:
>>>>
>>>> Caused by: java.lang.IllegalStateException: No wsdl or schema known 
>>>> at location: ETA-INF/wsdl/HelloService.wsdl
>>>>
>>>> Notice...ETA-INF/wsdl/HelloService.wsdl.  Looks like the "M" was 
>>>> missing and thus could be the cause of the error.  What does your 
>>>> open-ejb deployment plan and webservices.xml look like?
>>>>
>>>> What are your issues with complexTypes etc?  Have you opened a JIRA 
>>>> ticket in this area?
>>>>
>>>> Jeff
>>>>
>>>> -----Original Message-----
>>>> From: Stefan Schmidt [mailto:schmidtitc@gmail.com]
>>>> Sent: Wednesday, June 15, 2005 6:17 PM
>>>> To: dev@geronimo.apache.org
>>>> Subject: Re: Webservices for Tomcat now integrated
>>>>
>>>> Hi Jeff,
>>>>
>>>> Since I am currently working on a Servlet and EJB-based WS example 
>>>> on Geronimo I am very interested in testing it. For now I have only 
>>>> run some tests on Jetty, but if you could provide some information 
>>>> on Tomcat I would be more than happy to test this. Could you 
>>>> provide your detailed setup information?
>>>>
>>>> Also, I encountered some issues for the EJB endpoint and opened 
>>>> JIRA issue
>>>> GERONIMO-762 so I am not sure if that has been fixed. Furthermore, 
>>>> have you looked into complexTypes (and the mappings)? I have 
>>>> encountered some more problems there recently.
>>>>
>>>> Regards,
>>>>
>>>> Stefan Schmidt
>>>>
>>>> Dain Sundstrom wrote:
>>>>
>>>>
>>>>
>>>>  
>>>>
>>>>> Very cool!
>>>>>
>>>>> -dain
>>>>>
>>>>> On Jun 15, 2005, at 10:12 AM, Jeff Genender wrote:
>>>>>
>>>>>  
>>>>>    
>>>>>
>>>>>> Just announcing that webservices for Tomcat has been integrated.
>>>>>>
>>>>>> The only caveat is for the EJB side.  Currently all webservices 
>>>>>> will go to the default Host (which for 99% of the applications is 
>>>>>> fine)...as there needs to be some slight modifications to OpenEJB  
>>>>>> to handle virtual hosts.  JIRA issue GERONIMO-666 was opened on 
>>>>>> this.
>>>>>>
>>>>>> However, it does appear to work with my setup. I can use some 
>>>>>> help with testing this piece with both EJB and Servlet based web 
>>>>>> services with different types of applications.  So any users who 
>>>>>> want to give it a roll, it would be appreciated ;-)
>>>>>>
>>>>>> Jeff
>>>>>>
>>>>>>          
>>>>>
>>>>>
>>>>>  
>>>>>     
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>   
>>>
>>>
>>>
>>>
>>>
>>>  
>>>
>



Re: Webservices for Tomcat now integrated

Posted by Stefan Schmidt <sc...@gmail.com>.
Jeff,

I did check out your latest code with svn and build the assembly again. 
I have now created two Geronimo folders such as d:/web/Geronimo and 
d:/web/Geronimo-Tomcat. Then started d:/web/Geronimo-Tomcat (not 
d:/web/Geronimo!) and it appears like Tomcat is up and running:

INFO  [JkMain] Jk running ID=0 time=0/40  config=null
INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-8090
INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-8090

I changed my port numbers in the wsdl document where necessary and 
deployed my ear to Geronimo:

INFO  [/dW_PetStore] JSR154 unwrappedDispatchSupported=true
INFO  [JettyWebAppContext] JettyWebAppContext started
INFO  [Container] Started 
WebApplicationContext[/dW_PetStore,file:/D:/web/Geronimo-Tomcat/config-store/21/dW_PetStore.war/]
INFO 
[GenericEJBContainer]GenericEJBContainer'geronimo.server:EJBModule=dW_PetStore-cmp-ejb.jar,J2EEApplication=dW_PetStore,J2EEServer=geronimo,j2eeType=EntityBean,name=ProductBean'started
INFO  [GenericEJBContainer] GenericEJBContainer 
'geronimo.server:EJBModule=dW_PetStore-ejb.jar,J2EEApplication=dW_PetStore,J2EEServer=geronimo,j2ee
Type=StatelessSessionBean,name=PetShopEJB' started

So this looks good as well.

However from here on I am lost: I try to browse my wsdl on 
http://localhost:8090/dW_PetStore/WS?wsdl but get an 404 file not found 
from Tomcat (obviously it is listening on 8090). However, I accidently 
went to http://localhost:8080/dW_PetStore/WS?wsdl and the wsdl appears. 
Now, I expected Tomcat to run on 8090 but not Jetty on 8080. Then I 
looked into the Geronimo-Tomcat/config-store/21/dW_PetStore and my ear 
is nicely sitting there.

What gets me even more confused is that the wsdl found at 
http://localhost:8080/dW_PetStore/WS?wsdl is not my latest wsdl where I 
inserted a comment for testing purposes... 

My questions:
Is it correct that Jetty is running as well?
Where does Jetty find the old dW_PetStore application which is not 
deployed on Geronimo-Tomcat, but on Geronimo?
How do I deploy to Tomcat?

Is it just me who lost it here :-)?

Regards,

Stefan

Jeff Genender wrote:

> Stefan,
>
> Try and svn update the Tomcat module...I set the necessary classloader 
> on the context in one of the objects (which I didn't do before).  I 
> don't know if this will fix this...but its worth a try (before I try 
> your code myself).
>
> Jeff
>
> Stefan Schmidt wrote:
>
>> Hi Jeff,
>>
>> I posted the interesting parts into JIRA. The application itself uses 
>> a db as well so maybe it is a bit too much overhead for testing a web 
>> service. I think I will create some simple test cases over the 
>> weekend, so you guys can use them for testing etc.
>>
>> Regards,
>>
>> Stefan
>>
>> Jeff Genender wrote:
>>
>>> First...thanks for trying Tomcat...I need more people like yourself
>>> exercising the module.
>>>
>>> Can you open a JIRA issue on this under Tomcat and attach a zip file 
>>> with
>>> all of your code, deployment descripters, etc, to the JIRA issue?  I 
>>> can
>>> then work on it and find the problem.
>>>
>>> Thanks,
>>>
>>> Jeff
>>> -----Original Message-----
>>> From: Stefan Schmidt [mailto:schmidtitc@gmail.com] Sent: Thursday, 
>>> June 16, 2005 4:09 AM
>>> To: dev@geronimo.apache.org
>>> Subject: Re: Webservices for Tomcat now integrated
>>>
>>> Hi Jeff,
>>>
>>> I compiled Geronimo with Tomcat and started the server without any 
>>> problems.
>>> Then I deployed my ear containing some jsp's, a servlet, a session 
>>> bean, two
>>> entity beans and a Web service (which passes an array of complexTypes).
>>>
>>> The ear deploys and runs on Jetty apart from a SOAP response problem 
>>> (see
>>> JIRA GERONIMO-678 
>>> <http://issues.apache.org/jira/browse/GERONIMO-678> that I
>>> filed today). However deploying the same ear (after changing ports 
>>> in the wsdl) I get
>>> heaps of errors:
>>>
>>> DEBUG [BaseDeserializerFactory] Exception:
>>> java.lang.NoSuchMethodException: 
>>> org.apache.axis.encoding.ser.ArrayDeserializerFactory.<init>(java.lang.Class 
>>>
>>> ,
>>> javax.xml.namespace.QName)
>>>    at java.lang.Class.getConstructor0(Unknown Source)
>>>    at java.lang.Class.getConstructor(Unknown Source)
>>>    at
>>> org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(BaseDeser 
>>>
>>> ializerFactory.java:246)
>>>    at 
>>> org.apache.geronimo.axis.client.TypeInfo.register(TypeInfo.java:93)
>>>    at 
>>> org.apache.geronimo.axis.client.TypeInfo.register(TypeInfo.java:47)
>>>
>>> The same error is thrown several more times in different line 
>>> numbers of the
>>> BaseDeserializerFactory class.
>>>
>>> Am I compiling the Geronimo/Tomcat server with an obsolete Axis
>>> distribution?
>>>
>>> Also, I would really appreciate if you could have a look into
>>> GERONIMO-678 <http://issues.apache.org/jira/browse/GERONIMO-678> 
>>> since you
>>> seem to be quite into the WS stuff and David is too busy to look 
>>> into this
>>> before JavaOne. I will also have a look into it over the weekend (but I
>>> might not be experienced enough to find the cause of the problem, 
>>> what makes
>>> it worse is that there is actually no error msg).
>>>
>>> Regards,
>>>
>>> Stefan
>>>
>>> Jeff Genender wrote:
>>>
>>>  
>>>
>>>> Hi Stefan,
>>>>
>>>> To set up Tomcat...look here:
>>>>
>>>> http://wiki.apache.org/geronimo/Tomcat
>>>>
>>>>
>>>> Basically its just a lot of commenting and uncommenting in the 
>>>> plans, then rebuilding assembly again (we will be making this 
>>>> simpler in the near future).  Deploying your webservices should be 
>>>> nearly identical to
>>>>   
>>>
>>>
>>> Jetty.
>>>  
>>>
>>>> As for GERONIMO-672...after looking at that...is it possible you 
>>>> have your configuration messed up slightly? I looked at the stack 
>>>> trace and I saw
>>>> this:
>>>>
>>>> Caused by: java.lang.IllegalStateException: No wsdl or schema known 
>>>> at location: ETA-INF/wsdl/HelloService.wsdl
>>>>
>>>> Notice...ETA-INF/wsdl/HelloService.wsdl.  Looks like the "M" was 
>>>> missing and thus could be the cause of the error.  What does your 
>>>> open-ejb deployment plan and webservices.xml look like?
>>>>
>>>> What are your issues with complexTypes etc?  Have you opened a JIRA 
>>>> ticket in this area?
>>>>
>>>> Jeff
>>>>
>>>> -----Original Message-----
>>>> From: Stefan Schmidt [mailto:schmidtitc@gmail.com]
>>>> Sent: Wednesday, June 15, 2005 6:17 PM
>>>> To: dev@geronimo.apache.org
>>>> Subject: Re: Webservices for Tomcat now integrated
>>>>
>>>> Hi Jeff,
>>>>
>>>> Since I am currently working on a Servlet and EJB-based WS example 
>>>> on Geronimo I am very interested in testing it. For now I have only 
>>>> run some tests on Jetty, but if you could provide some information 
>>>> on Tomcat I would be more than happy to test this. Could you 
>>>> provide your detailed setup information?
>>>>
>>>> Also, I encountered some issues for the EJB endpoint and opened 
>>>> JIRA issue
>>>> GERONIMO-762 so I am not sure if that has been fixed. Furthermore, 
>>>> have you looked into complexTypes (and the mappings)? I have 
>>>> encountered some more problems there recently.
>>>>
>>>> Regards,
>>>>
>>>> Stefan Schmidt
>>>>
>>>> Dain Sundstrom wrote:
>>>>
>>>>
>>>>
>>>>  
>>>>
>>>>> Very cool!
>>>>>
>>>>> -dain
>>>>>
>>>>> On Jun 15, 2005, at 10:12 AM, Jeff Genender wrote:
>>>>>
>>>>>  
>>>>>    
>>>>>
>>>>>> Just announcing that webservices for Tomcat has been integrated.
>>>>>>
>>>>>> The only caveat is for the EJB side.  Currently all webservices  
>>>>>> will go to the default Host (which for 99% of the applications is 
>>>>>> fine)...as there needs to be some slight modifications to 
>>>>>> OpenEJB  to handle virtual hosts.  JIRA issue GERONIMO-666 was 
>>>>>> opened on this.
>>>>>>
>>>>>> However, it does appear to work with my setup. I can use some 
>>>>>> help with testing this piece with both EJB and Servlet based web  
>>>>>> services with different types of applications.  So any users who  
>>>>>> want to give it a roll, it would be appreciated ;-)
>>>>>>
>>>>>> Jeff
>>>>>>
>>>>>>          
>>>>>
>>>>>
>>>>>  
>>>>>     
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>   
>>>
>>>
>>>
>>>
>>>
>>>  
>>>
>


Re: Webservices for Tomcat now integrated

Posted by Jeff Genender <jg...@savoirtech.com>.
Stefan,

Try and svn update the Tomcat module...I set the necessary classloader 
on the context in one of the objects (which I didn't do before).  I 
don't know if this will fix this...but its worth a try (before I try 
your code myself).

Jeff

Stefan Schmidt wrote:
> Hi Jeff,
> 
> I posted the interesting parts into JIRA. The application itself uses a 
> db as well so maybe it is a bit too much overhead for testing a web 
> service. I think I will create some simple test cases over the weekend, 
> so you guys can use them for testing etc.
> 
> Regards,
> 
> Stefan
> 
> Jeff Genender wrote:
> 
>> First...thanks for trying Tomcat...I need more people like yourself
>> exercising the module.
>>
>> Can you open a JIRA issue on this under Tomcat and attach a zip file with
>> all of your code, deployment descripters, etc, to the JIRA issue?  I can
>> then work on it and find the problem.
>>
>> Thanks,
>>
>> Jeff
>> -----Original Message-----
>> From: Stefan Schmidt [mailto:schmidtitc@gmail.com] Sent: Thursday, 
>> June 16, 2005 4:09 AM
>> To: dev@geronimo.apache.org
>> Subject: Re: Webservices for Tomcat now integrated
>>
>> Hi Jeff,
>>
>> I compiled Geronimo with Tomcat and started the server without any 
>> problems.
>> Then I deployed my ear containing some jsp's, a servlet, a session 
>> bean, two
>> entity beans and a Web service (which passes an array of complexTypes).
>>
>> The ear deploys and runs on Jetty apart from a SOAP response problem (see
>> JIRA GERONIMO-678 <http://issues.apache.org/jira/browse/GERONIMO-678> 
>> that I
>> filed today). However deploying the same ear (after changing ports in 
>> the wsdl) I get
>> heaps of errors:
>>
>> DEBUG [BaseDeserializerFactory] Exception:
>> java.lang.NoSuchMethodException: 
>> org.apache.axis.encoding.ser.ArrayDeserializerFactory.<init>(java.lang.Class 
>>
>> ,
>> javax.xml.namespace.QName)
>>    at java.lang.Class.getConstructor0(Unknown Source)
>>    at java.lang.Class.getConstructor(Unknown Source)
>>    at
>> org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(BaseDeser 
>>
>> ializerFactory.java:246)
>>    at org.apache.geronimo.axis.client.TypeInfo.register(TypeInfo.java:93)
>>    at org.apache.geronimo.axis.client.TypeInfo.register(TypeInfo.java:47)
>>
>> The same error is thrown several more times in different line numbers 
>> of the
>> BaseDeserializerFactory class.
>>
>> Am I compiling the Geronimo/Tomcat server with an obsolete Axis
>> distribution?
>>
>> Also, I would really appreciate if you could have a look into
>> GERONIMO-678 <http://issues.apache.org/jira/browse/GERONIMO-678> since 
>> you
>> seem to be quite into the WS stuff and David is too busy to look into 
>> this
>> before JavaOne. I will also have a look into it over the weekend (but I
>> might not be experienced enough to find the cause of the problem, what 
>> makes
>> it worse is that there is actually no error msg).
>>
>> Regards,
>>
>> Stefan
>>
>> Jeff Genender wrote:
>>
>>  
>>
>>> Hi Stefan,
>>>
>>> To set up Tomcat...look here:
>>>
>>> http://wiki.apache.org/geronimo/Tomcat
>>>
>>>
>>> Basically its just a lot of commenting and uncommenting in the plans, 
>>> then rebuilding assembly again (we will be making this simpler in the 
>>> near future).  Deploying your webservices should be nearly identical to
>>>   
>>
>> Jetty.
>>  
>>
>>> As for GERONIMO-672...after looking at that...is it possible you have 
>>> your configuration messed up slightly? I looked at the stack trace 
>>> and I saw
>>> this:
>>>
>>> Caused by: java.lang.IllegalStateException: No wsdl or schema known 
>>> at location: ETA-INF/wsdl/HelloService.wsdl
>>>
>>> Notice...ETA-INF/wsdl/HelloService.wsdl.  Looks like the "M" was 
>>> missing and thus could be the cause of the error.  What does your 
>>> open-ejb deployment plan and webservices.xml look like?
>>>
>>> What are your issues with complexTypes etc?  Have you opened a JIRA 
>>> ticket in this area?
>>>
>>> Jeff
>>>
>>> -----Original Message-----
>>> From: Stefan Schmidt [mailto:schmidtitc@gmail.com]
>>> Sent: Wednesday, June 15, 2005 6:17 PM
>>> To: dev@geronimo.apache.org
>>> Subject: Re: Webservices for Tomcat now integrated
>>>
>>> Hi Jeff,
>>>
>>> Since I am currently working on a Servlet and EJB-based WS example on 
>>> Geronimo I am very interested in testing it. For now I have only run 
>>> some tests on Jetty, but if you could provide some information on 
>>> Tomcat I would be more than happy to test this. Could you provide 
>>> your detailed setup information?
>>>
>>> Also, I encountered some issues for the EJB endpoint and opened JIRA 
>>> issue
>>> GERONIMO-762 so I am not sure if that has been fixed. Furthermore, 
>>> have you looked into complexTypes (and the mappings)? I have 
>>> encountered some more problems there recently.
>>>
>>> Regards,
>>>
>>> Stefan Schmidt
>>>
>>> Dain Sundstrom wrote:
>>>
>>>
>>>
>>>   
>>>
>>>> Very cool!
>>>>
>>>> -dain
>>>>
>>>> On Jun 15, 2005, at 10:12 AM, Jeff Genender wrote:
>>>>
>>>>  
>>>>     
>>>>
>>>>> Just announcing that webservices for Tomcat has been integrated.
>>>>>
>>>>> The only caveat is for the EJB side.  Currently all webservices  
>>>>> will go to the default Host (which for 99% of the applications is 
>>>>> fine)...as there needs to be some slight modifications to OpenEJB  
>>>>> to handle virtual hosts.  JIRA issue GERONIMO-666 was opened on this.
>>>>>
>>>>> However, it does appear to work with my setup. I can use some help 
>>>>> with testing this piece with both EJB and Servlet based web  
>>>>> services with different types of applications.  So any users who  
>>>>> want to give it a roll, it would be appreciated ;-)
>>>>>
>>>>> Jeff
>>>>>
>>>>>    
>>>>>       
>>>>
>>>>  
>>>>     
>>>
>>>
>>>
>>>
>>>   
>>
>>
>>
>>
>>  
>>

Re: Webservices for Tomcat now integrated

Posted by Stefan Schmidt <sc...@gmail.com>.
Hi Jeff,

I posted the interesting parts into JIRA. The application itself uses a 
db as well so maybe it is a bit too much overhead for testing a web 
service. I think I will create some simple test cases over the weekend, 
so you guys can use them for testing etc.

Regards,

Stefan

Jeff Genender wrote:

>First...thanks for trying Tomcat...I need more people like yourself
>exercising the module.
>
>Can you open a JIRA issue on this under Tomcat and attach a zip file with
>all of your code, deployment descripters, etc, to the JIRA issue?  I can
>then work on it and find the problem.
>
>Thanks,
>
>Jeff 
>
>-----Original Message-----
>From: Stefan Schmidt [mailto:schmidtitc@gmail.com] 
>Sent: Thursday, June 16, 2005 4:09 AM
>To: dev@geronimo.apache.org
>Subject: Re: Webservices for Tomcat now integrated
>
>Hi Jeff,
>
>I compiled Geronimo with Tomcat and started the server without any problems.
>Then I deployed my ear containing some jsp's, a servlet, a session bean, two
>entity beans and a Web service (which passes an array of complexTypes).
>
>The ear deploys and runs on Jetty apart from a SOAP response problem (see
>JIRA GERONIMO-678 <http://issues.apache.org/jira/browse/GERONIMO-678> that I
>filed today). 
>However deploying the same ear (after changing ports in the wsdl) I get
>heaps of errors:
>
>DEBUG [BaseDeserializerFactory] Exception:
>java.lang.NoSuchMethodException: 
>org.apache.axis.encoding.ser.ArrayDeserializerFactory.<init>(java.lang.Class
>,
>javax.xml.namespace.QName)
>    at java.lang.Class.getConstructor0(Unknown Source)
>    at java.lang.Class.getConstructor(Unknown Source)
>    at
>org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(BaseDeser
>ializerFactory.java:246)
>    at org.apache.geronimo.axis.client.TypeInfo.register(TypeInfo.java:93)
>    at org.apache.geronimo.axis.client.TypeInfo.register(TypeInfo.java:47)
>
>The same error is thrown several more times in different line numbers of the
>BaseDeserializerFactory class.
>
>Am I compiling the Geronimo/Tomcat server with an obsolete Axis
>distribution?
>
>Also, I would really appreciate if you could have a look into
>GERONIMO-678 <http://issues.apache.org/jira/browse/GERONIMO-678> since you
>seem to be quite into the WS stuff and David is too busy to look into this
>before JavaOne. I will also have a look into it over the weekend (but I
>might not be experienced enough to find the cause of the problem, what makes
>it worse is that there is actually no error msg).
>
>Regards,
>
>Stefan
>
>Jeff Genender wrote:
>
>  
>
>>Hi Stefan,
>>
>>To set up Tomcat...look here:
>>
>>http://wiki.apache.org/geronimo/Tomcat
>>
>>
>>Basically its just a lot of commenting and uncommenting in the plans, 
>>then rebuilding assembly again (we will be making this simpler in the 
>>near future).  Deploying your webservices should be nearly identical to
>>    
>>
>Jetty.
>  
>
>>As for GERONIMO-672...after looking at that...is it possible you have 
>>your configuration messed up slightly? I looked at the stack trace and 
>>I saw
>>this:
>>
>>Caused by: java.lang.IllegalStateException: No wsdl or schema known at 
>>location: ETA-INF/wsdl/HelloService.wsdl
>>
>>Notice...ETA-INF/wsdl/HelloService.wsdl.  Looks like the "M" was 
>>missing and thus could be the cause of the error.  What does your 
>>open-ejb deployment plan and webservices.xml look like?
>>
>>What are your issues with complexTypes etc?  Have you opened a JIRA 
>>ticket in this area?
>>
>>Jeff
>>
>>-----Original Message-----
>>From: Stefan Schmidt [mailto:schmidtitc@gmail.com]
>>Sent: Wednesday, June 15, 2005 6:17 PM
>>To: dev@geronimo.apache.org
>>Subject: Re: Webservices for Tomcat now integrated
>>
>>Hi Jeff,
>>
>>Since I am currently working on a Servlet and EJB-based WS example on 
>>Geronimo I am very interested in testing it. For now I have only run 
>>some tests on Jetty, but if you could provide some information on 
>>Tomcat I would be more than happy to test this. Could you provide your 
>>detailed setup information?
>>
>>Also, I encountered some issues for the EJB endpoint and opened JIRA 
>>issue
>>GERONIMO-762 so I am not sure if that has been fixed. Furthermore, have 
>>you looked into complexTypes (and the mappings)? I have encountered 
>>some more problems there recently.
>>
>>Regards,
>>
>>Stefan Schmidt
>>
>>Dain Sundstrom wrote:
>>
>> 
>>
>>    
>>
>>>Very cool!
>>>
>>>-dain
>>>
>>>On Jun 15, 2005, at 10:12 AM, Jeff Genender wrote:
>>>
>>>   
>>>
>>>      
>>>
>>>>Just announcing that webservices for Tomcat has been integrated.
>>>>
>>>>The only caveat is for the EJB side.  Currently all webservices  will 
>>>>go to the default Host (which for 99% of the applications is 
>>>>fine)...as there needs to be some slight modifications to OpenEJB  to 
>>>>handle virtual hosts.  JIRA issue GERONIMO-666 was opened on this.
>>>>
>>>>However, it does appear to work with my setup. I can use some help 
>>>>with testing this piece with both EJB and Servlet based web  services 
>>>>with different types of applications.  So any users who  want to give 
>>>>it a roll, it would be appreciated ;-)
>>>>
>>>>Jeff
>>>>
>>>>     
>>>>
>>>>        
>>>>
>>>   
>>>
>>>      
>>>
>>
>> 
>>
>>    
>>
>
>
>
>  
>


RE: Webservices for Tomcat now integrated

Posted by Jeff Genender <jg...@savoirtech.com>.
First...thanks for trying Tomcat...I need more people like yourself
exercising the module.

Can you open a JIRA issue on this under Tomcat and attach a zip file with
all of your code, deployment descripters, etc, to the JIRA issue?  I can
then work on it and find the problem.

Thanks,

Jeff 

-----Original Message-----
From: Stefan Schmidt [mailto:schmidtitc@gmail.com] 
Sent: Thursday, June 16, 2005 4:09 AM
To: dev@geronimo.apache.org
Subject: Re: Webservices for Tomcat now integrated

Hi Jeff,

I compiled Geronimo with Tomcat and started the server without any problems.
Then I deployed my ear containing some jsp's, a servlet, a session bean, two
entity beans and a Web service (which passes an array of complexTypes).

The ear deploys and runs on Jetty apart from a SOAP response problem (see
JIRA GERONIMO-678 <http://issues.apache.org/jira/browse/GERONIMO-678> that I
filed today). 
However deploying the same ear (after changing ports in the wsdl) I get
heaps of errors:

DEBUG [BaseDeserializerFactory] Exception:
java.lang.NoSuchMethodException: 
org.apache.axis.encoding.ser.ArrayDeserializerFactory.<init>(java.lang.Class
,
javax.xml.namespace.QName)
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.getConstructor(Unknown Source)
    at
org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(BaseDeser
ializerFactory.java:246)
    at org.apache.geronimo.axis.client.TypeInfo.register(TypeInfo.java:93)
    at org.apache.geronimo.axis.client.TypeInfo.register(TypeInfo.java:47)

The same error is thrown several more times in different line numbers of the
BaseDeserializerFactory class.

Am I compiling the Geronimo/Tomcat server with an obsolete Axis
distribution?

Also, I would really appreciate if you could have a look into
GERONIMO-678 <http://issues.apache.org/jira/browse/GERONIMO-678> since you
seem to be quite into the WS stuff and David is too busy to look into this
before JavaOne. I will also have a look into it over the weekend (but I
might not be experienced enough to find the cause of the problem, what makes
it worse is that there is actually no error msg).

Regards,

Stefan

Jeff Genender wrote:

>Hi Stefan,
>
>To set up Tomcat...look here:
>
>http://wiki.apache.org/geronimo/Tomcat
>
>
>Basically its just a lot of commenting and uncommenting in the plans, 
>then rebuilding assembly again (we will be making this simpler in the 
>near future).  Deploying your webservices should be nearly identical to
Jetty.
>
>As for GERONIMO-672...after looking at that...is it possible you have 
>your configuration messed up slightly? I looked at the stack trace and 
>I saw
>this:
>
>Caused by: java.lang.IllegalStateException: No wsdl or schema known at 
>location: ETA-INF/wsdl/HelloService.wsdl
>
>Notice...ETA-INF/wsdl/HelloService.wsdl.  Looks like the "M" was 
>missing and thus could be the cause of the error.  What does your 
>open-ejb deployment plan and webservices.xml look like?
>
>What are your issues with complexTypes etc?  Have you opened a JIRA 
>ticket in this area?
>
>Jeff
>
>-----Original Message-----
>From: Stefan Schmidt [mailto:schmidtitc@gmail.com]
>Sent: Wednesday, June 15, 2005 6:17 PM
>To: dev@geronimo.apache.org
>Subject: Re: Webservices for Tomcat now integrated
>
>Hi Jeff,
>
>Since I am currently working on a Servlet and EJB-based WS example on 
>Geronimo I am very interested in testing it. For now I have only run 
>some tests on Jetty, but if you could provide some information on 
>Tomcat I would be more than happy to test this. Could you provide your 
>detailed setup information?
>
>Also, I encountered some issues for the EJB endpoint and opened JIRA 
>issue
>GERONIMO-762 so I am not sure if that has been fixed. Furthermore, have 
>you looked into complexTypes (and the mappings)? I have encountered 
>some more problems there recently.
>
>Regards,
>
>Stefan Schmidt
>
>Dain Sundstrom wrote:
>
>  
>
>>Very cool!
>>
>>-dain
>>
>>On Jun 15, 2005, at 10:12 AM, Jeff Genender wrote:
>>
>>    
>>
>>>Just announcing that webservices for Tomcat has been integrated.
>>>
>>>The only caveat is for the EJB side.  Currently all webservices  will 
>>>go to the default Host (which for 99% of the applications is 
>>>fine)...as there needs to be some slight modifications to OpenEJB  to 
>>>handle virtual hosts.  JIRA issue GERONIMO-666 was opened on this.
>>>
>>>However, it does appear to work with my setup. I can use some help 
>>>with testing this piece with both EJB and Servlet based web  services 
>>>with different types of applications.  So any users who  want to give 
>>>it a roll, it would be appreciated ;-)
>>>
>>>Jeff
>>>
>>>      
>>>
>>    
>>
>
>
>
>  
>



Re: Webservices for Tomcat now integrated

Posted by Stefan Schmidt <sc...@gmail.com>.
Hi Jeff,

I compiled Geronimo with Tomcat and started the server without any 
problems. Then I deployed my ear containing some jsp's, a servlet, a 
session bean, two entity beans and a Web service (which passes an array 
of complexTypes).

The ear deploys and runs on Jetty apart from a SOAP response problem 
(see JIRA GERONIMO-678 
<http://issues.apache.org/jira/browse/GERONIMO-678> that I filed today). 
However deploying the same ear (after changing ports in the wsdl) I get 
heaps of errors:

DEBUG [BaseDeserializerFactory] Exception:
java.lang.NoSuchMethodException: 
org.apache.axis.encoding.ser.ArrayDeserializerFactory.<init>(java.lang.Class, 
javax.xml.namespace.QName)
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.getConstructor(Unknown Source)
    at 
org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(BaseDeserializerFactory.java:246)
    at org.apache.geronimo.axis.client.TypeInfo.register(TypeInfo.java:93)
    at org.apache.geronimo.axis.client.TypeInfo.register(TypeInfo.java:47)

The same error is thrown several more times in different line numbers of 
the BaseDeserializerFactory class.

Am I compiling the Geronimo/Tomcat server with an obsolete Axis 
distribution?

Also, I would really appreciate if you could have a look into 
GERONIMO-678 <http://issues.apache.org/jira/browse/GERONIMO-678> since 
you seem to be quite into the WS stuff and David is too busy to look 
into this before JavaOne. I will also have a look into it over the 
weekend (but I might not be experienced enough to find the cause of the 
problem, what makes it worse is that there is actually no error msg).

Regards,

Stefan

Jeff Genender wrote:

>Hi Stefan,
>
>To set up Tomcat...look here:
>
>http://wiki.apache.org/geronimo/Tomcat
>
>
>Basically its just a lot of commenting and uncommenting in the plans, then
>rebuilding assembly again (we will be making this simpler in the near
>future).  Deploying your webservices should be nearly identical to Jetty.
>
>As for GERONIMO-672...after looking at that...is it possible you have your
>configuration messed up slightly? I looked at the stack trace and I saw
>this:
>
>Caused by: java.lang.IllegalStateException: No wsdl or schema 
>known at location: ETA-INF/wsdl/HelloService.wsdl
>
>Notice...ETA-INF/wsdl/HelloService.wsdl.  Looks like the "M" was missing and
>thus could be the cause of the error.  What does your open-ejb deployment
>plan and webservices.xml look like?
>
>What are your issues with complexTypes etc?  Have you opened a JIRA ticket
>in this area?
>
>Jeff
>
>-----Original Message-----
>From: Stefan Schmidt [mailto:schmidtitc@gmail.com] 
>Sent: Wednesday, June 15, 2005 6:17 PM
>To: dev@geronimo.apache.org
>Subject: Re: Webservices for Tomcat now integrated
>
>Hi Jeff,
>
>Since I am currently working on a Servlet and EJB-based WS example on
>Geronimo I am very interested in testing it. For now I have only run some
>tests on Jetty, but if you could provide some information on Tomcat I would
>be more than happy to test this. Could you provide your detailed setup
>information?
>
>Also, I encountered some issues for the EJB endpoint and opened JIRA issue
>GERONIMO-762 so I am not sure if that has been fixed. Furthermore, have you
>looked into complexTypes (and the mappings)? I have encountered some more
>problems there recently.
>
>Regards,
>
>Stefan Schmidt
>
>Dain Sundstrom wrote:
>
>  
>
>>Very cool!
>>
>>-dain
>>
>>On Jun 15, 2005, at 10:12 AM, Jeff Genender wrote:
>>
>>    
>>
>>>Just announcing that webservices for Tomcat has been integrated.
>>>
>>>The only caveat is for the EJB side.  Currently all webservices  will 
>>>go to the default Host (which for 99% of the applications is 
>>>fine)...as there needs to be some slight modifications to OpenEJB  to 
>>>handle virtual hosts.  JIRA issue GERONIMO-666 was opened on this.
>>>
>>>However, it does appear to work with my setup. I can use some help 
>>>with testing this piece with both EJB and Servlet based web  services 
>>>with different types of applications.  So any users who  want to give 
>>>it a roll, it would be appreciated ;-)
>>>
>>>Jeff
>>>
>>>      
>>>
>>    
>>
>
>
>
>  
>


RE: Webservices for Tomcat now integrated

Posted by Jeff Genender <jg...@savoirtech.com>.
Hi Stefan,

To set up Tomcat...look here:

http://wiki.apache.org/geronimo/Tomcat


Basically its just a lot of commenting and uncommenting in the plans, then
rebuilding assembly again (we will be making this simpler in the near
future).  Deploying your webservices should be nearly identical to Jetty.

As for GERONIMO-672...after looking at that...is it possible you have your
configuration messed up slightly? I looked at the stack trace and I saw
this:

Caused by: java.lang.IllegalStateException: No wsdl or schema 
known at location: ETA-INF/wsdl/HelloService.wsdl

Notice...ETA-INF/wsdl/HelloService.wsdl.  Looks like the "M" was missing and
thus could be the cause of the error.  What does your open-ejb deployment
plan and webservices.xml look like?

What are your issues with complexTypes etc?  Have you opened a JIRA ticket
in this area?

Jeff

-----Original Message-----
From: Stefan Schmidt [mailto:schmidtitc@gmail.com] 
Sent: Wednesday, June 15, 2005 6:17 PM
To: dev@geronimo.apache.org
Subject: Re: Webservices for Tomcat now integrated

Hi Jeff,

Since I am currently working on a Servlet and EJB-based WS example on
Geronimo I am very interested in testing it. For now I have only run some
tests on Jetty, but if you could provide some information on Tomcat I would
be more than happy to test this. Could you provide your detailed setup
information?

Also, I encountered some issues for the EJB endpoint and opened JIRA issue
GERONIMO-762 so I am not sure if that has been fixed. Furthermore, have you
looked into complexTypes (and the mappings)? I have encountered some more
problems there recently.

Regards,

Stefan Schmidt

Dain Sundstrom wrote:

> Very cool!
>
> -dain
>
> On Jun 15, 2005, at 10:12 AM, Jeff Genender wrote:
>
>> Just announcing that webservices for Tomcat has been integrated.
>>
>> The only caveat is for the EJB side.  Currently all webservices  will 
>> go to the default Host (which for 99% of the applications is 
>> fine)...as there needs to be some slight modifications to OpenEJB  to 
>> handle virtual hosts.  JIRA issue GERONIMO-666 was opened on this.
>>
>> However, it does appear to work with my setup. I can use some help 
>> with testing this piece with both EJB and Servlet based web  services 
>> with different types of applications.  So any users who  want to give 
>> it a roll, it would be appreciated ;-)
>>
>> Jeff
>>
>
>



Re: Webservices for Tomcat now integrated

Posted by Stefan Schmidt <sc...@gmail.com>.
Hi Jeff,

Since I am currently working on a Servlet and EJB-based WS example on 
Geronimo I am very interested in testing it. For now I have only run 
some tests on Jetty, but if you could provide some information on Tomcat 
I would be more than happy to test this. Could you provide your detailed 
setup information?

Also, I encountered some issues for the EJB endpoint and opened JIRA 
issue GERONIMO-762 so I am not sure if that has been fixed. Furthermore, 
have you looked into complexTypes (and the mappings)? I have encountered 
some more problems there recently.

Regards,

Stefan Schmidt

Dain Sundstrom wrote:

> Very cool!
>
> -dain
>
> On Jun 15, 2005, at 10:12 AM, Jeff Genender wrote:
>
>> Just announcing that webservices for Tomcat has been integrated.
>>
>> The only caveat is for the EJB side.  Currently all webservices  will 
>> go to the default Host (which for 99% of the applications is  
>> fine)...as there needs to be some slight modifications to OpenEJB  to 
>> handle virtual hosts.  JIRA issue GERONIMO-666 was opened on this.
>>
>> However, it does appear to work with my setup. I can use some help  
>> with testing this piece with both EJB and Servlet based web  services 
>> with different types of applications.  So any users who  want to give 
>> it a roll, it would be appreciated ;-)
>>
>> Jeff
>>
>
>


Re: Webservices for Tomcat now integrated

Posted by Dain Sundstrom <da...@iq80.com>.
Very cool!

-dain

On Jun 15, 2005, at 10:12 AM, Jeff Genender wrote:

> Just announcing that webservices for Tomcat has been integrated.
>
> The only caveat is for the EJB side.  Currently all webservices  
> will go to the default Host (which for 99% of the applications is  
> fine)...as there needs to be some slight modifications to OpenEJB  
> to handle virtual hosts.  JIRA issue GERONIMO-666 was opened on this.
>
> However, it does appear to work with my setup. I can use some help  
> with testing this piece with both EJB and Servlet based web  
> services with different types of applications.  So any users who  
> want to give it a roll, it would be appreciated ;-)
>
> Jeff
>


Re: build failed for latest build

Posted by Calvin Austin <ca...@spikesource.com>.
There are also several build tests that fail if geronimo or another 
application is using the default geronimo/tomcat ports. I've discovered 
that for myself in my current app deployment plan testing. at least on 
linux you can do fuser -n tcp portid to find out who is using what., 
fuser -n tcp 8080 helped me out

regards
calvin

David Jencks wrote:

> That has happened to me when:
> -- I have way too much running at once -- there is a leftover geronimo 
> server instance running
>
> The problem is we are waiting for something to start in a separate 
> process, and it's hard to know how long to wait.  If neither of these 
> helps try including
>
> -Dgeronimo.assemble.offline=true
>
> on your command line.
>
> You can run just the module that is giving problems by
>
> maven -o -Dmodules=assembly
>
> or by cd'ing to modules/assembly
>
> Hope this helps
> david jencks
>
> On Jun 15, 2005, at 12:12 PM, Francis S Nazareth wrote:
>
>>
>> Hi, the latest build fails for me on windows 2000.  any ideas on why 
>> this is happening?
>>
>> BUILD FAILED                                                         
>>            
>> File...... C:\Documents and Settings\Default 
>> User\.maven\cache\maven-multiproject-plugin-1.3.1\plugin.jelly       
>>                                              
>> Element... maven:reactor
>> Line...... 217
>> Column.... 9
>> Unable to obtain goal [default] -- 
>> D:\geronimo\modules\assembly\maven.xml:382:63: 
>> <deploy:waitForStarted> null
>> Total time: 29 minutes 32 seconds                                     
>>           Finished at: Wed Jun 15 14:54:28 EDT 2005
>>
>> Regards,
>>
>>  Francis
>>
>>
>>
>> Jeff Genender <jg...@savoirtech.com>
>>
>> 06/15/2005 01:12 PM
>> Please respond to dev
>>        
>>         To:        dev@geronimo.apache.org
>>         cc:        
>>         Subject:        Webservices for Tomcat now integrated
>>
>>        
>>
>>
>> Just announcing that webservices for Tomcat has been integrated.
>>
>>  The only caveat is for the EJB side.  Currently all webservices will go
>>  to the default Host (which for 99% of the applications is fine)...as
>>  there needs to be some slight modifications to OpenEJB to handle 
>> virtual
>>  hosts.  JIRA issue GERONIMO-666 was opened on this.
>>
>>  However, it does appear to work with my setup. I can use some help with
>>  testing this piece with both EJB and Servlet based web services with
>>  different types of applications.  So any users who want to give it a
>>  roll, it would be appreciated ;-)
>>
>>  Jeff
>>
>
>


Re: build failed for latest build

Posted by David Jencks <da...@yahoo.com>.
That has happened to me when:
-- I have way too much running at once -- there is a leftover geronimo 
server instance running

The problem is we are waiting for something to start in a separate 
process, and it's hard to know how long to wait.  If neither of these 
helps try including

-Dgeronimo.assemble.offline=true

on your command line.

You can run just the module that is giving problems by

maven -o -Dmodules=assembly

or by cd'ing to modules/assembly

Hope this helps
david jencks

On Jun 15, 2005, at 12:12 PM, Francis S Nazareth wrote:

>
> Hi, the latest build fails for me on windows 2000.  any ideas on why 
> this is happening?
>
> BUILD FAILED                                                           
>          
> File...... C:\Documents and Settings\Default 
> User\.maven\cache\maven-multiproject-plugin-1.3.1\plugin.jelly         
>                                            
> Element... maven:reactor
> Line...... 217
> Column.... 9
> Unable to obtain goal [default] -- 
> D:\geronimo\modules\assembly\maven.xml:382:63: <deploy:waitForStarted> 
> null
> Total time: 29 minutes 32 seconds                                     
>           Finished at: Wed Jun 15 14:54:28 EDT 2005
>
> Regards,
>
>  Francis
>
>
>
> Jeff Genender <jg...@savoirtech.com>
>
> 06/15/2005 01:12 PM
> Please respond to dev
>        
>         To:        dev@geronimo.apache.org
>         cc:        
>         Subject:        Webservices for Tomcat now integrated
>
>        
>
>
> Just announcing that webservices for Tomcat has been integrated.
>
>  The only caveat is for the EJB side.  Currently all webservices will 
> go
>  to the default Host (which for 99% of the applications is fine)...as
>  there needs to be some slight modifications to OpenEJB to handle 
> virtual
>  hosts.  JIRA issue GERONIMO-666 was opened on this.
>
>  However, it does appear to work with my setup. I can use some help 
> with
>  testing this piece with both EJB and Servlet based web services with
>  different types of applications.  So any users who want to give it a
>  roll, it would be appreciated ;-)
>
>  Jeff
>


build failed for latest build

Posted by Francis S Nazareth <nf...@in.ibm.com>.
Hi, the latest build fails for me on windows 2000.  any ideas on why this 
is happening?

BUILD FAILED  
File...... C:\Documents and Settings\Default 
User\.maven\cache\maven-multiproject-plugin-1.3.1\plugin.jelly     
Element... maven:reactor
Line...... 217
Column.... 9
Unable to obtain goal [default] -- 
D:\geronimo\modules\assembly\maven.xml:382:63: <deploy:waitForStarted> 
null
Total time: 29 minutes 32 seconds      Finished at: Wed Jun 15 14:54:28 
EDT 2005

Regards,

Francis





Jeff Genender <jg...@savoirtech.com>
06/15/2005 01:12 PM
Please respond to dev
 
        To:     dev@geronimo.apache.org
        cc: 
        Subject:        Webservices for Tomcat now integrated

 

Just announcing that webservices for Tomcat has been integrated.

The only caveat is for the EJB side.  Currently all webservices will go 
to the default Host (which for 99% of the applications is fine)...as 
there needs to be some slight modifications to OpenEJB to handle virtual 
hosts.  JIRA issue GERONIMO-666 was opened on this.

However, it does appear to work with my setup. I can use some help with 
testing this piece with both EJB and Servlet based web services with 
different types of applications.  So any users who want to give it a 
roll, it would be appreciated ;-)

Jeff