Re: Next question...

2009-06-24 Thread Matthew Beldyk
It appears to be axis2-jaxws-1.4.1.jar

Here's how I figured that out on a unix system:

[10:02:23]bel...@mechagodzilla: ~/java_dev/trunk/libs/axis2-1.4.1
$ grep org.apache.axis2.jaxws.framework.JAXWSDeployer lib/*
Binary file lib/axis2-jaxws-1.4.1.jar matches

[10:02:39]bel...@mechagodzilla: ~/java_dev/trunk/libs/axis2-1.4.1
$ unzip -l lib/axis2-jaxws-1.4.1.jar |grep
org.apache.axis2.jaxws.framework.JAXWSDeployer
13373  08-13-08 17:07   org/apache/axis2/jaxws/framework/JAXWSDeployer.class

Best regards,
-Matt Beldyk
On Tue, Jun 23, 2009 at 9:12 PM, Shasta Willsonshas...@gmail.com wrote:
 Can someone tell me what .jar would contain

 org.apache.axis2.jaxws.framework.JAXWSDeployer

 I can't find it on the jar search engines I usually use.

 I'm getting a ClassNotFound in my logs, followed by an NPE without an
 obvious source a little later.  I'm guessing something isn't getting
 initialized correctly, even though the Deployer doesn't cause it to
 fail immediately, and maybe putting the correct jar in place would
 help.

 Thank you,
 Shasta




-- 
Calvin: Know what I pray for?
Hobbes: What?
Calvin: The strength to change what I can, the inability to accept
what I can't, and the incapacity to tell the difference.


Re: Axis webservice: connection refused exception (intermittent)

2008-10-10 Thread Matthew Beldyk
Hi,
I was actually about to type an almost identical question.

We have several axis2 (1.3) webservices running under tomcat (6.0.14)
that are called via a Flex 3 page.   Every once in a while we see an
error from the client, literally:
we'll run a query,
it returns successfully,
we rerun the same query (or something different) and the error appears,
then a second or two later we can rerun the same query and get correct results.

I've been unable to fine any errors in my server-side logs, though the
flex application provides these errors:
Error ID: 0
FaultCode: Client.NoSuchMethod
FaultString: Couldn't find method 'GPSExports' in service.
Message: faultCode:Client.NoSuchMethod

I have not seen this error in any of my axis2 based clients, but that
is likely due to a complete lack of testing of those recently.

This error is something new (within the last week or two) that we
haven't seen in the several months since I began using this particular
stack.  I'm also fairly confident the error is not due to any sort of
load (there was only one application using the service last time I saw
the error, everyone on the team was in the same room for a meeting).

Does anyone have any suggestions about what might be going on, or how
I might begin to track this down.  I'm half tempted to try and talk to
the sysadmin and try to do a little packet sniffing, though I'm
inclined to avoid that due to the sheer volume of traffic that goes in
and out of that machine (and I'd be surprised if he said yes to me
doing something like that).

Best Regards,
Matt Beldyk


On Fri, Oct 10, 2008 at 1:25 AM, shafi_363 [EMAIL PROTECTED] wrote:

 Hi,

 I have a question regarding Axis webservice. I get the following exception
 intermittently when the axis webservice is contacted from other component.

  Exception start =

 2008-03-25 17:18:17,792 ConnectException: Failed to contact Webservice
 AxisFault
  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
  faultSubcode:
  faultString: java.net.ConnectException: Connection refused
  faultActor:
  faultNode:
  faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.ConnectException:
 Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at
 java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at sun.reflect.GeneratedMethodAccessor461.invoke(Unknown Source)
at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
 org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
at


 org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
at
 org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at
 org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at
 org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
at
 org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
..more
 = Exception End ==

 Our clients continously call this webservice hosted by my component.
 Sometimes it fails with this exception, most of the times it works fine.
 Could not make out why this error comes as the host is always up.

 Just wondering whether it is some kind of load issue when there are too many
 webservice requests at a time.  If so, how can we avoid this load issue. Is
 it something which is not handled in Axis 2.0? Upgarding to 3.0 would fix
 the issue?

 In one of the forums I saw the same kind of problem reported. But the answer
 given was to remove xmlsec.jar.
 http://mail-archives.apache.org/mod_mbox/ws-axis-dev/200411.mbox/[EMAIL 
 PROTECTED]
 But I could not find the jar at all in both client, server. Could someone
 explain how this exception is related to this jar.

 Thanks  Regards,
 ~Shafi

 --
 View this message in context: 
 http://www.nabble.com/Axis-webservice%3A-connection-refused-exception-%28intermittent%29-tp19913291p19913291.html
 Sent from 

Re: Complex Types via REST with Axis2

2008-06-26 Thread Matthew Beldyk
Hi Keith,

That does make sense, I couldn't determine how to even represent my
complex type of complex types in a uri.  This does explain the lack of
documentation on how to do this.

Thanks,
-Matt

On Wed, Jun 25, 2008 at 10:45 PM, keith chapman [EMAIL PROTECTED] wrote:
 Hi Matthew,

 You cannot support such request in a REST invocation. This is a limitation
 of REST (Not just in Axis2 but REST as a whole). In order to do a truly
 RESTfull service your input message should be a conplexType with a sequence.
 And this sequence should be comprised of simple Types (No complexTypes. This
 is the issue you are having). The only way you will be able to invoke this
 without the use of soap is to do a post with the contentType of
 allication/xml (i.e just the payload of the SOAP request).

 Hope I made my point clear to you. Any arbitrary service cannot support
 REST. If you want to support both REST and SOAP your messages should be
 designed in order to support that.

 Thanks,
 Keith.

 On Wed, Jun 25, 2008 at 11:21 PM, Matthew Beldyk [EMAIL PROTECTED] wrote:

 Thanks Keith,

 Here's the schema for this service;  I've also included the
 BoundingRadius from an imported namespace I'm using.
 The complex type I'm trying to pass via REST is UNAVCOMonumentSearch.

 Best Regards,
 Matt

complexType name=BoundingRadius
sequence
element name=Lat type=decimal minOccurs=1 maxOccurs=1
 /
element name=Lon type=decimal minOccurs=1 maxOccurs=1
 /
element name=Radius type=decimal minOccurs=1
 maxOccurs=1 /  !-- in kilometers --
/sequence
/complexType



 schema elementFormDefault=unqualified version=1.0
targetNamespace=http://api.unavco.org/services/monuments;
xmlns:ufac=http://api.unavco.org/services;
xmlns:mon=http://api.unavco.org/services/monuments;
xmlns=http://www.w3.org/2001/XMLSchema;

import namespace=http://api.unavco.org/services;
 schemaLocation=http://schemas.unavco.org/facility/GPSSearchTerms.xsd;
 /

element name=GPSSearch type=mon:UNAVCOMonumentSearch /

complexType name=UNAVCOMonumentSearch
sequence
!-- Global search parameters --
element name=Scope type=ufac:SearchScope
 minOccurs=0 maxOccurs=1 /
element name=SampleRate
 type=mon:GPSSampleRate minOccurs=0 maxOccurs=1 /

!-- Identity search params  --
element name=FourCharCode
 type=ufac:FourCharCodePattern minOccurs=0 maxOccurs=unbounded/
element name=Set
 type=ufac:UNAVCOSetPattern minOccurs=0 maxOccurs=1/
element name=Name
 type=ufac:UNAVCONamePattern minOccurs=0 maxOccurs=1 /

!-- Spatial search params --
element name=BBox type=ufac:BoundingBox
 minOccurs=0 maxOccurs=1 /
element name=BRadius
 type=ufac:BoundingRadius minOccurs=0 maxOccurs=1 /
!-- Temporal search params --
element name=StartTime type=dateTime
 minOccurs=0 maxOccurs=1 /
element name=EndTime type=dateTime
 minOccurs=0 maxOccurs=1 /

element name=ArchiveStartBefore
 type=dateTime minOccurs=0 maxOccurs=1 /
element name=ArchiveStartAfter
 type=dateTime minOccurs=0 maxOccurs=1 /

!--  Miscellaneous search params --
element name=Status
 type=mon:OperationalStatus minOccurs=0 maxOccurs=1 /
/sequence
/complexType

element name=GPSSearchResponse type=mon:MonumentResponse /

complexType name=MonumentResponse
sequence
element name=MaxDate type=dateTime
 maxOccurs=1 /
element name=MinDate type=dateTime
 maxOccurs=1 /
element name=Monuments
 type=mon:UNAVCOMonuments minOccurs=1 maxOccurs=1 /
/sequence
/complexType
complexType name=UNAVCOMonuments
sequence
element name=Monument
 type=mon:UNAVCOMonument minOccurs=0 maxOccurs=unbounded /
/sequence
/complexType
complexType name=UNAVCOMonument
sequence
element name=MonumentID type=string
 minOccurs=1 maxOccurs=1 /
element name=MonumentName type=string
 minOccurs=1 maxOccurs=1 /
element name=MonumentType type=string
 minOccurs=1 maxOccurs=1 /
element name=FourCharCode type=string
 minOccurs=1 maxOccurs=1 /
element name=Grouping type=string
 minOccurs=1 maxOccurs=1 /
element name=Latitude type=decimal
 minOccurs=1 maxOccurs=1 /
element name=Longitude type=decimal
 minOccurs=1 maxOccurs=1 /
element

Re: Complex Types via REST with Axis2

2008-06-25 Thread Matthew Beldyk
 section for this operation please. I could give
 you a solution then.

 Thanks,
 Keith.

 On Wed, Jun 25, 2008 at 3:54 AM, Matthew Beldyk [EMAIL PROTECTED] wrote:

 Hi, I'm using Axis2 with Tomcat.  I've been using SOAP to talk to my
 servlets, but recently the discussion came up wondering if we would
 use REST with our services.

 Currently, I send messages to our servlets similar to (headers pulled
 out):
  mon:GPSSearch
 BRadius
ser:Lat59.362584/ser:Lat
ser:Lon-153.44467/ser:Lon
ser:Radius10/ser:Radius
 /BRadius
StartTime2000-02-02T18:49:00.000-07:00/StartTime
  /mon:GPSSearch

 I would like to do something similar to

 http://*.com:8080/axis2/services/GPSSearch/GPSSearch?ArchiveStartAfter=2008-06-15T00:00:00.000-07:00BRadius=something
 (NOTE:
  
 http://*.com:8080/axis2/services/GPSSearch/GPSSearch?ArchiveStartAfter=2008-06-15T00:00:00.000-07:00
 behaves as I would expect)

 Unfortunately, I am unable to determine how to represent
 BRadius=something for any of our complex types.  Initially I tried:

 BRadius=ser:Lat59.362584/ser:Latser:Lon-153.44467/ser:Lonser:Radius10/ser:Radius
 which was passed to my code as

 BRadius![CDATA[ser:Lat59.362584/ser:Latser:Lon-153.44467/ser:Lonser:Radius10/ser:Radius]]/BRadius

 Is there any way to represent complex types like this?  If so, how?

 Best Regards,
 Matt Beldyk

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 --
 Keith Chapman
 Senior Software Engineer
 WSO2 Inc.
 Oxygenating the Web Service Platform.
 http://wso2.org/

 blog: http://www.keith-chapman.org



-- 
Calvin: Know what I pray for?
Hobbes: What?
Calvin: The strength to change what I can, the inability to accept
what I can't, and the incapacity to tell the difference.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Complex Types via REST with Axis2

2008-06-24 Thread Matthew Beldyk
Hi, I'm using Axis2 with Tomcat.  I've been using SOAP to talk to my
servlets, but recently the discussion came up wondering if we would
use REST with our services.

Currently, I send messages to our servlets similar to (headers pulled out):
  mon:GPSSearch
 BRadius
ser:Lat59.362584/ser:Lat
ser:Lon-153.44467/ser:Lon
ser:Radius10/ser:Radius
 /BRadius
StartTime2000-02-02T18:49:00.000-07:00/StartTime
  /mon:GPSSearch

I would like to do something similar to
http://*.com:8080/axis2/services/GPSSearch/GPSSearch?ArchiveStartAfter=2008-06-15T00:00:00.000-07:00BRadius=something
(NOTE:  
http://*.com:8080/axis2/services/GPSSearch/GPSSearch?ArchiveStartAfter=2008-06-15T00:00:00.000-07:00
behaves as I would expect)

Unfortunately, I am unable to determine how to represent
BRadius=something for any of our complex types.  Initially I tried:
BRadius=ser:Lat59.362584/ser:Latser:Lon-153.44467/ser:Lonser:Radius10/ser:Radius
which was passed to my code as
BRadius![CDATA[ser:Lat59.362584/ser:Latser:Lon-153.44467/ser:Lonser:Radius10/ser:Radius]]/BRadius

Is there any way to represent complex types like this?  If so, how?

Best Regards,
Matt Beldyk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Logging SOAP Requests

2008-04-10 Thread Matthew Beldyk
Hi,

I was wondering if there was any out of the box functionality that would log
who is requesting what.  Basically, I have several Axis2 servlets running
under Tomcat and I want to keep track of how people are using them.

Currently, I am thinking about serializing the requester's ip and soap
request into some csv form and writing to a log file (we use lots of perl
and bash scripts where I work, so a plain-text csv makes a certain amount of
sense).  But, if there were some functionality to record this information
easily in a less 1980's style, I would prefer to do that.

Does anyone have any recommendations on how to do this?

-Matt Beldyk



-- 
Calvin: Know what I pray for?
Hobbes: What?
Calvin: The strength to change what I can, the inability to accept what I
can't, and the incapacity to tell the difference.


Re: How do I learn which Axis2 JARs have which classes?

2008-03-20 Thread Matthew Beldyk
The way I find which jars hold the class I need is to do a grep of the all
the jar files (mind you, I'm coming from a unix background, and I assume
this would also work with cygwin in windows).  Zip files seem to store the
data structure to access the stored files in an uncompressed way (letting me
look strings of the paths of files without any extra steps to extract them).

[10:17:12][EMAIL PROTECTED]: ~/java_dev/client_libs
$ grep  org.apache.axis2.deployment.DeploymentClassLoader *
Binary file axis2-kernel-1.3.jar matches



On Thu, Mar 20, 2008 at 1:44 AM, [EMAIL PROTECTED] wrote:

 If it is still valuable to anyone. If you use eclipse as your developing
 IDE. It has a nice feature how you can lookup classes.
 Just press the keys Strg+Shift+T (alternatively open the Menu Navigate
 -- Open Type) and eclipse opens a Open Type dialog. There you can start
 typing your classname and see all matching classes, including their full
 qualified name and the jar they belong to.

 Matthias.

  -Ursprüngliche Nachricht-
  Von: Nate Roe [mailto:[EMAIL PROTECTED]
  Gesendet: Freitag, 14. März 2008 19:36
  An: 'axis-user@ws.apache.org'
  Betreff: RE: How do I learn which Axis2 JARs have which classes?
 
 
  The difficulty is in finding a file from amongst several JARs.
  (basically foreach a directory's JARs, and then -tvf them.)
 
  I've written a small utility that serves me for this.  See the attached
  file.
 
  - Nate
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
  Jeff Greif
  Sent: Friday, March 14, 2008 10:52 AM
  To: axis-user@ws.apache.org
  Subject: Re: How do I learn which Axis2 JARs have which classes?
 
  Use the jar tool that comes with (Sun) java:
 
  jar tvf xxx.jar
 
  and is documented via a on the main page of the JDK documentation
  (under Tools).
 
  You can combine this with other Unix-style shell tools if you have the
  cygwin tools on your windows box:
 
  jar tvf xxx.jar | grep '*MetaData*
 
  to look for certain classes or packages by some part of their name.
 
  You can also edit the jar with the Emacs editor, which shows you a
  listing of files.
 
  Jeff
 
  On Fri, Mar 14, 2008 at 10:17 AM, Kraus, David
  [EMAIL PROTECTED] wrote:
   I haven't hacked the registry. I have used WinZip to open jar files
  as
   zip files. Not sure whether this creates a file association which
  helps.
  
-Original Message-
From: Nate Roe [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2008 10:04 AM
To: 'axis-user@ws.apache.org'
Subject: RE: How do I learn which Axis2 JARs have which classes?
  
  
I don't think this method will work unless you hack the Windows
   registry  to tell it that a JAR is a ZIP.  Maybe.
  
I guess another way is to build a script (or a Java program) to do
   the  looking.
  
- Nate
  
-Original Message-
From: Kraus, David [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2008 8:57 AM
To: axis-user@ws.apache.org
Subject: RE: How do I learn which Axis2 JARs have which classes?
  
Hmmm...I didn't start using this method until about a year ago. My
  OS
   is  Windows XP Professional. Not sure if previous windows platforms
   worked  in the same way when doing file searches.
  
I tried the same thing you mentioned:
  
Navigated to: D:\axis2-1.2\lib
all files and folders: *.jar
a word or phrase in the file file: org/apache
  
...and I got a match on a large number of jar files...
  
The jarfinder website also provides a way to look up jar files, but
   didn't seem to know axis2 jars.
  
  
-Original Message-
From: learn_n_share [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2008 10:35 PM
To: axis-user@ws.apache.org
Subject: RE: How do I learn which Axis2 JARs have which classes?
  
  
Hi Dave
  
I have the same doubt. I tried using your guidelines but couldn't
   succeed.
Please guide me where i m wrong.
  
i opened the C:\axis2\lib folder.
i pressed the serach button on the tool bar to open the search
  window
   on  the  left hand side of the current window.
clicked the all files and folders option  entered *.jar in all
   or part of filename
entered org/apache in a word or phrase in the file file
look in to be axis2\lib
but couldn't get the results
guide me the correct way
  
regards
--
View this message in context:
  
   http://www.nabble.com/How-do-I-learn-which-Axis2-JARs-have-which-
  class
   es
--tp16042438p16044726.html
Sent from the Axis - User mailing list archive at Nabble.com.
  
  

  -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  

  -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,