You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Daniel Wehrle <we...@daniel-wehrle.de> on 2006/12/19 10:57:06 UTC
[Axis2 1.1] FileSystemConfigurator
Hi,
I having some troubles with the FileSystemConfigurator.
If I set both the repository dir and the axis configuration file, (like
in the code sample) it seams like the config File is ignored.
The modules are loaded, but not used in the send message.
If I set null for the repository dir it works. But eclipse can't handle
*.mar files in the class path :-(
so what can I do?
Thank you
-- Daniel Wehrle
----------------------------------------------------------------------------------------------------------------------
public ConfigurationContext getConfigContext() throws
MalformedURLException, AxisFault{
File f = new File("iJCli.axis2.xml");
URL axis2URL = f.toURL();
System.out.println(axis2URL.getPath());
File dir1 = new File (".");
// Create the Configuration including Repository and
Configuration file
FileSystemConfigurator cfg8r = new
FileSystemConfigurator(dir1.getAbsolutePath(), axis2URL.getPath());
AxisConfiguration cfg = cfg8r.getAxisConfiguration();
//HashMap map = cfg.getModules();
return new ConfigurationContext(cfg);
}// -- getConfigContext
----------------------------------------------------------------------------------------------------------------------
Dec 19, 2006 10:50:28 AM org.apache.axis2.deployment.DeploymentEngine
prepareRepository
INFO: no services directory found under Y:\workspace-1.1\axisNightly
Dec 19, 2006 10:50:28 AM org.apache.axis2.deployment.DeploymentEngine
doDeploy
INFO: Deploying module : addressing-1.1
Dec 19, 2006 10:50:28 AM org.apache.axis2.deployment.DeploymentEngine
doDeploy
INFO: Deploying module : rahas-1.1
Dec 19, 2006 10:50:28 AM org.apache.axis2.deployment.DeploymentEngine
doDeploy
INFO: Deploying module : rampart-1.1
Exception in thread "main" org.apache.axis2.AxisFault:
Microsoft.Web.Services3.Security.SecurityFault: Header
http://schemas.xmlsoap.org/ws/2004/08/addressing:Action for ultimate
recipient is required but not present in the message.
at
Microsoft.Web.Services3.Design.RequireSoapHeaderAssertion.RequireSoapHeaderFilter.ProcessMessage(SoapEnvelope
envelope)
at Microsoft.Web.Services3.Pipeline.ProcessInputMessage(SoapEnvelope
envelope)
at Microsoft.Web.Services3.WseProtocol.FilterRequest(SoapEnvelope
requestEnvelope)
at Microsoft.Web.Services3.WseProtocol.RouteRequest(SoapServerMessage
message)
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type
type, HttpContext context, HttpRequest request, HttpResponse response,
Boolean& abortProcessing)
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:308)
at com.iternity.www.WormRaidStub.GetSystemInfo(WormRaidStub.java:663)
at start.iTernityHelper.GetSytemInfo(iTernityHelper.java:349)
at start.iTernityHelper.switchCommand(iTernityHelper.java:106)
at start.iTernityHelper.main(iTernityHelper.java:97)
----------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2 1.1] FileSystemConfigurator
Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi Daniel ;
I just checked that and it work for me .
Thanks
Deepal
> Hi,
>
> I having some troubles with the FileSystemConfigurator.
> If I set both the repository dir and the axis configuration file,
> (like in the code sample) it seams like the config File is ignored.
> The modules are loaded, but not used in the send message.
>
> If I set null for the repository dir it works. But eclipse can't
> handle *.mar files in the class path :-(
>
> so what can I do?
>
>
> Thank you
> -- Daniel Wehrle
>
> ----------------------------------------------------------------------------------------------------------------------
>
> public ConfigurationContext getConfigContext() throws
> MalformedURLException, AxisFault{
> File f = new File("iJCli.axis2.xml");
> URL axis2URL = f.toURL();
> System.out.println(axis2URL.getPath());
> File dir1 = new File (".");
> // Create the Configuration including Repository and
> Configuration file
> FileSystemConfigurator cfg8r = new
> FileSystemConfigurator(dir1.getAbsolutePath(),
> axis2URL.getPath()); AxisConfiguration cfg =
> cfg8r.getAxisConfiguration();
> //HashMap map = cfg.getModules();
> return new ConfigurationContext(cfg);
> }// -- getConfigContext
> ----------------------------------------------------------------------------------------------------------------------
>
> Dec 19, 2006 10:50:28 AM org.apache.axis2.deployment.DeploymentEngine
> prepareRepository
> INFO: no services directory found under Y:\workspace-1.1\axisNightly
> Dec 19, 2006 10:50:28 AM org.apache.axis2.deployment.DeploymentEngine
> doDeploy
> INFO: Deploying module : addressing-1.1
> Dec 19, 2006 10:50:28 AM org.apache.axis2.deployment.DeploymentEngine
> doDeploy
> INFO: Deploying module : rahas-1.1
> Dec 19, 2006 10:50:28 AM org.apache.axis2.deployment.DeploymentEngine
> doDeploy
> INFO: Deploying module : rampart-1.1
> Exception in thread "main" org.apache.axis2.AxisFault:
> Microsoft.Web.Services3.Security.SecurityFault: Header
> http://schemas.xmlsoap.org/ws/2004/08/addressing:Action for ultimate
> recipient is required but not present in the message.
> at
> Microsoft.Web.Services3.Design.RequireSoapHeaderAssertion.RequireSoapHeaderFilter.ProcessMessage(SoapEnvelope
> envelope)
> at Microsoft.Web.Services3.Pipeline.ProcessInputMessage(SoapEnvelope
> envelope)
> at Microsoft.Web.Services3.WseProtocol.FilterRequest(SoapEnvelope
> requestEnvelope)
> at
> Microsoft.Web.Services3.WseProtocol.RouteRequest(SoapServerMessage
> message)
> at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
> at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type
> type, HttpContext context, HttpRequest request, HttpResponse response,
> Boolean& abortProcessing)
> at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:308)
>
> at com.iternity.www.WormRaidStub.GetSystemInfo(WormRaidStub.java:663)
> at start.iTernityHelper.GetSytemInfo(iTernityHelper.java:349)
> at start.iTernityHelper.switchCommand(iTernityHelper.java:106)
> at start.iTernityHelper.main(iTernityHelper.java:97)
> ----------------------------------------------------------------------------------------------------------------------
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
--
Thanks,
Deepal
................................................................
"The highest tower is built one brick at a time"
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org