[
http://issues.apache.org/jira/browse/AXIS2-240?page=comments#action_12372242 ]
Dmitriy Kiriy commented on AXIS2-240:
-------------------------------------
Gentlemen, I have even more issues.
1. 8.1 have 2 options about how applications deployed:
a. "non-staging".
b."staging"
Basically, it mean Weblogic create temporary directory and extract .war there.
So, "staging" employ process above, "non-staging" do not.
Non-staging works if you have no cluster or only one machine in cluster, so
application can be deployed directly from .war using JarClassLoader. "staging"
works if you have 2 or more machines, and allow some changes in application
configuration for each machine before it get deployed.
So, in "non-staging" mode context.getRealPath("/WEB-INF"); is null, is
"staging" mode everything works perfectly.
Thats about it.
Also, Runtime service deployment would not work in Weblogic Cluster (or
probably any cluster), because services would be uploaded to one exact machine
only.
> Problem in deploying Axis2 ear in BEA 8.1
> -----------------------------------------
>
> Key: AXIS2-240
> URL: http://issues.apache.org/jira/browse/AXIS2-240
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Components: deployment
> Environment: BEA 8.1 sp3 on
> Windows XP
> Reporter: Eran Chinthaka
> Assignee: Deepal Jayasinghe
>
> ( Reporting from the mail
> http://marc.theaimsgroup.com/?l=axis-dev&m=112739016113007&w=2 )
> I am deploying the latest Axis2 built from source to BEA 8.1 sp3 on
> Windows XP. I had success using Axis2 when deployed as a stand-alone
> war, but when I deploy it within an ear in it's archived format (not
> exploded) I get the following error. I also get the same error on 0.91.
> ####<Sep 21, 2005 2:58:35 PM CDT> <Error> <HTTP> <wplwyoungb> <m603>
> <ExecuteThread: '14' for queue: 'weblogic.kernel.Default'> <<WLS
> Kernel>> <> <BEA-101017>
> <[ServletContext(id=15670774,name=axis2,context-path=/axis2)] Root cause
> of ServletException.
> org.apache.axis2.deployment.DeploymentException: Axis2 repository can
> not be null; nested exception is:
> org.apache.axis2.deployment.DeploymentException: Axis2
> repository can not be null
> at
> org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationC
> ontext(ConfigurationContextFactory.java:73)
> at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:62)
> ...
> Caused by: org.apache.axis2.deployment.DeploymentException: Axis2
> repository can not be null
> at
> org.apache.axis2.deployment.DeploymentEngine.<init>(DeploymentEngine.jav
> a:142)
> at
> org.apache.axis2.deployment.DeploymentEngine.<init>(DeploymentEngine.jav
> a:136)
> at
> org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationC
> ontext(ConfigurationContextFactory.java:39)
> I tracked this down to the repository name being null when the following
> call is made in AxisServlet.
> String repoDir = context.getRealPath("/WEB-INF");
> This of course is due to the deployment in an archive, not exploded on
> the filesystem. It is valid according to the spec for BEA to return null
> here. Valid, but not friendly. Unfortunately, we can't use exploded ears
> at customer sites. My quick fix right now is to use the java.io.tmpdir
> instead if repoDir is null.
> if (repoDir == null) repoDir = System.getProperty("java.io.tmpdir");
> I made the same mod to upload.jsp and I can at least work in Axis2
> again. I am going to work on getting the services included in the war to
> be available. Right now, I have to upload and there is the chance my
> file will get deleted on restart.
> I'd like to see something like this added to Axis2. I can submit a diff
> if there is interest. Or we can discuss alternate solutions. Like
> breaking out the storage of the services into a pluggable component.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira