You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Eran Chinthaka (JIRA)" <ji...@apache.org> on 2005/09/23 19:21:27 UTC

[jira] Created: (AXIS2-240) Problem in deploying Axis2 ear in BEA 8.1

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
 Assigned to: 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


[jira] Commented: (AXIS2-240) Problem in deploying Axis2 ear in BEA 8.1

Posted by "Steve Loughran (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-240?page=comments#action_12331706 ] 

Steve Loughran commented on AXIS2-240:
--------------------------------------

Isnt there some per-webapp temp-dir-property for exactly this purpose -to provide a temp dir for a webapp?

> 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


[jira] Resolved: (AXIS2-240) Problem in deploying Axis2 ear in BEA 8.1

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-240?page=all ]
     
Deepal Jayasinghe resolved AXIS2-240:
-------------------------------------

    Resolution: Fixed

see

http://marc.theaimsgroup.com/?l=axis-dev&m=114388957914651&w=2

> 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
>     Priority: Blocker

>
> ( 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


[jira] Commented: (AXIS2-240) Problem in deploying Axis2 ear in BEA 8.1

Posted by "Dmitriy Kiriy (JIRA)" <ji...@apache.org>.
    [ 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


[jira] Commented: (AXIS2-240) Problem in deploying Axis2 ear in BEA 8.1

Posted by "Eran Chinthaka (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-240?page=comments#action_12362165 ] 

Eran Chinthaka commented on AXIS2-240:
--------------------------------------

This should be fixed with the introduction of the Configurator abstraction. Deepal can you please comment on this ?

> 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


[jira] Updated: (AXIS2-240) Problem in deploying Axis2 ear in BEA 8.1

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-240?page=all ]

Davanum Srinivas updated AXIS2-240:
-----------------------------------

    Priority: Blocker  (was: Major)

Is this a Blocker for 1.0 release? do we need to support unpacked war's for 1.0?

thanks,
dims

> 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
>     Priority: Blocker

>
> ( 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


[jira] Commented: (AXIS2-240) Problem in deploying Axis2 ear in BEA 8.1

Posted by "Dmitriy Kiriy (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-240?page=comments#action_12372259 ] 

Dmitriy Kiriy commented on AXIS2-240:
-------------------------------------

Forget to mention, post above about deploying .war file.

If you deploy .EAR with .war inside, this don't work bacause .EAR got unpacked but .WAR not

> 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


[jira] Commented: (AXIS2-240) Problem in deploying Axis2 ear in BEA 8.1

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-240?page=comments#action_12331249 ] 

Deepal Jayasinghe commented on AXIS2-240:
-----------------------------------------

I think we have to handle that in proper way ,  using "temp" directory idea might make some problem in the future.

So my idea is to introduce AXIS2_HOME environmental variable and if the repository name is null we have to check for that.

In the case of non-exploded war case , yours has to set the AXIS2_HOME variable , is it doable in your case ? (Eran)

so the code will look like as follows in AxisServlet

          String repoDir = context.getRealPath("/WEB-INF");
            if(repoDir == null){
              repoDir = System.getProperty("AXIS2_HOME")
            }

I will go ahead and implement that .

> 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