On Fri, Jul 17, 2009 at 4:18 PM, PrgTrdr <prgtrdr@gmail.com> wrote:

I am getting a similar error with a build from about 12 hours ago.

This is because the synapse-fix-transport.jar is not available in the Synapse classpath. It does not go into the classpath by default since the FIX transport is optional. You need to manually copy it there.

Thanks,
Hiranya
 


2009-07-17 06:45:10,388 [-] [WrapperSimpleAppMain]  INFO SynapseServer
Starting Apache Synapse...
2009-07-17 06:45:10,488 [-] [WrapperSimpleAppMain]  INFO
SynapseControllerFactory Using Synapse home : C:\Apache\SYNAPS~4\.
2009-07-17 06:45:10,488 [-] [WrapperSimpleAppMain]  INFO
SynapseControllerFactory Using Axis2 repository : C:\Apache\SYNAPS~4\reposi
tory
2009-07-17 06:45:10,488 [-] [WrapperSimpleAppMain]  INFO
SynapseControllerFactory Using axis2.xml location : C:\Apache\SYNAPS~4\repo
sitory\conf\axis2.xml
2009-07-17 06:45:10,488 [-] [WrapperSimpleAppMain]  INFO
SynapseControllerFactory Using synapse.xml location : C:\Apache\SYNAPS~4\bi
n\..\repository\conf\synapse.xml
2009-07-17 06:45:10,488 [-] [WrapperSimpleAppMain]  INFO
SynapseControllerFactory Using server name : localhost
2009-07-17 06:45:10,548 [-] [WrapperSimpleAppMain]  INFO
SynapseControllerFactory The timeout handler will run every : 15s
2009-07-17 06:45:10,668 [-] [WrapperSimpleAppMain]  INFO
Axis2SynapseController Initializing Synapse at : Fri Jul 17 06:45:10 EDT 20
09
2009-07-17 06:45:11,209 [-] [WrapperSimpleAppMain] FATAL
Axis2SynapseController Failed to create a new Axis2 instance...
org.apache.axis2.deployment.DeploymentException:
org.apache.synapse.transport.fix.FIXTransportSender
       at
org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:694)
       at
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:121)
       at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:707)
       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:206)
       at
org.apache.synapse.Axis2SynapseController.createNewInstance(Axis2SynapseController.java:494)
       at
org.apache.synapse.Axis2SynapseController.init(Axis2SynapseController.java:116)
       at org.apache.synapse.ServerManager.doInit(ServerManager.java:419)
       at org.apache.synapse.ServerManager.init(ServerManager.java:108)
       at org.apache.synapse.SynapseServer.main(SynapseServer.java:62)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
       at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassNotFoundException:
org.apache.synapse.transport.fix.FIXTransportSender
       at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:164)
       at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
       at
org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:669)
       ... 16 more

WrapperSimpleApp: Encountered an error running main:
org.apache.synapse.SynapseException: Failed to create a new Axis2
instance...
org.apache.synapse.SynapseException: Failed to create a new Axis2
instance...
       at
org.apache.synapse.Axis2SynapseController.handleFatal(Axis2SynapseController.java:786)
       at
org.apache.synapse.Axis2SynapseController.createNewInstance(Axis2SynapseController.java:517)
       at
org.apache.synapse.Axis2SynapseController.init(Axis2SynapseController.java:116)
       at org.apache.synapse.ServerManager.doInit(ServerManager.java:419)
       at org.apache.synapse.ServerManager.init(ServerManager.java:108)
       at org.apache.synapse.SynapseServer.main(SynapseServer.java:62)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
       at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.axis2.deployment.DeploymentException:
org.apache.synapse.transport.fix.FIXTransportSender
       at
org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:694)
       at
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:121)
       at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:707)
       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:206)
       at
org.apache.synapse.Axis2SynapseController.createNewInstance(Axis2SynapseController.java:494)
       ... 10 more
Caused by: java.lang.ClassNotFoundException:
org.apache.synapse.transport.fix.FIXTransportSender
       at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:164)
       at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
       at
org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:669)
       ... 16 more
<-- Wrapper Stopped


Supun Kamburugamuva wrote:
>
> Hi,
>
> I've built a fresh synapse from the trunk. When I try to start Synapse I
> got
> the following errors. The I commented out the mail and vfs transports from
> axis2.xml and it started successfully. Any ideas why this is happening?
> 2009-07-14 15:21:51,265 [-] [WrapperSimpleAppMain] FATAL
> Axis2SynapseController Failed to create a new Axis2 instance...
> org.apache.axis2.deployment.DeploymentException:
> org.apache.synapse.transport.vfs.VFSTransportSender
>         at
> org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:694)
>         at
> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:121)
>         at
> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:707)
>         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:206)
>         at
> org.apache.synapse.Axis2SynapseController.createNewInstance(Axis2SynapseController.java:494)
>         at
> org.apache.synapse.Axis2SynapseController.init(Axis2SynapseController.java:116)
>         at org.apache.synapse.ServerManager.doInit(ServerManager.java:419)
>         at org.apache.synapse.ServerManager.init(ServerManager.java:108)
>         at org.apache.synapse.SynapseServer.main(SynapseServer.java:62)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at
> org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
>         at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.synapse.transport.vfs.VFSTransportSender
>         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)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Unknown Source)
>         at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
>         at
> org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:669)
>         ... 16 more
>
> Thanks,
> Supun..
>
> --
> Software Engineer, WSO2 Inc
> http://wso2.org
> supunk.blogspot.com
>
>

--
View this message in context: http://www.nabble.com/Cannot-start-synapse-tp24476588p24532274.html
Sent from the Synapse - Dev mailing list archive at Nabble.com.


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




--
Hiranya Jayathilaka
Software Engineer;
WSO2 Inc.;  http://wso2.org
E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com