Axis and Tomcat problem - (401)Unauthorized
Hi, there. When I tried to deploy a service, I got FaultString: (401)Unauthorized System Info: Apache 2.0.5.4 Tomcat 5.5.9 Axis: 1.3, Linux OS. Any idea? Thanks, Don
RE: Axis and Tomcat problem - (401)Unauthorized
Yeah, this error happened when I tried to deploy a WS. Any document available online to show a way to solve this problem? I assume this is a common problem. Thanks, Don -Original Message- From: Ebert, Chris [mailto:[EMAIL PROTECTED] Sent: Friday, October 21, 2005 4:45 PM To: axis-user@ws.apache.org Subject: RE: Axis and Tomcat problem - (401)Unauthorized This is when you deploy, right? Not once it's deployed? If it's the deploy itself it's a tomcat deploy issue (likely because of configuration). While there might be help here, you'll probably have better luck on one of the tomcat lists (or in the Tomcat doc or FAQ.) Chris -Original Message- From: Chen, Donald [mailto:[EMAIL PROTECTED] Sent: Friday, October 21, 2005 13:31 To: axis-user@ws.apache.org Subject: Axis and Tomcat problem - (401)Unauthorized Hi, there. When I tried to deploy a service, I got FaultString: (401)Unauthorized System Info: Apache 2.0.5.4 Tomcat 5.5.9 Axis: 1.3, Linux OS. Any idea? Thanks, Don
RE: Axis and Tomcat problem - (401)Unauthorized
I could not find the server-config.wsdd file, I use Axis 1.3. Don From: naveen babu [mailto:[EMAIL PROTECTED] Sent: Friday, October 21, 2005 5:04 PM To: axis-user@ws.apache.org Subject: Re: Axis and Tomcat problem - (401)Unauthorized it is authentication problem, if you look at your server-config.wsdd file you should have specified something like i have done, see below from my WSDD file. service name=Subscriber provider=java:RPC wsdlFileSubscriber.wsdl/wsdlFile requestFlow handler type=java:org.apache.axis.handlers.SimpleAuthenticationHandler/ handler type=java:org.apache.axis.handlers.SimpleAuthorizationHandler/ /requestFlow parameter name=allowedRoles value=wsrole/ /service transport name=http requestFlow handler type=URLMapper/ handler type=java:org.apache.axis.handlers.http.HTTPAuthHandler/ /requestFlow /transport and you specify in web.xml you specify the role as below security-constraint web-resource-collection web-resource-name/ url-pattern/services/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection auth-constraint role-namewsrole/role-name /auth-constraint /security-constraint and in jrun-users.xml file you specify the userid and password for the role i got this error too, let me know if i am not clear On 10/21/05, Chen, Donald [EMAIL PROTECTED] wrote: Yeah, this error happened when I tried to deploy a WS. Any document available online to show a way to solve this problem?I assume this is a common problem. Thanks, Don -Original Message- From: Ebert, Chris [mailto:[EMAIL PROTECTED]] Sent: Friday, October 21, 2005 4:45 PM To: axis-user@ws.apache.org Subject: RE: Axis and Tomcat problem - (401)Unauthorized This is when you deploy, right? Not once it's deployed? If it's the deploy itself it's a tomcat deploy issue (likely because of configuration). While there might be help here, you'll probably have better luck on one of the tomcat lists (or in the Tomcat doc or FAQ.) Chris -Original Message- From: Chen, Donald [mailto:[EMAIL PROTECTED]] Sent: Friday, October 21, 2005 13:31 To: axis-user@ws.apache.org Subject: Axis and Tomcat problem - (401)Unauthorized Hi, there. When I tried to deploy a service, I got FaultString: (401)Unauthorized System Info: Apache 2.0.5.4Tomcat 5.5.9Axis: 1.3, Linux OS. Any idea? Thanks, Don
Exception in thread main java.lang.NoClassDefFoundError: javax/wsdl/OperationType
When I tried to install the Axis on a Linux box and tried the legendary sample sample.stock.GetQuote, I got this: Exception in thread main java.lang.NoClassDefFoundError: javax/wsdl/OperationType. I suspect it is due to the missetttings of the CLASSPATH, but I could not really find where went wrong. Any idea? Thanks, Don
RE: Exception in thread main java.lang.NoClassDefFoundError: javax/wsdl/OperationType
Oops, I did not. I will try it. Thanks, Don From: Vishist Mandapaka [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 19, 2005 4:17 PM To: axis-user@ws.apache.org Subject: Re: Exception in thread main java.lang.NoClassDefFoundError: javax/wsdl/OperationType Have you included wsdl4j.jar in you classpath? vishist. On 10/19/05, Chen, Donald [EMAIL PROTECTED] wrote: When I tried to install the Axis on a Linux box and tried the legendary sample sample.stock.GetQuote, I got this: Exception in thread main java.lang.NoClassDefFoundError: javax/wsdl/OperationType. I suspect it is due to the missetttings of the CLASSPATH, but I could not really find where went wrong. Any idea? Thanks, Don
RE: Is there any way to set up the Axis running without depending on any web server?
Jeff, thanks for this secret Standalone. Don -Original Message- From: Jeff Greif [mailto:[EMAIL PROTECTED] Sent: Thursday, August 18, 2005 4:32 PM To: axis-user@ws.apache.org Subject: Re: Is there any way to set up the Axis running without depending on any web server? http://wiki.apache.org/ws/FrontPage/Axis/Standalone Chen, Donald wrote: Hi, there. This may be a ridiculous question, but I can not help to wonder if Axis has to live with a web server like Tomcat or WebLogic to be functioning? If there is a way for Axis be functioning solely on its own feet, that will be great.
RE: RES: Error - java.lang.reflect.InvocationTargetException?
Fabricio, I think you should make sure the InputStreamHandler.class is included in the classpath. To verify my thought, you can try to comment out the codes in the WSCap3.java and recompile and redeploy. I bet you won't get the java.lang.reflect.InvocationTargetException. The step 3 in your description is not good enough to make sure that class is available to the WS. Don -Original Message- From: Fabrício [mailto:[EMAIL PROTECTED] Sent: Thursday, August 18, 2005 11:12 AM To: axis-user@ws.apache.org Cc: [EMAIL PROTECTED] Subject: RES: RES: Error - java.lang.reflect.InvocationTargetException? Donald, I've tried doing it yet. But I did it setting classpath in setclasspath.bat file. But it didn't work. Maybe my problem is a little different. I will try to be completely understandable. I have a legacy program called CAP3. It's a bioinformatic program. And I need to put this program as a web service ok? Thus, I created a Java class that calls the program and returns the output file. This class needs to control stdin and stdout of cap3 process. And to handle the stdin and stderr I have to create two threads. One for stdin and another to stderr. Because of this I created another class to starts the threads. So, as my class calls an external method to start the threads my web service must do this. I'm attaching the two files that I have to use. The .JWS and the another class required. If anyone could tell me how I can solve my problem. I will appreciate you so much. I did like this: 1. Compiled both of them - ok 2. Got the WSCap3.java and put in [TOMCAT]/axis/WSCap3.jws - ok 3. Got the InputStreamHandle.class and put in [TOMCAT]/common/lib - ok 4. In Apache Tomcat Properties I added C:\Arquivos de programas\Apache\Tomcat 5.0\common\lib\InputStreamHandler.class to Java Classpath field; - ok 5. Restarted tomcat - ok 6. Opened the http://localhost:8080/axis/WSCap3.jws?wdls - ok 7. Ran the client and got the error java.lang.reflect.InvocationTargetException - not ok :-( Thanks a lot for all the help! Fabricio. -Mensagem original- De: Chen, Donald [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 18 de agosto de 2005 09:58 Para: axis-user@ws.apache.org Cc: [EMAIL PROTECTED] Assunto: RE: RES: Error - java.lang.reflect.InvocationTargetException? I use Tomcat 5 on WinXPPro. The way I configure/start/stop the Tomcat is via a tiny Tomcat icon on the system tray, I right-click it and there is a small menu pomp up from it. On the menu, there are 5 selections: Configure..., Start Service, Stop Service, Exit and About. Then I select Configure..., and it pomp up a Apache Tomcat Properties dialog box(as shown in the attachment). Inside the dialog box, I reset the JavaClasspath. That is what I mean by Tomcat|Properties|JavaClasspath. Hope that helps, Donald -Original Message- From: Fabrício [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 17, 2005 7:18 PM To: axis-user@ws.apache.org Cc: [EMAIL PROTECTED] Subject: RES: RES: Error - java.lang.reflect.InvocationTargetException? I'm using tomcat 5 and I didn't understand when you say Tomcat|Properties|JavaClasspath??? Is it a file? Folder? I putted my external class in [TOMCAT]\common\lib, but didn't work. I opened a setclasspath.bat file and I set this line: set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\common\lib\InputStreamHa ndler.class; But didn't work!! :'( I really don't know where I have to set my classpath!! Please does anyone have a solution for me??? Thanks to all, Fabrício -Mensagem original- De: Chen, Donald [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 17 de agosto de 2005 11:40 Para: axis-user@ws.apache.org Cc: [EMAIL PROTECTED] Assunto: RE: RES: Error - java.lang.reflect.InvocationTargetException? Fabricio, I think I have fixed my problem. What I did is put all the necessary classpaths to the Tomcat|Properties|JavaClasspath, and restarted the Tomcat. After doing that, the problem is gone. I tried to put all the necessary classes into the [TOMCAT]webapps\axis\WEB-INF\classes and it didn't work for me either. I guess, all the axis specific classes need to go to the [TOMCAT]webapps\axis\WEB-INF\classes, while the Tomcat specific classes go to the Tomcat|Properties|JavaClasspath. Hope it will work for you too. Don -Original Message- From: Fabrício [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 16, 2005 7:21 PM To: axis-user@ws.apache.org Cc: [EMAIL PROTECTED] Subject: RES: RES: Error - java.lang.reflect.InvocationTargetException? Javier, Where I have to put the class? I putted it into [TOMCAT]webapps\axis\WEB-INF\classes and didn't work. Could you be more clear please!?! Thanks a lot! Fabrício -Mensagem original- De: Javier Gonzalez [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 16 de agosto de 2005 18:34 Para: axis-user@ws.apache.org Assunto: Re: RES: Error - java.lang.reflect.InvocationTargetException? I'm not sure I'm understanding you
Is there any way to set up the Axis running without depending on any web server?
Hi, there. This may be a ridiculous question, but I can not help to wonder if Axis has to live with a web server like Tomcat or WebLogic to be functioning? If there is a way for Axis be functioning solely on its own feet, that will be great. Thanks, Don
RE: RES: Error - java.lang.reflect.InvocationTargetException?
Fabricio, I think I have fixed my problem. What I did is put all the necessary classpaths to the Tomcat|Properties|JavaClasspath, and restarted the Tomcat. After doing that, the problem is gone. I tried to put all the necessary classes into the [TOMCAT]webapps\axis\WEB-INF\classes and it didn't work for me either. I guess, all the axis specific classes need to go to the [TOMCAT]webapps\axis\WEB-INF\classes, while the Tomcat specific classes go to the Tomcat|Properties|JavaClasspath. Hope it will work for you too. Don -Original Message- From: Fabrício [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 16, 2005 7:21 PM To: axis-user@ws.apache.org Cc: [EMAIL PROTECTED] Subject: RES: RES: Error - java.lang.reflect.InvocationTargetException? Javier, Where I have to put the class? I putted it into [TOMCAT]webapps\axis\WEB-INF\classes and didn't work. Could you be more clear please!?! Thanks a lot! Fabrício -Mensagem original- De: Javier Gonzalez [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 16 de agosto de 2005 18:34 Para: axis-user@ws.apache.org Assunto: Re: RES: Error - java.lang.reflect.InvocationTargetException? I'm not sure I'm understanding you two - calling all sorts of Java classes is possible with axis. Are you sure you have all the needed classes in the webapp classpath? Does your class need special parameters for its constructor? On 8/16/05, Fabrício [EMAIL PROTECTED] wrote: Hi Donald, In my case, I really need to have the call to method from another class. My web service is a kind of wrapper for a legacy application. And to do the call, it's necessary to escort stdin and stderr. And I'm doing this with two threads. As: cmd = d:\\programs\\cap3\\cap3 + newPath + my_seqs; process = Runtime.getRuntime().exec(cmd); StringBuffer inBuffer = new StringBuffer(); InputStream inStream = processo.getInputStream(); new InputStreamHandler( inBuffer, inStream ); StringBuffer errBuffer = new StringBuffer(); InputStream errStream = processo.getErrorStream(); new InputStreamHandler( errBuffer , errStream ); process.waitFor(); The InputStreamHandler is another java class. I really don't know how to solve it without the use of these threads (another class). :'-( -- Fabrício. -Mensagem original- De: Chen, Donald [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 16 de agosto de 2005 16:14 Para: [EMAIL PROTECTED]; axis-user@ws.apache.org Assunto: RE: Error - java.lang.reflect.InvocationTargetException? Yes, exactly. The moment I let the method in the WS call another class, I got the problem. Looks like we are on the same boat. Right now, I am trying to rewrite the service provider class to avoid the unnecessary calling. Also, I suspect the Tomcat is not able to find all the necessary jars to facilitating the call. Let me know what's your finding? Don -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 16, 2005 1:31 PM To: axis-user@ws.apache.org; Chen, Donald Subject: Re: Error - java.lang.reflect.InvocationTargetException? Hi, I'm having the same problem and in my case is because my web service needs to call a method from a common java class. I need to do this, but I think that isn't possible in Axis. Does your web service has a method call to another class to? -- Fabricio. Citando Chen, Donald [EMAIL PROTECTED]: Hi, there. I got a Error - java.lang.reflect.InvocationTargetException complain when I tried to invoke a web service. Any idea on how to find out what's going wrong? And what could be the reason(s)? Thanks. Don PS. Configure: WinXPPro Tomcat5.5/Axis1.2/JRE1.5 This message was sent using IMP, the Internet Messaging Program. -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.10/73 - Release Date: 15/8/2005 -- Javier Gonzalez Nicolini -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.10/73 - Release Date: 15/8/2005
WS examples for handling modestly complex input parameters and return types
Hi, there. I am a newbie of Axis and looking for code examples of WS(both service and client) which has input parameters like array and/or hash, and return types like array/hash. I found no such samples included in the Axis release. Any type clue(such as a URL) will be appreciated! Don
Error - java.lang.reflect.InvocationTargetException?
Hi, there. I got a Error - java.lang.reflect.InvocationTargetException complain when I tried to invoke a web service. Any idea on how to find out what's going wrong? And what could be the reason(s)? Thanks. Don PS. Configure: WinXPPro Tomcat5.5/Axis1.2/JRE1.5
RE: The AXIS engine could not find a target service to invoke! targetService is null error
Please ignore this question, I have figured out the reason why I got that error. I accidentally introduced defects to the deploy file when I do the cut-and-paste, so the deployment did not actually deploy well. Don -Original Message- From: Chen, Donald [mailto:[EMAIL PROTECTED] Sent: Thursday, August 11, 2005 11:40 AM To: axis-user@ws.apache.org Subject: The AXIS engine could not find a target service to invoke! targetService is null error Hi, All. I was following the instruction presented by an article written at 01 Jan 2003(is this article a bit out-of-date? Given the progress of Axis) -- http://www-128.ibm.com/developerworks/webservices/library/ws-eight/#code 2 And I was trying the EightBall example presented in the article, hoping to get a sense of deploying a web service via Axis. Basically, the EightBall service is encapsulated in this java code: 8--- import java.util.Random; import java.lang.Double; import java.util.Date; public class EightBall { static String answers[] = {Yes., Outlook not so good., // The other 17 answers were // removed for brevity. Don't count on it.}; public static String getAnswer() { return askQuestion(); } public static String askQuestion String question) { java.util.Random r = new Random (new Date().getTime()); java.lang.Double d = new Double ((r.nextDouble()*20)-1); return new String(answers[d.intValue()]); } public static void main(String args[]) { System.out.println(getAnswer()); } } 8--- I javac this java file and copied the EightBallclass file into the ...\tomcat_direcory\webapps\axis\WEB-INF\classes. Then I ran java org.apache.axis.client.AdminClient DeployEightBall.wsdd on the DeployEightBall.wsdd file (see below): 8--- deployment xmlns= http://xml.apache.org/axis/wsdd/; xmlns:java=http://xml.apache.org/axis/ wsdd/providers/java service name=urn:EightBall provider=java:RPC parameter name=className value=EightBall/ parameter name=allowedMethods value=getAnswer askQuestion/ /service /deployment 8--- So far so good. Then I tried to compile and then ran the EightBallClient1 code(see below): 8--- import javax.xml.namespace.QName; import org.apache.axis.client.Call; import org.apache.axis.client.Service; import org.apache.axis.encoding.XMLType; import org.apache.axis.utils.Options; public class EightBallClient1 { public static void main(String [] args) throws Exception { Service service = new Service(); Call call = (Call) service.createCall(); call.setTargetEndpointAddress(new java.net.URL(http://localhost:8080/axis/servlet/AxisServlet;)); call.setOperationName(new QName(urn:EightBall, getAnswer)); try { System.out.println(call.invoke(new Object[] { })); } catch (java.rmi.RemoteException re) { System.out.println(Error - + re); } } } 8--- This is the place where I got the error: The AXIS engine could not find a target service to invoke! targetService is nul Any idea? I also restarted the Tomcat, and that did not help. I use WinXP-Pro, Tomcat5.5, Axis1.2, JRE/JDK1.5. Thanks in advance, Don
RE: Exception in thread main java.lang.NoClassDefFoundError: org.apache.commons???
Meghan, Thanks for the advice. I reran the commend and I got the same response: D:\axis121\AXIS-1~1\samples\stockjava -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient -lhttp://localhost:8080/a is/services/AdminService deploy.wsdd Exception in thread main java.lang.NoClassDefFoundError: org.apache.commons.logging.LogFactory at org.apache.axis.components.logger.LogFactory.class$(LogFactory.java:45) at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.ja va:41) at org.apache.axis.components.logger.LogFactory.clinit(LogFactory.java:33 ) at org.apache.axis.client.AdminClient.clinit(AdminClient.java:48) Any idea? Don -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, August 05, 2005 5:19 PM To: axis-user@ws.apache.org Subject: Exception in thread main java.lang.NoClassDefFoundError: org.apache.commons??? Don, From your copy and paste below, it appears that you put the AXISCLASSPATH variable in quotation marks. Don't do that; you want the shell to fill in the actual value--that's what the percent signs are for. Meghan Pietila Granite Consulting On a Win box, I followed the Axis 1.2 Installation Guide and tried the Run the admin client java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd I am pretty sure the path %AXISCLASSPATH% was set right, but I still got this errors: D:\axis121\AXIS-1~1\samples\stockjava -cp %AXISCLASSPATH% org.apache.axis. axis/services/AdminService deploy.wsdd Exception in thread main java.lang.NoClassDefFoundError: org.apache.commons at org.apache.axis.components.logger.LogFactory.class$(LogFactory.jav at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFact at org.apache.axis.components.logger.LogFactory.clinit(LogFactory.j at org.apache.axis.client.AdminClient.clinit(AdminClient.java:48) Is this related to the JCL classloader issue or something else? How can I go around it? This is my configure: Axis 1.2 Tomcat5.5.9, WinXPPro, JRE1.5. Thanks, Don
RE: Exception in thread main java.lang.NoClassDefFoundError: org.apache.commons???
Tim, This is what the AXISCLASSPATH look like, D:\axis121\AXIS-1~1\samples\stockecho %AXISCLASSPATH% D:\axis121\axis-1_2_1\lib\axis.jar;D:\axis121\axis-1_2_1\lib\commons-dis covery.jar;D:\axis121\axis-1_2_1\lib\commons-logging.jar;D:\axis121\axis -1_2_1\lib\jaxrpc.jar;D:\axis121\axis-1_2_1\lib\saaj.jar;D:\axis121\axis -1_2_1\lib\log4j-1.2.8.jar;D:\axis121\axis-1_2_1\lib\xml-apis.jar;D:\axi s121\axis-1_2_1\lib\xercesImpl.jar Thanks, Don -Original Message- From: Bish, Tim [mailto:[EMAIL PROTECTED] Sent: Monday, August 08, 2005 10:15 AM To: 'axis-user@ws.apache.org' Subject: RE: Exception in thread main java.lang.NoClassDefFoundError: org.apache.commons??? What does you AXISCLASSPATH look like? Can you dump it out and attach paste it into an email? - Timothy A. Bish Sensis Corperation 5717 Enterprise Parkway East Syracuse, NY 13057 Phone: (315) 634-3027 [EMAIL PROTECTED] - -Original Message- From: Chen, Donald [mailto:[EMAIL PROTECTED] Sent: Monday, August 08, 2005 10:05 AM To: axis-user@ws.apache.org Subject: RE: Exception in thread main java.lang.NoClassDefFoundError: org.apache.commons??? Meghan, Thanks for the advice. I reran the commend and I got the same response: D:\axis121\AXIS-1~1\samples\stockjava -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient -lhttp://localhost:8080/a is/services/AdminService deploy.wsdd Exception in thread main java.lang.NoClassDefFoundError: org.apache.commons.logging.LogFactory at org.apache.axis.components.logger.LogFactory.class$(LogFactory.java:45) at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.ja va:41) at org.apache.axis.components.logger.LogFactory.clinit(LogFactory.java:33 ) at org.apache.axis.client.AdminClient.clinit(AdminClient.java:48) Any idea? Don -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, August 05, 2005 5:19 PM To: axis-user@ws.apache.org Subject: Exception in thread main java.lang.NoClassDefFoundError: org.apache.commons??? Don, From your copy and paste below, it appears that you put the AXISCLASSPATH variable in quotation marks. Don't do that; you want the shell to fill in the actual value--that's what the percent signs are for. Meghan Pietila Granite Consulting On a Win box, I followed the Axis 1.2 Installation Guide and tried the Run the admin client java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd I am pretty sure the path %AXISCLASSPATH% was set right, but I still got this errors: D:\axis121\AXIS-1~1\samples\stockjava -cp %AXISCLASSPATH% org.apache.axis. axis/services/AdminService deploy.wsdd Exception in thread main java.lang.NoClassDefFoundError: org.apache.commons at org.apache.axis.components.logger.LogFactory.class$(LogFactory.jav at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFact at org.apache.axis.components.logger.LogFactory.clinit(LogFactory.j at org.apache.axis.client.AdminClient.clinit(AdminClient.java:48) Is this related to the JCL classloader issue or something else? How can I go around it? This is my configure: Axis 1.2 Tomcat5.5.9, WinXPPro, JRE1.5. Thanks, Don
RE: Exception in thread main java.lang.NoClassDefFoundError: org.apache.commons???
Tim and Meghan, You guys are correct. I changed names as you suggested. And It works! But still, I got some warnings: D:\axis121\AXIS-1~1\samples\stockjava -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectResourceBundle). log4j:WARN Please initialize the log4j system properly. Processing file deploy.wsdd AdminDone processing/Admin Do those warnings matter? Thanks again, Don -Original Message- From: Bish, Tim [mailto:[EMAIL PROTECTED] Sent: Monday, August 08, 2005 10:45 AM To: 'axis-user@ws.apache.org' Subject: RE: Exception in thread main java.lang.NoClassDefFoundError: org.apache.commons??? Don is correct you JARs are not the correct names, here's my path C:\Documents and Settings\tbishecho %AXISCP% .;C:\Program Files\Java\jaf-1.0.2\activation.jar;C:\Program Files\Axis\lib\axis- ant.jar;C:\Program Files\Axis\lib\axis.jar;C:\Program Files\Axis\lib\commons-dis covery-0.2.jar;C:\Program Files\Axis\lib\commons-logging-1.0.4.jar ;C:\Program F iles\Axis\lib\jaxrpc.jar;C:\Program Files\Axis\lib\saaj.jar;C:\Program Files\Axi s\lib\wsdl4j-1.5.1.jar;C:\Program Files\Java\javamail-1.3.2\mail.jar; That should get you going, that WIKI page is also good to take a look at. The whole spaces thing can really be annoying... - Timothy A. Bish - -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, August 08, 2005 10:40 AM To: axis-user@ws.apache.org Subject: RE: Exception in thread main java.lang.NoClassDefFoundError: org.apache.commons??? Don, The JAR file names in your classpath don't match up to the names in my 1.2.1 download of Axis; I had the same problem when I copied a classpath setup script from the wiki (but had forgotten until Tim mentioned it). You'll want to go through and compare each JAR name against the real JAR in your /lib directory; for example, commons-discovery.jar is actually commons-discovery-0.2.jar on my system. That might be all you need to do... we'll see if Tim comes up with something additional. If you haven't discovered this page on the wiki yet, it might be useful: http://wiki.apache.org/ws/FrontPage/Axis/UsingCommandLineTools BTW, thanks for the reminder about quotation marks for spaced-classpaths, Tim, I remember reading that once but had never needed to use it. :) Meghan Tim, This is what the AXISCLASSPATH look like, D:\axis121\AXIS-1~1\samples\stockecho %AXISCLASSPATH% D:\axis121\axis-1_2_1\lib\axis.jar;D:\axis121\axis-1_2_1\lib\commons-dis covery.jar;D:\axis121\axis-1_2_1\lib\commons-logging.jar;D:\axis121\axis -1_2_1\lib\jaxrpc.jar;D:\axis121\axis-1_2_1\lib\saaj.jar;D:\axis121\axis -1_2_1\lib\log4j-1.2.8.jar;D:\axis121\axis-1_2_1\lib\xml-apis.jar;D:\axi s121\axis-1_2_1\lib\xercesImpl.jar Thanks, Don -Original Message- From: Bish, Tim [mailto:[EMAIL PROTECTED] Sent: Monday, August 08, 2005 10:15 AM To: 'axis-user@ws.apache.org' Subject: RE: Exception in thread main java.lang.NoClassDefFoundError: org.apache.commons??? What does you AXISCLASSPATH look like? Can you dump it out and attach paste it into an email? -Original Message- From: Chen, Donald [mailto:[EMAIL PROTECTED] Sent: Monday, August 08, 2005 10:05 AM To: axis-user@ws.apache.org Subject: RE: Exception in thread main java.lang.NoClassDefFoundError: org.apache.commons??? Meghan, Thanks for the advice. I reran the commend and I got the same response: D:\axis121\AXIS-1~1\samples\stockjava -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient -lhttp://localhost:8080/a is/services/AdminService deploy.wsdd Exception in thread main java.lang.NoClassDefFoundError: org.apache.commons.logging.LogFactory at org.apache.axis.components.logger.LogFactory.class$(LogFactory.java:45) at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.ja va:41) at org.apache.axis.components.logger.LogFactory.clinit(LogFactory.java:33 ) at org.apache.axis.client.AdminClient.clinit(AdminClient.java:48) Any idea? Don -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, August 05, 2005 5:19 PM To: axis-user@ws.apache.org Subject: Exception in thread main java.lang.NoClassDefFoundError: org.apache.commons??? Don, From your copy and paste below, it appears that you put the AXISCLASSPATH variable in quotation marks. Don't do that; you want the shell to fill in the actual value--that's what the percent signs are for. Meghan Pietila Granite Consulting On a Win box, I followed the Axis 1.2 Installation Guide and tried the Run the admin client java -cp %AXISCLASSPATH
RE: [Axis2] 0.95 Release RoadMap
On a Win box, I followed the Axis 1.2 Installation Guide and tried the Run the admin client java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd I am pretty sure the path %AXISCLASSPATH% was set right, but I still got this errors: D:\axis121\AXIS-1~1\samples\stockjava -cp %AXISCLASSPATH% org.apache.axis. axis/services/AdminService deploy.wsdd Exception in thread main java.lang.NoClassDefFoundError: org.apache.commons at org.apache.axis.components.logger.LogFactory.class$(LogFactory.jav at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFact at org.apache.axis.components.logger.LogFactory.clinit(LogFactory.j at org.apache.axis.client.AdminClient.clinit(AdminClient.java:48) Is this related to the JCL classloader issue or something else? How can I go around it? This is my configure: Axis 1.2 Tomcat5.5.9, WinXPPro, JRE1.5. Thanks, Don From: Eran Chinthaka [mailto:[EMAIL PROTECTED] Sent: Friday, August 05, 2005 12:52 AM To: axis-dev@ws.apache.org; axis-user@ws.apache.org Subject: [Axis2] 0.95 Release RoadMap Sorry, re-sending with Axis2 prefix Hi Axis2 Developers/Users, I'd like to propose to release Axis2 0.95 on next Friday (12-08-2005) and to have a code freeze on next Tuesday (9-8-2005). Followings are MUST do things before the release: 116, 112, 103, 100, 95, 82, 55, 51. Guys please give us a helping hand to fix these, before Tuesday. If you have any updates to Axis2 documentations, please do it, by the end of Wednesday. Followings were fixed in this release, up to now. If you have any comments, suggestions, please let us know. 1. [AXIS2-72] Network downloading of WSDL file. 2. [AXIS2-97] Turn off web services through Axis2 web admin module 3. [AXIS2-110] Inability to handle faults before creating message context 4. [AXIS2-57] User guide documentation: Help out people familiar with Axis 1.X 5. [AXIS2-102] Code generated by WSDL2Code won't compile 6. [AXIS2-113] Client side exception handling 7. [AXIS2-111] Remove all unnecessary System.out 8. [AXIS2-114] Introducing the Data binding for the Asynchronous programming model case 9. [AXIS2-106] Preserve Whitespaces 10. [AXIS2-115] Some critical test cases failed when shifted to Commons transports which is 11. [AXIS2-91] Code Generator Throws a null pointer Exception 12. [AXIS2-87] Faults based on SOAP version? 13. [AXIS2-43] Chuncking support for the simple HTTP Server and Axis2 default http transport 14. [AXIS2-33] Samples/docs need for SMTP transport 15. [AXIS2-108] SOAPEnvelope with XML declaration 16. [AXIS2-80] Support for UTF-16 (and ability to add others later) 17. [AXIS2-101] staxSOAPModelBuilder missing comments processing 18. [AXIS2-103] Remove code duplication 19. [AXIS2-55] Children order in SOAPElements 20. [AXIS2-51] blocking access to some OMElement methods within SOAPElements 21. [AXIS2-118] OMDocument must have XML Version and Char encoding 22. [AXIS2-100] Separating sample and test cases form Sample module 23. [AXIS2-95] SOAP with Attachements sample Regards, Eran Chinthaka
Exception in thread main java.lang.NoClassDefFoundError: org.apache.commons???
On a Win box, I followed the Axis 1.2 Installation Guide and tried the Run the admin client java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd I am pretty sure the path %AXISCLASSPATH% was set right, but I still got this errors: D:\axis121\AXIS-1~1\samples\stockjava -cp %AXISCLASSPATH% org.apache.axis. axis/services/AdminService deploy.wsdd Exception in thread main java.lang.NoClassDefFoundError: org.apache.commons at org.apache.axis.components.logger.LogFactory.class$(LogFactory.jav at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFact at org.apache.axis.components.logger.LogFactory.clinit(LogFactory.j at org.apache.axis.client.AdminClient.clinit(AdminClient.java:48) Is this related to the JCL classloader issue or something else? How can I go around it? This is my configure: Axis 1.2 Tomcat5.5.9, WinXPPro, JRE1.5. Thanks, Don
RE: could not find class javax.activation.DataHandler from file activation.jar ?
The Error I got only concerns javaax.activation.DataHander and has no sign related to the mailapi.jar. Do I still need the mailapi.jar? If I get it from sun, where should I put it? Thanks, Don -Original Message- From: richard falconer [mailto:[EMAIL PROTECTED] Sent: Thursday, August 04, 2005 4:37 AM To: axis-user@ws.apache.org Subject: RE: could not find class javax.activation.DataHandler from file activation.jar ? Additionally to the activation.jar, you'll need the mailapi.jar from java's mail api. This library is located somewhere on suns website. Best regards Richard At 23:07 03/08/2005, you wrote: I'm still learning all of this, but I used to get the message below, I fixed it by adding activation.jar to the classpath for the server or web application. (One machine I put it in the server\lib, one machine I put it in web-inf\lib). - Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled. Jeff From: Chen, Donald [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: could not find class javax.activation.DataHandler from file activation.jar ??? Date: Wed, 3 Aug 2005 17:53:10 -0400 Hi, there. I tried to run the http://127.0.0.1:8080/axis/happyaxis.jsp, and got this message: Error: could not find class javax.activation.DataHandler from file activation.jar Axis will not work. See http://java.sun.com/products/javabeans/glasgow/jaf.html I use Axis 12. with Tomcat 5.5 on windows XP professional, the JRE is J2SE 1.5. Did I miss something? Thanks, Don
could not find class javax.activation.DataHandler from file activation.jar ???
Hi, there. I tried to run the http://127.0.0.1:8080/axis/happyaxis.jsp, and got this message: Error: could not find class javax.activation.DataHandler from file activation.jar Axis will not work. See http://java.sun.com/products/javabeans/glasgow/jaf.html I use Axis 12. with Tomcat 5.5 on windows XP professional, the JRE is J2SE 1.5. Did I miss something? Thanks, Don