axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nasreen Laghari <lagharinasr...@hotmail.com>
Subject RE: Windows Vista and Axis2
Date Thu, 20 Sep 2007 09:19:42 GMT
 
HappyAxis.jsp is working fine and I have copied the coding from it. Then I don't understand
why my jsp is giving error. I have tried same programming code 3 different ways. There Exceptions
are following
 


When I run Jsp file from webapps/axis2/axis2-web, It gives exception
 
Exception: Can't find resource for bundle org.apache.axis2.i18n.ProjectResourceBundle, key
outboundNoAction 
 
 

When I run JSP file from webapps/ROOT, It gives error:
 java.lang.NoClassDefFoundError: org/apache/ws/commons/schema/utils/NamespacePrefixList
	org.apache.axis2.client.ServiceClient.createAnonymousService(ServiceClient.java:243)
	org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:144)
	org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:133)
	org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:229)
	org.apache.jsp.v_jsp._jspService(v_jsp.java:64)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

 


When I run same coding from console as java.on first Axis2 class, It gives can not be initialize.
 
And Again Here is my Code:
 
<%@ page import="org.apache.axiom.om.OMAbstractFactory,  org.apache.axiom.om.OMElement,
 org.apache.axiom.om.OMFactory,  org.apache.axiom.om.OMNamespace,  org.apache.axis2.AxisFault,
 org.apache.axis2.addressing.EndpointReference,  org.apache.axis2.client.Options,  org.apache.axis2.client.ServiceClient"
%>
 
<%  try{                        OMFactory fac = OMAbstractFactory.getOMFactory();     
                  OMNamespace ns = fac.createOMNamespace("http://soapinterop.org/", "ns1");
                       OMElement payload = fac.createOMElement("echoString", ns);        
               payload.setText("Hello!");
                              Options options = new Options();                        ServiceClient
client = new ServiceClient();   EndpointReference targetEPR = new EndpointReference("http://localhost:8080/axis2/services/Random");
                       options.setTo(targetEPR);                       client.setOptions(options);
                        //Blocking invocation                        OMElement result = client.sendReceive(payload);
                       System.out.println("Sent Hello, got : " + result.toString());     
     } catch (Exception e)  {   out.println("Here it comes Exception: "+e.getMessage()); 
} 
                %><HTML><BODY>
<% out.println("ABC");%>
</BODY>



> Date: Wed, 19 Sep 2007 14:01:56 +0530> From: deepalk@gmail.com> To: lagharinasreen@hotmail.com>
Subject: Re: Windows Vista and Axis2> > Nope just send me your webapp.> > Thanks>
Deepal> > I'm using Tomcat5.5 for JSP. I have in common/lib for JSP. And for> >
java I put in JDK/jre... but Neither JSP nor Java accessing Axis2.jar> > > > >
> Shall I send you whole Tomcat Zipped?> >> > Regards> > > > Nasreen>
>> >> > ------------------------------------------------------------------------>
>> > > Date: Wed, 19 Sep 2007 12:17:15 +0530> > > From: deepalk@gmail.com>
> > To: lagharinasreen@hotmail.com; axis-user@ws.apache.org> > > Subject: Re:
Windows Vista and Axis2> > >> > > What is the application sever you are
using ? if is is tomcat try to put> > > into common\lib or somewhere that your JSP
can access. If you send me> > > your webapp then I might me able to help you.>
> >> > > Thanks> > > Deepal> > > > Hi All,> > >
>> > > > I'm trying to make a java or JSP client to invoke webservice. I'm>
> > > using Axis2 and Windows Vista.> > > >> > > > Few days
ago I asked about Service Object throwing exception of Can> > > > not Initiliaze
then Mr Deepal replied me that i was using Axis1> > coding.> > > > Then
I move on to Axis2 coding. But I'm having the same Issue with> > > > Axis2 as
well.> > > >> > > > I'm copying simple code and trying to access it
but seems throwing> > > > exception where i'm catching all exceptions with general
"Exception"> > > > class. I know it is not a good practice but if i put AxisFault>
> > > exception, I get Exception " Exception in thread "main"> > > >
java.lang.NoClassDefFoundError: org.apache.axis2.AxisFault"> > > >> > >
> In general terms I have realize that *org.apache.axis2* 's every class> > >
> is throwing an exception of *java.lang.NoClassDefFoundError *whereas I> > >
> have pasted *axis2-kernel-1.2* into *jdk1.6.\jre\lib\ext*.> > > >> >
> > What do you think the problem is?> > > >> > > >> >
> >> > > > *Below is coding:*> > > > **> > > > **>
> > > import org.apache.axiom.om.OMAbstractFactory;> > > > import org.apache.axiom.om.OMElement;>
> > > import org.apache.axiom.om.OMFactory;> > > > import org.apache.axiom.om.OMNamespace;>
> > > import org.apache.axis2.AxisFault;> > > > import org.apache.axis2.addressing.EndpointReference;>
> > > import org.apache.axis2.client.Options;> > > > import org.apache.axis2.client.ServiceClient;>
> > >> > > > public class EchoBlockingClient {> > > > private
static EndpointReference targetEPR = new> > > > EndpointReference("http://127.0.0.1:8080/axis2/services/Random");>
> > > public static void main(String[] args) {> > > > try {> >
> > OMFactory fac = OMAbstractFactory.getOMFactory();> > > > OMNamespace
ns => > > > fac.createOMNamespace("http://soapinterop.org/", "ns1");> >
> > OMElement payload => > > > fac.createOMElement("echoString", ns);>
> > > payload.setText("Hello!");> > > > Options options = new Options();>
> > > ServiceClient client = new ServiceClient();> > > > options.setTo(targetEPR);>
> > > client.setOptions(options);> > > > //Blocking invocation> >
> > OMElement result = client.sendReceive(payload);> > > > System.out.println("Sent
Hello, got : " +> > > > result.toString());> > > > } catch (Exception
e) {> > > >> > > > }> > > > }> > > > }>
> > >> > > >> > > >> > > >> > > >>
> ------------------------------------------------------------------------> > >
> Kick back and relax with hot games and cool activities at the> > > > Messenger
Café. Play now!> > > > <http://www.cafemessenger.com?ocid=TXT_TAGLM_SeptWLtagline>>
> >> > >> > > --> > > Thanks,> > > Deepal> >
> ................................................................> > > "The highest
tower is built one brick at a time"> > >> > >> > > --------------------------------------------------------------------->
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org> > > For additional
commands, e-mail: axis-user-help@ws.apache.org> > >> >> >> > ------------------------------------------------------------------------>
> Gear up for Halo® 3 and get a $25 Best Buy gift card. It’s our way of> > saying
thanks for using Windows Live™. Get it now!> > <http://gethalo3gear.com?ocid=SeptemberWLHalo3_WLHMTxt_1>>
nope> > -- > Thanks,> Deepal> ................................................................>
"The highest tower is built one brick at a time"> 
_________________________________________________________________
Capture your memories in an online journal!
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us
Mime
View raw message