Prasad Lakkavaram

Greenhorn
+ Follow
since Sep 01, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Prasad Lakkavaram

Thanks William and Sashwat for your suggestions. I was able to get webService and client to work using axis2 using their wizards . I actually used axis2-1.1.1 nightly build to get them working.

I have another question about client code generated using webservices toolkit on Excel 2003 if any of you have worked on this before.
I have used http://www.oreilly.com/pub/h/1306
to test the webservice on Excel. When I created the webservice using websphere soap engine on rad 6.0 Excel created structures (VB code) for all my DTOs with that wsdl one of my input objects is mapped to
ex: struct_OpportunityCountRequ with fields
Public nwieId As String
Public oppLibId As Double
Public producerNumber As String
Public mailable As Boolean

but when I created wsdl from axis2 soap engine ( axis2 wizards added as plugin to RAD 6.0) then I could not get the structures for the DTOS of my webservice methods .Instead I have all the DTOS mapped to MSXML2.IXMLDOMNodeList in VB code

Could any one let me the reason for this difference in code generation ?
I would appreciate any suggestions.
Thanks,
Prasad
18 years ago
Thanks William and Sashwat for your suggestions. I was able to get webService and client to work using axis2 using their wizards . I actually used axis2-1.1.1 nightly build to get them working.

I have another question about client code generated using webservices toolkit on Excel 2003 if any of you have worked on this before.
I have used http://www.oreilly.com/pub/h/1306
to test the webservice on Excel. When I created the webservice using websphere soap engine on rad 6.0 Excel created structures (VB code) for all my DTOs with that wsdl one of my input objects is mapped to
ex: struct_OpportunityCountRequ with fields
Public nwieId As String
Public oppLibId As Double
Public producerNumber As String
Public mailable As Boolean

but when I created wsdl from axis2 soap engine ( axis2 wizards added as plugin to RAD 6.0) then I could not get the structures for the DTOS of my webservice methods .Instead I have all the DTOS mapped to MSXML2.IXMLDOMNodeList in VB code

Could any one let me the reason for this difference in code generation ?
I would appreciate any suggestions.
Thanks,
Prasad
18 years ago
hi all,
I could manage to deploy the axis2 web application on Web Sphere 5.1 test server but I could not get the services to work .I am getting the following error for version service when deployed as version.aar
---------
33aeb2fa DeploymentEng I org.apache.axis2.deployment.DeploymentEngine Invalid service version.aar due to java.lang.NoSuchMethodError: javax.xml.namespace.QName: method <init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String V not found
at org.apache.ws.java2wsdl.utils.TypeTable.populateSimpleTypes(TypeTable.java:38)
-----------
Can any one pl lemme know what this problem is ?
Thanks in advance
Prasad.
18 years ago
hi all,
I could manage to deploy the axis2 web application on Web Sphere 5.1 test server but I could not get the services to work .I am getting the following error for version service when deployed as version.aar
---------
33aeb2fa DeploymentEng I org.apache.axis2.deployment.DeploymentEngine Invalid service version.aar due to java.lang.NoSuchMethodError: javax.xml.namespace.QName: method <init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String V not found
at org.apache.ws.java2wsdl.utils.TypeTable.populateSimpleTypes(TypeTable.java:38)
-----------
Can any one pl lemme know what this problem is ?
Thanks in advance
Prasad.
18 years ago
Hi All,
I would like to add error specific information for prev posting.Sorry for two mails. The error while invoking the happyAxis.jsp in my previous posting was returning 500 internal error , the response is:
---
Error page exception
The server cannot use the error page specified for your application to handle the Original Exception printed below. Please see the Error Page Exception below for a description of the problem with the specified error page.


Original Exception:
Error Message:
Error Code: 500
Target Servlet: null
Error Stack:
java.lang.NullPointerException
at org.apache.jsp._httpbase.jspInit(_httpbase.java:26)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.init(HttpJspBase.java:59) .....

The error page entry is present in web.xml as
<error-page>
<error-code>500</error-code>
<location>/axis2-web/Error/error500.jsp</location>
</error-page>

and the corresponding jsp is present in axis2-web directory

Thanks,
Prasad
18 years ago
hi,
I am trying to deploy axis2 webservices in RAD 6.0 using Web Sphere 5.1 test server and I have used the instructions specified at
https://coderanch.com/t/77805/Websphere/Axis-WSAD
to make it to work.I downloaded axis 1.4 first.I could make the axis servlet to work with out adding any axis2 related classes.

Later I downloaded axis2-war distribution from
http://ws.apache.org/axis2/download/1_1/download.cgi
and tried to copy the files
(axis2 libraries, jsps and other folders in WEB-INF like services,conf etc) into the working web application but end up getting the following error while invoking
http://localhost:9080/AxisDemo/axis2-web/HappyAxis.jsp

from my Web Application ( AxisDemo)

The error is :
------------------------------------
[1/1/07 16:08:03:458 EST] 59e9eb9a WebGroup I SRVE0180I: [Apache-Axis] [/AxisDemo] [Servlet.LOG]: /axis2-web/include/httpbase.jsp: init
[1/1/07 16:08:03:478 EST] 59e9eb9a WebGroup E SRVE0026E: [Servlet Error]-[]: java.lang.NullPointerException
at org.apache.jsp._httpbase.jspInit(_httpbase.java:26)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.init(HttpJspBase.java:59)
---------------------------
i.e; the http base servlet is not instantiated.

Could any body help me locate the problem if any one has already worked with axis2 on Web Sphere 5.1 test server.Pl lemme knwo if this is the right way.
Thanks in advance,
Prasad
18 years ago
Hi All,
I registered with IBM UDDI test registry with user name and password and tried to connect to it using a servlet with the following code:
----------
javax.naming.InitialContext jndiEnc=new javax.naming.InitialContext();
ConnectionFactory factory= (ConnectionFactory) jndiEnc.lookup("java:comp/env/eis/JAXR");
Connection connection=factory.createConnection();

PasswordAuthentication credential = new PasswordAuthentication(userName, password.toCharArray());
Set credentials = new HashSet();
credentials.add(credential);
connection.setCredentials(credentials);
-------------------
I could get the connection but while setting the credential I got the following error:
--------
com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
--------
at line "connection.setCredentials(credentials)
-----
I gave the same user-id and password that I gave for UDDI test registry . Can any one guide me.I am not sure whether the attributes I set for the JAXR Resource Adapter are correct. I used the following:
---
AuthMethod: UDDI_GET_AUTHTOKEN
HttpsProxyPort:8181
HttpProxyPort:8080
HttpProxyHost:localhost
HttpsProxyHost:localhost
LifeCycleManagerURL:https://uddi.ibm.com/testregistry/publishapi
QueryManagerURL:http://uddi.ibm.com/testregistry/inquiryapi
---
I would really appreciate if any one could provide some hints,
Thanks in advance
Prasad
19 years ago
Hi,
I am trying to connect to UDDI registry with the following code
--------
try{
//create a connection factory
ConnectionFactory factory=ConnectionFactory.newInstance();

//configuring the connection factory
Properties prop=new Properties();
prop.setProperty("javax.xml.registry.lifeCycleManagerURL","https://uddi.ibm.com/testregistry/publishapi");
prop.setProperty("javax.xml.registry.queryManagerURL","http://uddi.ibm.com/testregistry/inquiryapi");
prop.setProperty("javax.xml.registry.factoryClass","com.sun.xml.registry.uddi.ConnectionFactoryImpl");
prop.setProperty("javax.xml.registry.security.authenticationMethod","UDDI_GET_AUTHTOKEN");
factory.setProperties(prop);

// now create the connection
Connection connection=factory.createConnection();
.......


-----------------
and I got the following exception
---
Failure to initialize mapper
Sep 1, 2005 3:04:35 PM com.sun.xml.registry.uddi.UDDIMapper initJAXBObjectFactory
SEVERE: Exiting unable to initial JAXB context
java.lang.NoClassDefFoundError: org/relaxng/datatype/ValidationContext
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at com.sun.xml.registry.uddi.bindings_v2.impl.runtime.GrammarInfoFacade.class$(Unknown Source)
at com.sun.xml.registry.uddi.bindings_v2.impl.runtime.GrammarInfoFacade.createGrammarInfoFacade(Unknown Source)
at com.sun.xml.registry.uddi.bindings_v2.impl.runtime.DefaultJAXBContextImpl.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at com.sun.xml.bind.ContextFactory_1_0_1.createContext(ContextFactory_1_0_1.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:96)
at javax.xml.bind.ContextFinder.searchcontextPath(ContextFinder.java:229)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:149)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:281)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:238)
at com.sun.xml.registry.uddi.UDDIMapper.initJAXBObjectFactory(Unknown Source)
at com.sun.xml.registry.uddi.UDDIMapper.<init>(Unknown Source)
at com.sun.xml.registry.uddi.RegistryServiceImpl.<init>(Unknown Source)
at com.sun.xml.registry.uddi.ConnectionImpl.<init>(Unknown Source)
at com.sun.xml.registry.uddi.ConnectionFactoryImpl.createConnection(Unknown Source)
at com.sun.xml.registry.common.ConnectionFactoryImpl.createConnection(Unknown Source)
at com.JAXRConnection.main(JAXRConnection.java:57)
--------------- linked to ------------------
javax.xml.bind.JAXBException
- with linked exception:
[java.lang.NoClassDefFoundError: org/relaxng/datatype/ValidationContext]
at com.sun.xml.bind.ContextFactory_1_0_1.createContext(ContextFactory_1_0_1.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:96)
at javax.xml.bind.ContextFinder.searchcontextPath(ContextFinder.java:229)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:149)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:281)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:238)
at com.sun.xml.registry.uddi.UDDIMapper.initJAXBObjectFactory(Unknown Source)
at com.sun.xml.registry.uddi.UDDIMapper.<init>(Unknown Source)
at com.sun.xml.registry.uddi.RegistryServiceImpl.<init>(Unknown Source)
at com.sun.xml.registry.uddi.ConnectionImpl.<init>(Unknown Source)
at com.sun.xml.registry.uddi.ConnectionFactoryImpl.createConnection(Unknown Source)
at com.sun.xml.registry.common.ConnectionFactoryImpl.createConnection(Unknown Source)
----
for line

"Connection connection=factory.createConnection();"

Can any one tell me how to handle this exception? Do I need to set some more properties while creating the connection?

Thanks in advance
19 years ago