Re: [jetty-user] Jetty 7.x gives service unavailable

Jean-Claude Dauphin <[email protected]>
Newsgroups gmane.comp.java.jetty.support
Message-ID <[email protected]>
Jan,

Pls find below more information on the context:

1) My application uses Struts 2 and is built with NetBeans 6.9

2) Operating System:
Microsoft Windows XP [Version 5.1.2600]

3) My web application is copied in the /webapps directory

4) When starting Jetty 7.x, there is an error message which is related to my
application (Web-JISIS3)
(That doesn't occur with Jetty-6.1.19)
-------------------------------------------------------------------------------------------------
2010-09-27 13:47:28.046:WARN::FAILED struts2: The package name
'base-package' at
 location package -
jar:file:/C:/jetty-distribution-7.1.6.v20100715/webapps/Web-
JISIS3.war!/WEB-INF/classes/struts.xml:9:58 is already been used by another
pack
age at location package -
file:/C:/Documents%20and%20Settings/jc%20Dauphin/Local
%20Settings/Temp/Jetty_0_0_0_0_8080_Web.JISIS3.war__Web.JISIS3__6q5b7b/webinf/WE
B-INF/classes/struts.xml:9:58 - package -
jar:file:/C:/jetty-distribution-7.1.6.
v20100715/webapps/Web-JISIS3.war!/WEB-INF/classes/struts.xml:9:58
----------------------------------------------------------------------------------------------------

Please see below the full output generated by starting Jetty. Doing exactly
the same thing in
Jetty-6-1.19 doesn't generate any error message and the Web-JISIS3 works
very well.

Thanks Jan for yr prompt reply.

Best wishes,

Jean-Claude


C:\jetty-distribution-7.1.6.v20100715>java -jar start.jar
2010-09-27 13:47:22.905:INFO::jetty-7.1.6.v20100715
2010-09-27 13:47:22.968:INFO::Deployment monitor
C:\jetty-distribution-7.1.6.v20
100715\contexts at interval 5
2010-09-27 13:47:22.983:INFO::Deployable added:
C:\jetty-distribution-7.1.6.v201
00715\contexts\test.xml
2010-09-27 13:47:23.218:INFO::Extract
jar:file:/C:/jetty-distribution-7.1.6.v201
00715/webapps/test.war!/ to C:\Documents and Settings\jc Dauphin\Local
Settings\
Temp\Jetty_0_0_0_0_8080_test.war____.hcx133\webapp
2010-09-27
13:47:25.218:INFO:org.eclipse.jetty.servlets.TransparentProxy:Transpa
rentProxy @ /javadoc to http://download.eclipse.org/jetty/stable-7/apidocs
2010-09-27 13:47:25.218:INFO::Deployment monitor
C:\jetty-distribution-7.1.6.v20
100715\webapps at interval 5
2010-09-27 13:47:25.233:INFO::Deployable added:
C:\jetty-distribution-7.1.6.v201
00715\webapps\Web-JISIS3.war
2010-09-27 13:47:25.374:INFO::Copying WEB-INF/lib
jar:file:/C:/jetty-distributio
n-7.1.6.v20100715/webapps/Web-JISIS3.war!/WEB-INF/lib/ to C:\Documents and
Setti
ngs\jc Dauphin\Local
Settings\Temp\Jetty_0_0_0_0_8080_Web.JISIS3.war__Web.JISIS3
__6q5b7b\webinf\WEB-INF\lib
2010-09-27 13:47:25.702:INFO::Copying WEB-INF/classes from
jar:file:/C:/jetty-di
stribution-7.1.6.v20100715/webapps/Web-JISIS3.war!/WEB-INF/classes/ to
C:\Docume
nts and Settings\jc Dauphin\Local
Settings\Temp\Jetty_0_0_0_0_8080_Web.JISIS3.wa
r__Web.JISIS3__6q5b7b\webinf\WEB-INF\classes
2010-09-27 13:47:26,764 INFO
com.opensymphony.xwork2.config.providers.XmlConfig
urationProvider.register:140 - Parsing configuration file
[struts-default.xml]
2010-09-27 13:47:27,702 INFO
com.opensymphony.xwork2.config.providers.XmlConfig
urationProvider.register:140 - Parsing configuration file
[struts-plugin.xml]
2010-09-27 13:47:27,733 INFO
com.opensymphony.xwork2.config.providers.XmlConfig
urationProvider.register:140 - Parsing configuration file [struts.xml]
2010-09-27 13:47:27,733 WARN
org.apache.struts2.config.Settings.getLocale:143 -
 Settings: Could not parse struts.locale setting, substituting default VM
locale

2010-09-27 13:47:28.046:WARN::FAILED struts2: The package name
'base-package' at
 location package -
jar:file:/C:/jetty-distribution-7.1.6.v20100715/webapps/Web-
JISIS3.war!/WEB-INF/classes/struts.xml:9:58 is already been used by another
pack
age at location package -
file:/C:/Documents%20and%20Settings/jc%20Dauphin/Local
%20Settings/Temp/Jetty_0_0_0_0_8080_Web.JISIS3.war__Web.JISIS3__6q5b7b/webinf/WE
B-INF/classes/struts.xml:9:58 - package -
jar:file:/C:/jetty-distribution-7.1.6.
v20100715/webapps/Web-JISIS3.war!/WEB-INF/classes/struts.xml:9:58
2010-09-27 13:47:28.046:WARN::Failed startup of context WebAppContext@d9896e
@d98
96e/Web-JISIS3,[file:/C:/Documents%20and%20Settings/jc%20Dauphin/Local%20Setting
s/Temp/Jetty_0_0_0_0_8080_Web.JISIS3.war__Web.JISIS3__6q5b7b/webinf/,
jar:file:/
C:/jetty-distribution-7.1.6.v20100715/webapps/Web-JISIS3.war!/],C:\jetty-distrib
ution-7.1.6.v20100715\webapps\Web-JISIS3.war
The package name 'base-package' at location package -
jar:file:/C:/jetty-distrib
ution-7.1.6.v20100715/webapps/Web-JISIS3.war!/WEB-INF/classes/struts.xml:9:58
is
 already been used by another package at location package -
file:/C:/Documents%2
0and%20Settings/jc%20Dauphin/Local%20Settings/Temp/Jetty_0_0_0_0_8080_Web.JISIS3
.war__Web.JISIS3__6q5b7b/webinf/WEB-INF/classes/struts.xml:9:58 - package -
jar:
file:/C:/jetty-distribution-7.1.6.v20100715/webapps/Web-JISIS3.war!/WEB-INF/clas
ses/struts.xml:9:58
        at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.addPackageCo
nfig(DefaultConfiguration.java:95)
        at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.add
Package(XmlConfigurationProvider.java:435)
        at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loa
dPackages(XmlConfigurationProvider.java:239)
        at
org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages
(StrutsXmlConfigurationProvider.java:111)
        at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(Defau
ltConfiguration.java:152)
        at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
ConfigurationManager.java:52)
        at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Di
spatcher.java:395)
        at
org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
        at
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.
java:201)
        at
org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:74)
        at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:55)
        at
org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.ja
va:668)
        at
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletC
ontextHandler.java:204)
        at
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.jav
a:994)
        at
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandle
r.java:588)
        at
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:380
)
        at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:55)
        at
org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(Stan
dardStarter.java:36)
        at
org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:1
80)
        at
org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentM
anager.java:497)
        at
org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.j
ava:135)
        at
org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(Sc
anningAppProvider.java:61)
        at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:436)
        at
org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:349)
        at org.eclipse.jetty.util.Scanner.scan(Scanner.java:306)
        at org.eclipse.jetty.util.Scanner.start(Scanner.java:242)
        at
org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(Scanni
ngAppProvider.java:136)
        at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:55)
        at
org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(Deploymen
tManager.java:562)
        at
org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.
java:212)
        at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:55)
        at org.eclipse.jetty.server.Server.doStart(Server.java:225)
        at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:55)
        at
org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:10
18)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:983
)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jetty.start.Main.invokeMain(Main.java:490)
        at org.eclipse.jetty.start.Main.start(Main.java:631)
        at org.eclipse.jetty.start.Main.parseCommandLine(Main.java:280)
        at org.eclipse.jetty.start.Main.main(Main.java:82)
2010-09-27 13:47:28.108:INFO::Started [email protected]:8080


On Mon, Sep 27, 2010 at 7:39 AM, Jan Bartel <[email protected]> wrote:

> Jean-Claude,
>
> You're going to have to post a bit more information, such as
> + how you're deploying your webapp
> + if you have converted any deployment files to jetty-7
> + the structure of your webapp
> + any exceptions in jetty log
>
> Jan
>
>
>
> On 27/09/10 06:17, Jean-Claude Dauphin wrote:
>
>> My application works fine with jetty-6.1.19
>>
>> But with jetty-distribution-7.1.6.v20100715 I always get the following
>> message:
>>
>>
>>    HTTP ERROR: 503
>>
>> Problem accessing /Web-JISIS3/. Reason:
>>
>>     Service Unavailable
>>
>> I would appreciate for any help
>>
>> Best wishes,
>>
>> JC Dauphin
>>
>>
>>
>> --
>> Jean-Claude Dauphin
>>
>> [email protected] <mailto:[email protected]>
>> [email protected] <mailto:[email protected]>
>>
>>
>> http://kenai.com/projects/j-isis/
>> http://www.unesco.org/isis/
>> http://www.unesco.org/idams/
>> http://www.greenstone.org
>>
>
>
> --
> Jan Bartel, Webtide LLC | [email protected] | http://www.webtide.com
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>   http://xircles.codehaus.org/manage_email
>
>
>


-- 
Jean-Claude Dauphin

[email protected]
[email protected]

http://kenai.com/projects/j-isis/
http://www.unesco.org/isis/
http://www.unesco.org/idams/
http://www.greenstone.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.