Could u please log a bug so that we can track it?
thanks,
dims
On 6/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Dims,
I tried the latest nightly from 06-15. It still does not work. I simply
took the axis2.war, renamed addressing-SNAPSHOT.mar inside it to
addressing.mar, and deployed it in WebLogic 9.1. It gave me the following
error on startup about not being able to load the referenced addressing
module. I then removed the addressing module reference from axis2.xml and
tried it again. It came up fine now, but I still don't see the Version
service, which is part of Axis2.war, in the Axis admin console.
I took a peek at the source code in WarBasedAxisConfigurator. I don't see
any code that handles the case when getServletContext().getRealPath("") ==
null. So it looks like this is not yet implemented.
Here's the error about not being able to load the addressing module:
<Jun 15, 2006 11:38:32 AM EDT> <Error> <HTTP> <BEA-101216> <Servlet:
"AxisServlet" failed to preload
on startup in Web application: "axis2.war".
org.apache.axis2.deployment.DeploymentException: Trying to engage a module
which is not available :
addressing; nested exception is:
org.apache.axis2.AxisFault: Trying to engage a module which is not
available : addressing
at
org.apache.axis2.deployment.DeploymentEngine.loadFromClassPath(DeploymentEngine.java:147)
at
org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisCon
figurator.java:213)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(Configura
tionContextFactory.java:56)
at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:235)
at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:203)
Truncated. see log file for complete stacktrace
org.apache.axis2.AxisFault: Trying to engage a module which is not
available : addressing
at
org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration.java:301)
at
org.apache.axis2.deployment.DeploymentEngine.engageModules(DeploymentEngine.java:766)
at
org.apache.axis2.deployment.DeploymentEngine.loadFromClassPath(DeploymentEngine.java:143)
at
org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisCon
figurator.java:213)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(Configura
tionContextFactory.java:56)
Thanks,
Junaid
"Davanum
Srinivas"
<[EMAIL PROTECTED] To
m> [email protected]
cc
06/14/2006 11:43
AM Subject
Re: Axis2 Deployment Model
Deficiency
Please respond to
[EMAIL PROTECTED]
he.org
Junaid,
Did you try latest nightly? I believe this is fixed.
thanks,
dims
On 6/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Here's my scenario which I believe might be a common requirement for a
lot
> of enterprise applications. I'm trying to bundle Axis2 webapp as part of
a
> bigger EAR application and deploy in an application server such as
> WebLogic. I would like to package up all of the Web Services inside of
the
> webapp/EAR file. The problem is that Axis2 cannot seem to load the
services
> from within the EAR file in WebLogic..
>
> The issue arises due to the fact that Axis2 relies on the concept of a
> repository, which MUST be a folder on the file system. On certain
> application servers like WebSphere, this is not an issue since they
> internally explode the EAR when you deploy it and Axis2 does not seem to
> have a problem. However application servers like WebLogic do NOT explode
> the EAR, hence Axis2 cannot find/load the services from the repository.
>
> Here is the offending code in WarBasedAxisConfigurator:
>
> repository =
> config.getServletContext().getRealPath("/WEB-INF"); <--- this returns
null
> in Weblogic
> axis2Steram = new FileInputStream(repository +
> "/conf/axis2.xml");
>
> There are 2 work-arounds as I understand it:
> 1) Always deploy the application in an exploded format (WebLogic provides
> this feature). However this is not an option for us.
> 2) Use a repository folder OUTSIDE of the EAR by specifiying the
> axis2.xml.path in web.xml. However this option also poses a problem in a
> cluster scenario where you need to have a common accessible folder, which
> will serve as the repository and EVERY machine in the cluster must be
> mapped to this common folder. It's a setup & maintenance headache.
>
> I worked previously with Axis 1.x and it did not have a problem loading
> services from within the EAR file. Ofcourse any changes you make to the
> configuration while it was running would be lost on a server re-start
> (since server-config.wsdd was read-only). But it still worked.
>
> I believe this is a critical change that is needed and should be
addressed
> in the next version, unless I'm missing something here. Let me know if I
> should open up an enhancement request JIRA.
>
> Thanks,
> Junaid
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Davanum Srinivas : http://wso2.com/blogs/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Davanum Srinivas : http://wso2.com/blogs/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]