You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org> on 2008/01/09 08:39:33 UTC

[jira] Created: (TUSCANY-1954) Samples randomly use JettyServer or TomcatServer

Samples randomly use JettyServer or TomcatServer
------------------------------------------------

                 Key: TUSCANY-1954
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1954
             Project: Tuscany
          Issue Type: Bug
          Components: Build System
    Affects Versions: Java-SCA-1.1
            Reporter: Jean-Sebastien Delfino
            Priority: Critical
             Fix For: Java-SCA-1.1


Samples (for example feed-aggregator) randomly run with the embedded JettyServer or the TomcatServer.

To reproduce the issue, do ant run in feed-aggregator several times, some executions will use Jetty, others will use Tomcat.

This is probably an issue with how the release distro is built, incorrectly placing both tuscany-host-tomcat and tuscany-host-jetty on the classpath of sca-manifest.jar and/or sca-tuscany-all.jar.


-- 
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-1954) Samples randomly use JettyServer or TomcatServer

Posted by "Simon Laws (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12557186#action_12557186 ] 

Simon Laws commented on TUSCANY-1954:
-------------------------------------


I've seen this issue for all of the releases we've done to date. It hasn't been impacting the correct running of the samples as far as I can tell and is a product of the slightly strange situation of

1 - shipping both host-tomcat and host-jetty in the manifest/all jar
2 - providing no way of choosing which to use

Each host is registered by its activator, e.g, JettyRuntimeModuleActivator;

servletHosts.addServletHost (server);

The servlet host is chosen in, for example, the ws-axis binding, when the provider factory (Axis2BindingProviderFactory) is created.

this.servletHost = servletHosts.getServletHosts().get(0);

The order in which the Activators are processed, and hence which one as returned by get(0), can vary from run to run not least because the service providers are manipulated via a HashSet as they are read from the classpath.

I suggest we choose one or the other for the all/manifest jar. 

> Samples randomly use JettyServer or TomcatServer
> ------------------------------------------------
>
>                 Key: TUSCANY-1954
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1954
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Build System
>    Affects Versions: Java-SCA-1.1
>            Reporter: Jean-Sebastien Delfino
>            Priority: Critical
>             Fix For: Java-SCA-1.1
>
>
> Samples (for example feed-aggregator) randomly run with the embedded JettyServer or the TomcatServer.
> To reproduce the issue, do ant run in feed-aggregator several times, some executions will use Jetty, others will use Tomcat.
> This is probably an issue with how the release distro is built, incorrectly placing both tuscany-host-tomcat and tuscany-host-jetty on the classpath of sca-manifest.jar and/or sca-tuscany-all.jar.

-- 
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] Closed: (TUSCANY-1954) Samples randomly use JettyServer or TomcatServer

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

Simon Laws closed TUSCANY-1954.
-------------------------------

    Resolution: Fixed

The all jar now only includes host-jetty. 

> Samples randomly use JettyServer or TomcatServer
> ------------------------------------------------
>
>                 Key: TUSCANY-1954
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1954
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Build System
>    Affects Versions: Java-SCA-1.1
>            Reporter: Jean-Sebastien Delfino
>            Priority: Critical
>             Fix For: Java-SCA-1.1
>
>
> Samples (for example feed-aggregator) randomly run with the embedded JettyServer or the TomcatServer.
> To reproduce the issue, do ant run in feed-aggregator several times, some executions will use Jetty, others will use Tomcat.
> This is probably an issue with how the release distro is built, incorrectly placing both tuscany-host-tomcat and tuscany-host-jetty on the classpath of sca-manifest.jar and/or sca-tuscany-all.jar.

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