You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "flamingo (JIRA)" <ji...@apache.org> on 2010/11/18 06:26:14 UTC

[jira] Created: (AXIS2-4886) Issue while running the client

Issue while running the client 
-------------------------------

                 Key: AXIS2-4886
                 URL: https://issues.apache.org/jira/browse/AXIS2-4886
             Project: Axis2
          Issue Type: Test
         Environment: Microsoft Windows XP OS
            Reporter: flamingo


hi,

Am using Axis 1.5.1 and jdk 1.6. I have followed the below link to  Am new to web services and using axis for creating a sample web service. The following link i have followed for creating.

http://www.roseindia.net/webservices/axis2/axis2-client.shtml

In Axis 2 client example, i was not able to compile. I resolved the compilation issue by using the following command.

javac -extdirs D:\Axis2Tutorial\axis2-1.5.1-bin\axis2-1.5.1\lib net/roseindia/*.java

Now, when am trying to run the client is was throwing the following error.


D:\Axis2Tutorial\Examples\HelloWorld\client\client\src>java net\roseindia\Test
Exception in thread "main" java.lang.NoClassDefFoundError: net\roseindia\Test
Caused by: java.lang.ClassNotFoundException: net\roseindia\Test
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: net\roseindia\Test.  Program will exit.

I tried including jar files of axis while running but it was not working. 

Please help me in resolving the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4886) Issue while running the client

Posted by "flamingo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12933683#action_12933683 ] 

flamingo commented on AXIS2-4886:
---------------------------------

Hi,

Test class is present in the directory net\roseindia. Though the class is there, it is throwing error.

I also tried running using  java net.roseindia.Test  but still facing the same error.

I have followed the steps given in the tutorial. Can you please try and give me some inputs on the same.

http://www.roseindia.net/webservices/axis2/axis2-client.shtml 




> Issue while running the client 
> -------------------------------
>
>                 Key: AXIS2-4886
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4886
>             Project: Axis2
>          Issue Type: Test
>         Environment: Microsoft Windows XP OS
>            Reporter: flamingo
>
> hi,
> Am using Axis 1.5.1 and jdk 1.6. I have followed the below link to  Am new to web services and using axis for creating a sample web service. The following link i have followed for creating.
> http://www.roseindia.net/webservices/axis2/axis2-client.shtml
> In Axis 2 client example, i was not able to compile. I resolved the compilation issue by using the following command.
> javac -extdirs D:\Axis2Tutorial\axis2-1.5.1-bin\axis2-1.5.1\lib net/roseindia/*.java
> Now, when am trying to run the client is was throwing the following error.
> D:\Axis2Tutorial\Examples\HelloWorld\client\client\src>java net\roseindia\Test
> Exception in thread "main" java.lang.NoClassDefFoundError: net\roseindia\Test
> Caused by: java.lang.ClassNotFoundException: net\roseindia\Test
>         at java.net.URLClassLoader$1.run(Unknown Source)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> Could not find the main class: net\roseindia\Test.  Program will exit.
> I tried including jar files of axis while running but it was not working. 
> Please help me in resolving the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Resolved: (AXIS2-4886) Issue while running the client

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen resolved AXIS2-4886.
------------------------------------

    Resolution: Invalid

> Issue while running the client 
> -------------------------------
>
>                 Key: AXIS2-4886
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4886
>             Project: Axis2
>          Issue Type: Test
>         Environment: Microsoft Windows XP OS
>            Reporter: flamingo
>
> hi,
> Am using Axis 1.5.1 and jdk 1.6. I have followed the below link to  Am new to web services and using axis for creating a sample web service. The following link i have followed for creating.
> http://www.roseindia.net/webservices/axis2/axis2-client.shtml
> In Axis 2 client example, i was not able to compile. I resolved the compilation issue by using the following command.
> javac -extdirs D:\Axis2Tutorial\axis2-1.5.1-bin\axis2-1.5.1\lib net/roseindia/*.java
> Now, when am trying to run the client is was throwing the following error.
> D:\Axis2Tutorial\Examples\HelloWorld\client\client\src>java net\roseindia\Test
> Exception in thread "main" java.lang.NoClassDefFoundError: net\roseindia\Test
> Caused by: java.lang.ClassNotFoundException: net\roseindia\Test
>         at java.net.URLClassLoader$1.run(Unknown Source)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> Could not find the main class: net\roseindia\Test.  Program will exit.
> I tried including jar files of axis while running but it was not working. 
> Please help me in resolving the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4886) Issue while running the client

Posted by "Raghu Upadhyayula (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12933460#action_12933460 ] 

Raghu Upadhyayula commented on AXIS2-4886:
------------------------------------------

The Exception you are getting is not related to Axis2.   The Test class which you are using as your client is not found in the classpath.

and the way you run the Test class is NOT like java net\roseindia\Test.  

You should run it like this java net.roseindia.Test

> Issue while running the client 
> -------------------------------
>
>                 Key: AXIS2-4886
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4886
>             Project: Axis2
>          Issue Type: Test
>         Environment: Microsoft Windows XP OS
>            Reporter: flamingo
>
> hi,
> Am using Axis 1.5.1 and jdk 1.6. I have followed the below link to  Am new to web services and using axis for creating a sample web service. The following link i have followed for creating.
> http://www.roseindia.net/webservices/axis2/axis2-client.shtml
> In Axis 2 client example, i was not able to compile. I resolved the compilation issue by using the following command.
> javac -extdirs D:\Axis2Tutorial\axis2-1.5.1-bin\axis2-1.5.1\lib net/roseindia/*.java
> Now, when am trying to run the client is was throwing the following error.
> D:\Axis2Tutorial\Examples\HelloWorld\client\client\src>java net\roseindia\Test
> Exception in thread "main" java.lang.NoClassDefFoundError: net\roseindia\Test
> Caused by: java.lang.ClassNotFoundException: net\roseindia\Test
>         at java.net.URLClassLoader$1.run(Unknown Source)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> Could not find the main class: net\roseindia\Test.  Program will exit.
> I tried including jar files of axis while running but it was not working. 
> Please help me in resolving the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org