axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stromas, Aaron" <>
Subject RE: ConfigurationContextFactory.createConfigurationContextFromFileSystem yields IllegalArgumentException
Date Tue, 14 Aug 2012 13:49:57 GMT
Good morning, Martin -

First, I have been using the same blessed Rampart modules all along.  Now, to the real issue
- I did as you suggested, i.e., deployed Tomcat 7, Axis2 1.6.2 with the rampart modules from (I also added the Rampart jars to
Tomcat started fine but, as I mentioned, I'm operating in a very tightly controlled environment.
The browser proxy setting did not allow me to connect to http://localhost:8080 and I'm not
authorized to change proxy setting. The upshot, I can't verify the rampart module using the
admin tool.

Now, I'd like to test this deployment but, I am not running a web application but a standalone
client and I initialize the configuration context from the repository

ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem("c:/stage/axis2-1.6.2/repository",

How can I use the modules installed in Tomcat for my non-web client?



Date: Mon, 13 Aug 2012 17:25:23 -0400
Subject: RE: ConfigurationContextFactory.createConfigurationContextFromFileSystem yields IllegalArgumentException
Hello, Martin -

Thank you for the suggestion. I know, this is my problem, but my target environment is very
restricted one and it's windows XP sp3. I've used downloaded rampart modules on my winsdows
7 and they seem to work fine.  I can't build natively on the target machine, where I cannot
install any build tools, but I did so on my windows 7 machine. It appears to be an issue related
to the target platform.

I did follow the instructions you referenced. As I mentioned, I don't seem to have the same
issue on my development machine (unfortunately, no access to the web service from it).

Thanks again,


From: Martin Gainty []
Sent: Monday, 13 August, 2012 14:27
Subject: RE: ConfigurationContextFactory.createConfigurationContextFromFileSystem yields IllegalArgumentException

Good Afternoon Aaron

MG>it appears you dont have a valid rampart*.mar for your axis2 environment to use so it
would be best to follow the instructions for build and deploy rampart at
MG>Once you have valid rampart and rahas mar to deploy copy both mars to axis2/WEB-INF/modules
MG>then use the admin tool to view the rampart*mar and rahas*.mar
MG>then follow the instructions for incorporating rahas and rampart modules available at

MG>Issues regarding Microsoft Dot Net clients contacting Axis2 Servlet are explained at


Date: Mon, 13 Aug 2012 12:47:33 -0400
Subject: RE: ConfigurationContextFactory.createConfigurationContextFromFileSystem yields IllegalArgumentException
I thought that the error I was getting was due to the second parameter being null, so I created
an axis2.xml  and passes it as the second parameter. To my surprise, I'm still getting the
same error. And if I use null for both parameters, I get the "Unable to engage module: rampart"
when I try to load it. My client follows the article
Any suggestions, please?

INFO: Deploying module: soapmonitor-1.6.2 - file:/C:/Documents and Settings/astroma/My Documents/AxisClient/axis2-1.6.2/repository/modules/soapmonitor-1.6.2.mar
Exception in thread "main" java.lang.IllegalArgumentException: InputStream cannot be null
        at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
        at org.opensaml.xml.parse.BasicParserPool$DocumentBuilderProxy.parse(
        at org.opensaml.xml.parse.BasicParserPool.parse(
        at org.opensaml.xml.XMLConfigurator.load(
        at org.opensaml.DefaultBootstrap.initializeXMLTooling(
        at org.apache.rahas.RampartSAMLBootstrap.bootstrap(
        at org.apache.rahas.Rahas.init(
        at org.apache.axis2.context.ConfigurationContextFactory.initModules(
        at org.apache.axis2.context.ConfigurationContextFactory.init(
        at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(
        at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(

From: Stromas, Aaron []
Sent: Monday, 13 August, 2012 11:05
Subject: ConfigurationContextFactory.createConfigurationContextFromFileSystem yields IllegalArgumentException


I'm using Axis2 1.6.2 with Rampart 1.6.2. My client attempts to create the ConfigurationContext
by calling

File repoPath = new File("axis2-1.6.1/repository")

And I'm getting the IllegalArgumentException: Input cannot be null

Why is that? According to what I read, "AxisConfiguration will be created using default axis2.xml
and services and modules will be created and loaded from the repository". BTW, modules are
in ./ axis2-1.6.1/repository/modules.



View raw message