synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Heshan Suriyaarachchi (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SYNAPSE-719) ClassNotFoundException when using axis2 local transport
Date Tue, 18 Jan 2011 05:10:43 GMT

     [ https://issues.apache.org/jira/browse/SYNAPSE-719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Heshan Suriyaarachchi updated SYNAPSE-719:
------------------------------------------

    Attachment: SYNAPSE-719-patch.diff

Attaching the patch to fix the issue. 

> ClassNotFoundException when using axis2 local transport
> -------------------------------------------------------
>
>                 Key: SYNAPSE-719
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-719
>             Project: Synapse
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: NIGHTLY
>         Environment: Ubuntu 10.04
>            Reporter: Heshan Suriyaarachchi
>             Fix For: NIGHTLY
>
>         Attachments: SYNAPSE-719-patch.diff
>
>
> I added the axis2 local transport to the axis2.xml and started the synapse server. 
>  <transportSender name="local" class="org.apache.axis2.transport.local.LocalTransportSender"/>
> I am getting the following exception. 
> heshan@heshan-ThinkPad:~/Dev/work/esb_local_transport/synapse-2.1.0-SNAPSHOT/bin$ ./synapse.sh

>  [Warn] Synapse is tested only with Java 5
> Starting Synapse/Java ...
> Using SYNAPSE_HOME:    /home/heshan/Dev/work/esb_local_transport/synapse-2.1.0-SNAPSHOT
> Using JAVA_HOME:       /home/heshan/Installations/jdk1.6.0_22
> Using SYNAPSE_XML:     /home/heshan/Dev/work/esb_local_transport/synapse-2.1.0-SNAPSHOT/repository/conf/synapse-config
> 2011-01-18 09:53:29,983 [-] [main]  INFO SynapseServer Starting Apache Synapse...
> 2011-01-18 09:53:30,028 [-] [main]  INFO SynapseControllerFactory Using Synapse home
: /home/heshan/Dev/work/esb_local_transport/synapse-2.1.0-SNAPSHOT
> 2011-01-18 09:53:30,028 [-] [main]  INFO SynapseControllerFactory Using Axis2 repository
: /home/heshan/Dev/work/esb_local_transport/synapse-2.1.0-SNAPSHOT/repository
> 2011-01-18 09:53:30,028 [-] [main]  INFO SynapseControllerFactory Using axis2.xml location
: /home/heshan/Dev/work/esb_local_transport/synapse-2.1.0-SNAPSHOT/repository/conf/axis2.xml
> 2011-01-18 09:53:30,028 [-] [main]  INFO SynapseControllerFactory Using synapse.xml location
: /home/heshan/Dev/work/esb_local_transport/synapse-2.1.0-SNAPSHOT/repository/conf/synapse-config
> 2011-01-18 09:53:30,028 [-] [main]  INFO SynapseControllerFactory Using server name :
localhost
> 2011-01-18 09:53:30,147 [-] [main]  INFO SynapseControllerFactory The timeout handler
will run every : 15s
> 2011-01-18 09:53:30,383 [-] [main]  INFO Axis2SynapseController Initializing Synapse
at : Tue Jan 18 09:53:30 IST 2011
> 2011-01-18 09:53:30,830 [-] [main] FATAL Axis2SynapseController Failed to create a new
Axis2 instance...
> org.apache.axis2.deployment.DeploymentException: org.apache.axis2.transport.local.LocalTransportSender
> 	at org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:708)
> 	at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:122)
> 	at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:857)
> 	at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
> 	at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
> 	at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)
> 	at org.apache.synapse.Axis2SynapseController.createNewInstance(Axis2SynapseController.java:603)
> 	at org.apache.synapse.Axis2SynapseController.init(Axis2SynapseController.java:131)
> 	at org.apache.synapse.ServerManager.doInit(ServerManager.java:405)
> 	at org.apache.synapse.ServerManager.init(ServerManager.java:106)
> 	at org.apache.synapse.SynapseServer.main(SynapseServer.java:65)
> Caused by: java.lang.ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Class.java:169)
> 	at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
> 	at org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:683)
> 	... 10 more
> Exception in thread "main" org.apache.synapse.SynapseException: Failed to create a new
Axis2 instance...
> 	at org.apache.synapse.Axis2SynapseController.handleFatal(Axis2SynapseController.java:907)
> 	at org.apache.synapse.Axis2SynapseController.createNewInstance(Axis2SynapseController.java:626)
> 	at org.apache.synapse.Axis2SynapseController.init(Axis2SynapseController.java:131)
> 	at org.apache.synapse.ServerManager.doInit(ServerManager.java:405)
> 	at org.apache.synapse.ServerManager.init(ServerManager.java:106)
> 	at org.apache.synapse.SynapseServer.main(SynapseServer.java:65)
> Caused by: org.apache.axis2.deployment.DeploymentException: org.apache.axis2.transport.local.LocalTransportSender
> 	at org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:708)
> 	at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:122)
> 	at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:857)
> 	at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
> 	at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
> 	at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)
> 	at org.apache.synapse.Axis2SynapseController.createNewInstance(Axis2SynapseController.java:603)
> 	... 4 more
> Caused by: java.lang.ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Class.java:169)
> 	at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
> 	at org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:683)
> 	... 10 more

-- 
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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message