eclipse-ee4j / glassfish

Eclipse GlassFish
https://eclipse-ee4j.github.io/glassfish/
385 stars 144 forks source link

(Regression) ServletContainerInitializer sample page error #11029

Closed glassfishrobot closed 14 years ago

glassfishrobot commented 14 years ago

This test scenario worked in prior builds

B72 - To reproduce the problem, start the server, and do the following:

$ cd /samples/javaee6/web/servlet/servletcontainerinitializer-war $ ant compile $ ant package $ ant run

The following error is seen at http://localhost:8080//servletcontainerinitializer-war/SampleServlet

Error : ServletContainerInitializer never invoked

Everything works as before, if you run the following scenario $ cd /samples/javaee6/web/servlet/servletcontainerinitializer-war $ ant all

Environment

Operating System: Mac OS X Platform: Macintosh

Affected Versions

[V3]

glassfishrobot commented 6 years ago
glassfishrobot commented 14 years ago

@glassfishrobot Commented judytangs said: Raise to P2 based on SDK pteam decision, bug blocking sample to pass is P2

glassfishrobot commented 14 years ago

@glassfishrobot Commented msreddy said: requesting Rajiv's help

glassfishrobot commented 14 years ago

@glassfishrobot Commented jluehe said: "ant all" creates TestSharedLib1.jar, which contains the ServletContainerInitializer that is to be invoked, copies it to $

{javaee.home}

/lib, and restarts the domain. This step is missing when executing

ant compile ant package ant run

causing the sample to fail.

The "run" target should probably be modified to take care of creating and copying TestSharedLib1.jar.

glassfishrobot commented 14 years ago

@glassfishrobot Commented msreddy said: Requesting Hans' help.

glassfishrobot commented 14 years ago

@glassfishrobot Commented hans_hrasna said: started...

glassfishrobot commented 14 years ago

@glassfishrobot Commented hans_hrasna said: fixed the build script so the sequence "ant compile package run" works as requested:

diff -r1.4 build.xml 13c13,17 <

25d28 < 27c30 < — 70a74,77
glassfishrobot commented 14 years ago

@glassfishrobot Commented ap2257 said: Verified the fix in build 73.

glassfishrobot commented 14 years ago

@glassfishrobot Commented Was assigned to hans_hrasna

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-11029

glassfishrobot commented 14 years ago

@glassfishrobot Commented Reported by ap2257

glassfishrobot commented 14 years ago

@glassfishrobot Commented Marked as fixed on Sunday, November 22nd 2009, 1:50:24 pm