You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Simon Laws (JIRA)" <tu...@ws.apache.org> on 2008/01/14 17:01:47 UTC

[jira] Created: (TUSCANY-1986) Samples which fire up Axis don't run in Geronimo

Samples which fire up Axis don't run in Geronimo
------------------------------------------------

                 Key: TUSCANY-1986
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1986
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Axis Binding Extension
    Affects Versions: Java-SCA-1.1
         Environment: Windows XP
Geronimo 2.0.2 Tomcat6 jee5
            Reporter: Simon Laws
             Fix For: Java-SCA-1.1


Samples/
  calculator-ws-webapp 
  helloworld-ws-sdo-webapp
  alert-aggregator-webapp

Don't run in Geronimo and report the exception...

Caused by:
org.apache.axis2.AxisFault: org.apache.commons.fileupload.FileUploadException
        at org.apache.tuscany.sca.binding.ws.axis2.TuscanyAxisConfigurator.getAx
isConfiguration(TuscanyAxisConfigurator.java:119)
        at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
ionContext(ConfigurationContextFactory.java:64)
        at org.apache.tuscany.sca.binding.ws.axis2.TuscanyAxisConfigurator.getCo
nfigurationContext(TuscanyAxisConfigurator.java:71)
        at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.<init>(A
xis2ServiceProvider.java:149)



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Assigned: (TUSCANY-1986) Samples which fire up Axis don't run in Geronimo

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Feng reassigned TUSCANY-1986:
-------------------------------------

    Assignee: Raymond Feng

> Samples which fire up Axis don't run in Geronimo
> ------------------------------------------------
>
>                 Key: TUSCANY-1986
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1986
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding Extension
>    Affects Versions: Java-SCA-1.1
>         Environment: Windows XP
> Geronimo 2.0.2 Tomcat6 jee5
>            Reporter: Simon Laws
>            Assignee: Raymond Feng
>             Fix For: Java-SCA-1.1
>
>
> Samples/
>   calculator-ws-webapp 
>   helloworld-ws-sdo-webapp
>   alert-aggregator-webapp
> Don't run in Geronimo and report the exception...
> Caused by:
> org.apache.axis2.AxisFault: org.apache.commons.fileupload.FileUploadException
>         at org.apache.tuscany.sca.binding.ws.axis2.TuscanyAxisConfigurator.getAx
> isConfiguration(TuscanyAxisConfigurator.java:119)
>         at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
> ionContext(ConfigurationContextFactory.java:64)
>         at org.apache.tuscany.sca.binding.ws.axis2.TuscanyAxisConfigurator.getCo
> nfigurationContext(TuscanyAxisConfigurator.java:71)
>         at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.<init>(A
> xis2ServiceProvider.java:149)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1986) Samples which fire up Axis don't run in Geronimo

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12560511#action_12560511 ] 

Raymond Feng commented on TUSCANY-1986:
---------------------------------------

We missed one module: demo-alert-aggregator-webapp

> Samples which fire up Axis don't run in Geronimo
> ------------------------------------------------
>
>                 Key: TUSCANY-1986
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1986
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding Extension
>    Affects Versions: Java-SCA-1.1
>         Environment: Windows XP
> Geronimo 2.0.2 Tomcat6 jee5
>            Reporter: Simon Laws
>            Assignee: Raymond Feng
>             Fix For: Java-SCA-1.1
>
>         Attachments: geronimo-web.xml
>
>
> Samples/
>   calculator-ws-webapp 
>   helloworld-ws-sdo-webapp
>   alert-aggregator-webapp
> Don't run in Geronimo and report the exception...
> Caused by:
> org.apache.axis2.AxisFault: org.apache.commons.fileupload.FileUploadException
>         at org.apache.tuscany.sca.binding.ws.axis2.TuscanyAxisConfigurator.getAx
> isConfiguration(TuscanyAxisConfigurator.java:119)
>         at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
> ionContext(ConfigurationContextFactory.java:64)
>         at org.apache.tuscany.sca.binding.ws.axis2.TuscanyAxisConfigurator.getCo
> nfigurationContext(TuscanyAxisConfigurator.java:71)
>         at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.<init>(A
> xis2ServiceProvider.java:149)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1986) Samples which fire up Axis don't run in Geronimo

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Feng updated TUSCANY-1986:
----------------------------------

    Attachment: geronimo-web.xml

Here is a geronimo-web.xml I tested to be successful.

> Samples which fire up Axis don't run in Geronimo
> ------------------------------------------------
>
>                 Key: TUSCANY-1986
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1986
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding Extension
>    Affects Versions: Java-SCA-1.1
>         Environment: Windows XP
> Geronimo 2.0.2 Tomcat6 jee5
>            Reporter: Simon Laws
>            Assignee: Raymond Feng
>             Fix For: Java-SCA-1.1
>
>         Attachments: geronimo-web.xml
>
>
> Samples/
>   calculator-ws-webapp 
>   helloworld-ws-sdo-webapp
>   alert-aggregator-webapp
> Don't run in Geronimo and report the exception...
> Caused by:
> org.apache.axis2.AxisFault: org.apache.commons.fileupload.FileUploadException
>         at org.apache.tuscany.sca.binding.ws.axis2.TuscanyAxisConfigurator.getAx
> isConfiguration(TuscanyAxisConfigurator.java:119)
>         at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
> ionContext(ConfigurationContextFactory.java:64)
>         at org.apache.tuscany.sca.binding.ws.axis2.TuscanyAxisConfigurator.getCo
> nfigurationContext(TuscanyAxisConfigurator.java:71)
>         at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.<init>(A
> xis2ServiceProvider.java:149)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Resolved: (TUSCANY-1986) Samples which fire up Axis don't run in Geronimo

Posted by "Simon Laws (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Laws resolved TUSCANY-1986.
---------------------------------

    Resolution: Fixed

Raymond added the file to the 3 projects that require it and it works ok

> Samples which fire up Axis don't run in Geronimo
> ------------------------------------------------
>
>                 Key: TUSCANY-1986
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1986
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding Extension
>    Affects Versions: Java-SCA-1.1
>         Environment: Windows XP
> Geronimo 2.0.2 Tomcat6 jee5
>            Reporter: Simon Laws
>            Assignee: Raymond Feng
>             Fix For: Java-SCA-1.1
>
>         Attachments: geronimo-web.xml
>
>
> Samples/
>   calculator-ws-webapp 
>   helloworld-ws-sdo-webapp
>   alert-aggregator-webapp
> Don't run in Geronimo and report the exception...
> Caused by:
> org.apache.axis2.AxisFault: org.apache.commons.fileupload.FileUploadException
>         at org.apache.tuscany.sca.binding.ws.axis2.TuscanyAxisConfigurator.getAx
> isConfiguration(TuscanyAxisConfigurator.java:119)
>         at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
> ionContext(ConfigurationContextFactory.java:64)
>         at org.apache.tuscany.sca.binding.ws.axis2.TuscanyAxisConfigurator.getCo
> nfigurationContext(TuscanyAxisConfigurator.java:71)
>         at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.<init>(A
> xis2ServiceProvider.java:149)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1986) Samples which fire up Axis don't run in Geronimo

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12558716#action_12558716 ] 

Raymond Feng commented on TUSCANY-1986:
---------------------------------------

I'm able to identify the problem now. Basically there are two issues.

1) When a Tuscany webapp with binding.ws is deployed to Geronimo, the Geronimo server magially adds the axis2 plugin as a dependency to this web module.

2) By default, Geronimo uses parent-first classloading strategy. As a result, the axis2 related jars packahed in the WAR are not effective. Instead, the Geronimo axis2 plugin will take precedance. I believe there is a bug in the axis2 plugin dependency declaration which misses the apche-commons-fileupload. When the Tuscany code tries to load up the axis2 configuration, it fails with NoClassDefFoundError as FileUploadException cannot be resolved by the axis2 plugin classloader.

To fix the problem, we probably need to create a WEB-INF/geronimo-web.xml which contains a <inverse-classloading> element which tells the geronimo server to load classed from the WAR first.

I'll attach a geronimo-web.xml that I tested.

Thanks,
Raymond

> Samples which fire up Axis don't run in Geronimo
> ------------------------------------------------
>
>                 Key: TUSCANY-1986
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1986
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding Extension
>    Affects Versions: Java-SCA-1.1
>         Environment: Windows XP
> Geronimo 2.0.2 Tomcat6 jee5
>            Reporter: Simon Laws
>            Assignee: Raymond Feng
>             Fix For: Java-SCA-1.1
>
>
> Samples/
>   calculator-ws-webapp 
>   helloworld-ws-sdo-webapp
>   alert-aggregator-webapp
> Don't run in Geronimo and report the exception...
> Caused by:
> org.apache.axis2.AxisFault: org.apache.commons.fileupload.FileUploadException
>         at org.apache.tuscany.sca.binding.ws.axis2.TuscanyAxisConfigurator.getAx
> isConfiguration(TuscanyAxisConfigurator.java:119)
>         at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
> ionContext(ConfigurationContextFactory.java:64)
>         at org.apache.tuscany.sca.binding.ws.axis2.TuscanyAxisConfigurator.getCo
> nfigurationContext(TuscanyAxisConfigurator.java:71)
>         at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.<init>(A
> xis2ServiceProvider.java:149)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org