WEBSERVICES problem

2006-02-05 Thread Phani Madgula
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(); Service service = 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?wsdlException 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.init(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.
?xml version=1.0 encoding=UTF-8?
definitions name=HelloService targetNamespace=http://hello.phani.org/ xmlns:tns=http://hello.phani.org/ xmlns=
http://schemas.xmlsoap.org/wsdl/ xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:soap=
http://schemas.xmlsoap.org/wsdl/soap/ types/ message name=Hello_hello part name=String_1 type=xsd:string//message message name=Hello_helloResponse
 part name=result type=xsd:string//message portType name=Hello operation name=hello parameterOrder=String_1
 input message=tns:Hello_hello/ output message=tns:Hello_helloResponse//operation/portType binding name=HelloBinding type=tns:Hello
 soap:binding transport=http://schemas.xmlsoap.org/soap/http style=rpc/ operation name=hello soap:operation soapAction=/
 input soap:body use=literal namespace=http://hello.phani.org///input output
 soap:body use=literal namespace=http://hello.phani.org///output/operation/binding
 service name=HelloService port name=HelloPort binding=tns:HelloBinding soap:address location=
http://localhost:8080/TestEJB/Hello//port/service/definitions
Why is an extra '/' is getting added ?
Any issues?
Thanks 
phani







Problems creating JMS Resrouce Group

2006-02-05 Thread Johnny l
I'm just trying starting up with Geronimo, so please be gentle:

I was just running throughAaron Mulder's online book Apache Geronimo Development and Deploymentand got to the chapter in creating JMS Connection factories and resource groups (
7.2 Easy configuration and deployment using the console). My problem is that I can't find any of the view's that are being shown! in fact, I can't even find where you even create a new destination. All I have options for is to create a new connection factory (no option for any other JMS provider as stated in the tutorial) and only options for url, name, pw, pool max, and blockout timer. 


I'm really confused and been frustrated with this for a few days now. Any ideas? 


Deploying Large applications in Geronimo

2006-02-05 Thread Sahil
Hi All,

We have a failry large java based application (min.
application size is 800 MB) that we are trying to
deploy in Geronimo (1.0).

The only way i found to deploy our app. is to build a
.war or .jar file using the delpoy tools in
geronimo.

My problem is:

- we need to customize our product for each of our
customers and then in that case development and
testing would involve frequent rebuilding of war/jar
files and redeploy in Gronimo which is time consuming.
How do i handle this issue (because of size of my
app.)

Another question is that whether the Geronimo version
1.0 with Tomcat supports the deployment that
standalone tomcat supports just by dropping the
context info (*.xml) file in Tomcat
5.5\conf\Catalina\localhost. If yes then how ?


-SAHIL



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: Problems creating JMS Resrouce Group

2006-02-05 Thread Aaron Mulder
Unfortunately, you missed the key note at the top of that section (7.2):

Warning:  The console features described here are available in
Geronimo starting with version 1.0.1.

The JMS console features in the 1.0 release are nothing to write home
about, and the new JMS portlet was added for the next release (which
is not out yet).  It has occured to me that it might be worth
releasing a console update even before the next product release, since
it's pretty easy to update the console in place, but in the mean time,
there's not an easy way to get the new JMS portlet.

Thanks,
Aaron

On 2/6/06, Johnny l [EMAIL PROTECTED] wrote:
 I'm just trying starting up with Geronimo, so please be gentle:

 I was just running through Aaron Mulder's online book Apache Geronimo
 Development and Deployment and got to the chapter in creating JMS Connection
 factories and resource groups ( 7.2 Easy configuration and deployment using
 the console). My problem is that I can't find any of the view's that are
 being shown! in fact, I can't even find where you even create a new
 destination. All I have options for is to create a new connection factory
 (no option for any other JMS provider as stated in the tutorial) and only
 options for url, name, pw, pool max, and blockout timer.

 I'm really confused and been frustrated with this for a few days now. Any
 ideas?


Re: WEBSERVICES problem

2006-02-05 Thread Aaron Mulder
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.init(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.

 ?xml version=1.0 encoding=UTF-8?

 definitions name=HelloService targetNamespace=http://hello.phani.org/;
 xmlns:tns=http://hello.phani.org/; xmlns=
 http://schemas.xmlsoap.org/wsdl/;
 xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:soap=
 http://schemas.xmlsoap.org/wsdl/soap/;
   types/
   message name=Hello_hello
 part name=String_1 type=xsd:string//message
   message name=Hello_helloResponse
 part name=result type=xsd:string//message
   portType name=Hello
 operation name=hello parameterOrder=String_1
input message=tns:Hello_hello/
   output
 message=tns:Hello_helloResponse//operation/portType
   binding name=HelloBinding type=tns:Hello
 soap:binding
 transport=http://schemas.xmlsoap.org/soap/http;
 style=rpc/
 operation name=hello
   soap:operation soapAction=/
   input
 soap:body use=literal
 namespace=http://hello.phani.org///input
   output
  soap:body use=literal
 namespace=http://hello.phani.org///output/operation/binding
 
   service name=HelloService
 port name=HelloPort binding=tns:HelloBinding
   soap:address location=
 http://localhost:8080/TestEJB/Hello//port/service/definitions


 Why is an extra '/' is getting added ?

 Any issues?

 Thanks

 phani













Re: Deploying Large applications in Geronimo

2006-02-05 Thread Aaron Mulder
You should be able to run the deploy tool on an exploded WAR or JAR,
or put the exploded WAR or JAR in the hot deploy directory.  However,
I'm not sure that will really help because I'm not clear whether your
problem is in packing/unpacking the JAR file or in the time taken to
execute the redeploy operation.

Thanks,
Aaron

On 2/6/06, Sahil [EMAIL PROTECTED] wrote:
 Hi All,

 We have a failry large java based application (min.
 application size is 800 MB) that we are trying to
 deploy in Geronimo (1.0).

 The only way i found to deploy our app. is to build a
 .war or .jar file using the delpoy tools in
 geronimo.

 My problem is:

 - we need to customize our product for each of our
 customers and then in that case development and
 testing would involve frequent rebuilding of war/jar
 files and redeploy in Gronimo which is time consuming.
 How do i handle this issue (because of size of my
 app.)

 Another question is that whether the Geronimo version
 1.0 with Tomcat supports the deployment that
 standalone tomcat supports just by dropping the
 context info (*.xml) file in Tomcat
 5.5\conf\Catalina\localhost. If yes then how ?


 -SAHIL



 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com



Re: Deploying Large applications in Geronimo

2006-02-05 Thread Sahil

My actual problem is the time taken to both pack and
unpack a war of size  800 MB each time i do a change
in my app. codethat would be repeated many times
in a day when we do development...

Even if i put the exploded WAR/JAR in the hot deploy
directory how does Geronimo manages the change in the
code? Does it re-deploys all the files in the exploded
WAR or only the files modified from the prev
deployment?

also my previous question:  whether the Geronimo
version 1.0 with Tomcat supports the deployment that
standalone tomcat supports just by dropping the
context info (*.xml) file in
Tomcat5.5\conf\Catalina\localhost. If yes then how
?

Thanks
-SAHIL


--- Aaron Mulder [EMAIL PROTECTED]
wrote:

 You should be able to run the deploy tool on an
 exploded WAR or JAR,
 or put the exploded WAR or JAR in the hot deploy
 directory.  However,
 I'm not sure that will really help because I'm not
 clear whether your
 problem is in packing/unpacking the JAR file or in
 the time taken to
 execute the redeploy operation.
 
 Thanks,
 Aaron
 
 On 2/6/06, Sahil [EMAIL PROTECTED] wrote:
  Hi All,
 
  We have a failry large java based application
 (min.
  application size is 800 MB) that we are trying to
  deploy in Geronimo (1.0).
 
  The only way i found to deploy our app. is to
 build a
  .war or .jar file using the delpoy tools in
  geronimo.
 
  My problem is:
 
  - we need to customize our product for each of our
  customers and then in that case development and
  testing would involve frequent rebuilding of
 war/jar
  files and redeploy in Gronimo which is time
 consuming.
  How do i handle this issue (because of size of my
  app.)
 
  Another question is that whether the Geronimo
 version
  1.0 with Tomcat supports the deployment that
  standalone tomcat supports just by dropping the
  context info (*.xml) file in Tomcat
  5.5\conf\Catalina\localhost. If yes then how ?
 
 
  -SAHIL
 
 
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
 protection around
  http://mail.yahoo.com
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: WEBSERVICES problem

2006-02-05 Thread Phani Madgula
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.

enterprise-beans session ejb-nameHelloBean/ejb-name jndi-nameHelloBean/jndi-name  web-service-address/RAMESH/Hello/web-service-address
 /session/enterprise-beans
where as my wsdl file contains
 port name=HelloPort binding=tns:HelloBinding soap:address location=http://localhost:8080/TestEJB/Hello//port



In either case, the extra '/' is being generated while using Dynamic Proxy client.

Contacting webservice at http://localhost:8080/RAMESH/Hello?wsdlException 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.init(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 webapp to connect to an EJB exposed as a web service in Geronimo 
1.0 whenworking through some tests for my web services chapter at:http://chariotsolutions.com/geronimo/web-services.htmlHowever, I did not try a dynamic proxy client.
I did notice that a servlet web service got an extra slash in the URLit generated in the WSDL, though in my case it was after the port notat 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 copyof the WSDL, but specifically look at the copy at that URL), does theservice URL have the extra slash in it?If so, that's likely the
problem, and possibly related to the slash problem I had, which Irecorded at:http://issues.apache.org/jira/browse/GERONIMO-1584In any case, to work around this, you might try adding a
web-service-address element to your EJB configuration inopenejb-jar.xml and see if you can provide an explicit value therethat 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, AaronOn 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 ="" URL(urlstr);
 QName qname = new QName(http://hello.phani.org/, HelloService); ServiceFactory factory = ServiceFactory.newInstance
(); Serviceservice = factory.createService(url, qname); Hellohello = (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
.init(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. ?xml version=1.0 encoding=UTF-8?
 definitions name=HelloService targetNamespace=http://hello.phani.org/ xmlns:tns=http://hello.phani.org/
 xmlns= http://schemas.xmlsoap.org/wsdl/ xmlns:xsd=http://www.w3.org/2001/XMLSchema
 xmlns:soap= http://schemas.xmlsoap.org/wsdl/soap/ types/ message name=Hello_hello part name=String_1 type=xsd:string//message
 message name=Hello_helloResponse part name=result type=xsd:string//message portType name=Hello operation name=hello parameterOrder=String_1
input message=tns:Hello_hello/ output message=tns:Hello_helloResponse//operation/portType binding name=HelloBinding type=tns:Hello
 soap:binding transport=http://schemas.xmlsoap.org/soap/http style=rpc/ operation name=hello
 soap:operation soapAction=/ input soap:body use=literal namespace=http://hello.phani.org/
//input outputsoap:body use=literal namespace=http://hello.phani.org///output/operation/binding
  service name=HelloService port name=HelloPort binding=tns:HelloBinding soap:address location=