Issue Details (XML | Word | Printable)

Key: GLASSFISH-12077
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Romain Grécourt
Reporter: arungupta
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
glassfish

MalformedObjectNameException when deploying the attached WAR with application versioning

Created: 27/May/10 07:36 PM   Updated: 21/Jun/10 09:21 AM   Resolved: 21/Jun/10 09:21 AM
Component/s: deployment
Affects Version/s: V3
Fix Version/s: 3.1

Time Tracking:
Not Specified

File Attachments: 1. File helloworld.war (0.8 kB) 27/May/10 07:37 PM - arungupta
2. Text File versioning_MS2_4.diff (26 kB) 21/Jun/10 09:21 AM - Romain Grécourt

Environment:

Operating System: All
Platform: All


Issuezilla Id: 12,077
Tags:
Participants: arungupta, Hong Zhang and Romain Grécourt


 Description  « Hide

Deploy the WAR at:

http://wiki.glassfish.java.net/attach/3.1MS1ClusteringDemo/helloworld.war

as

./bin/asadmin deploy --name=helloworld:test helloworld.war

to see the stack trace as:

[#|2010-05-27T18:31:17.331-0700|INFO|glassfish3.1|org.apache.catalina.valves.ValveBase|_ThreadID=29;_ThreadName=Grizzly-4848(5);|Can't
register valve org.apache.catalina.authenticator.BasicAuthenticator@57794ba1
javax.management.MalformedObjectNameException: Invalid character ':' in value
part of property
at javax.management.ObjectName.construct(ObjectName.java:602)
at javax.management.ObjectName.<init>(ObjectName.java:1403)
at org.apache.catalina.valves.ValveBase.createObjectName(ValveBase.java:496)
at org.apache.catalina.valves.ValveBase.registerMBean(ValveBase.java:527)
at org.apache.catalina.valves.ValveBase.start(ValveBase.java:351)
at
org.apache.catalina.authenticator.AuthenticatorBase.start(AuthenticatorBase.java:1049)
at
org.apache.catalina.core.StandardPipeline.addValve(StandardPipeline.java:470)
at org.apache.catalina.core.ContainerBase.addValve(ContainerBase.java:1373)
at
com.sun.enterprise.web.WebModuleContextConfig.authenticatorConfig(WebModuleContextConfig.java:383)
at
com.sun.enterprise.web.WebModuleContextConfig.start(WebModuleContextConfig.java:266)
at
com.sun.enterprise.web.WebModuleContextConfig.lifecycleEvent(WebModuleContextConfig.java:163)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:145)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5257)
at com.sun.enterprise.web.WebModule.start(WebModule.java:482)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:913)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:897)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:681)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1923)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1602)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:87)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:127)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:242)
at
org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:249)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:352)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:194)
at
org.glassfish.deployment.admin.EnableCommand.execute(EnableCommand.java:201)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:329)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:344)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:913)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:91)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1016)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1005)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:366)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:203)
at
com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
at
com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:113)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:803)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:706)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:987)
at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:178)
at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:526)
at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:507)
at java.lang.Thread.run(Thread.java:637)

#]

list-applications show that the application is deployed correctly.



arungupta added a comment - 27/May/10 07:37 PM

Created an attachment (id=4389)
Attaching the WAR file.


Hong Zhang added a comment - 27/May/10 07:46 PM

This war probably has more contents than the one we used in the demo which
triggered some code path in the web container that does not like ":" much.
Assign to romain for initial evaluation.


Hong Zhang added a comment - 27/May/10 07:49 PM

I am moving the priority of this to P2. This issue should be looked at first
among the other issues. If there is problem with ":" as the version separator,
we need to resolve it as soon as we can.

I am getting a similar stack trace with another web application "webapps-
simple.war".


Romain Grécourt added a comment - 21/Jun/10 09:19 AM

This is fixed with revision 37972. The DOL has been updated, contextroot are now
correctly deduced. (see lines 1->75 of the diff file)


Romain Grécourt added a comment - 21/Jun/10 09:21 AM

Created an attachment (id=4486)
diff file showing the modifications of revision 37972