jQuery in Action, 2nd edition*
The moose likes Other Java Products and Servers and the fly likes Strange Glassfish 3 Exception on failed deployment ( Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Strange Glassfish 3 Exception on failed deployment ("SAME URL PATTERN" EXCEPTION)" Watch "Strange Glassfish 3 Exception on failed deployment ("SAME URL PATTERN" EXCEPTION)" New topic
Author

Strange Glassfish 3 Exception on failed deployment ("SAME URL PATTERN" EXCEPTION)

Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1043
Below is a strange exception I got when trying to deploy a simple web service application from MyEclipse 8.5 which deploys fine to Tomcat.

Has anyone seen this exception and knows how I can fix it?

I am using GF3 and have the latest downloaded updates.

Thanks.

- Mike


[#|2010-03-30T08:11:40.061-0400|SEVERE|glassfishv3.0|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=24;_ThreadName=Thread-1;|Exception while deploying the app
java.lang.IllegalStateException: Servlet [HelloServletDelegate] and Servlet [HelloServlet] have the same url pattern: [/HelloServletService]at org.glassfish.apf.AnnotationInfo@de8aa5
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:478)
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:420)
at com.sun.enterprise.deployment.archivist.Archivist.readRestDeploymentDescriptors(Archivist.java:396)
at com.sun.enterprise.deployment.archivist.Archivist.openWith(Archivist.java:259)
at com.sun.enterprise.deployment.archivist.ApplicationFactory.openWith(ApplicationFactory.java:222)
at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:145)
at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:78)
at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:612)
at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:554)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:262)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:310)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
at org.glassfish.deployment.autodeploy.AutoOperation.run(AutoOperation.java:141)
at org.glassfish.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:573)
at org.glassfish.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:459)
at org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:391)
at org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:376)
at org.glassfish.deployment.autodeploy.AutoDeployService$1.run(AutoDeployService.java:195)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: Servlet [HelloServletDelegate] and Servlet [HelloServlet] have the same url pattern: [/HelloServletService]at org.glassfish.apf.AnnotationInfo@de8aa5
at org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:360)
at org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:368)
at org.glassfish.apf.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:282)
at org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:188)
at org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:129)
at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:581)
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:433)
... 24 more
Caused by: java.lang.IllegalArgumentException: Servlet [HelloServletDelegate] and Servlet [HelloServlet] have the same url pattern: [/HelloServletService]
at com.sun.enterprise.deployment.WebBundleDescriptor.addWebComponentDescriptor(WebBundleDescriptor.java:360)
at org.glassfish.webservices.annotation.handlers.WebServiceHandler.processAnnotation(WebServiceHandler.java:412)
at org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:337)
... 30 more
|#]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Strange Glassfish 3 Exception on failed deployment ("SAME URL PATTERN" EXCEPTION)
 
Similar Threads
Error with web.xml
Glassfish deployment issues
<mvc:default-servlet-handler/> is invalid
Problem loading EJB MEssage Driven Beans [u]MDB00017[/u] and GlassFish server console problem
Deploying to Glassfish