Comments (9)
- Issue Imported From: https://github.com/javaee/glassfish/issues/22
- Original Issue Raised By:@glassfishrobot
- Original Issue Assigned To: @yaminikb
- Original Issue Closed By:@glassfishrobot
from glassfish.
@glassfishrobot Commented
jluehe said:
Hi Dan,
I am able to reproduce this issue.
Here's an initial analysis:
Web modules are started, and their load-on-startup servlets
initialized, as part of WebContainer.start().
WebContainer.start() and notification of LifecycleListener instances
occur on different threads:
- LifecycleListener notification occurs on the main thread, as part of
PEMain.run(), in this sequence:
_server.onInitialization(context);
_server.onStartup();
_server.onReady();
At the end of this sequence, the main thread notifies all threads that
have been waiting on PEMain's monitor ("this.notifyAll()").
- WebContainer.start() occurs on
com.sun.enterprise.server.ss.ASSocketService$EntryPointThread:
at com.sun.enterprise.web.WebContainer.start(WebContainer.java:711)
at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:649)
at
com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:70)
at
com.sun.enterprise.server.ondemand.ServiceGroup.startLifecycleServices(ServiceGroup.java:160)
at
com.sun.enterprise.server.ondemand.WebServiceGroup.startLifecycleServices(WebServiceGroup.java:197)
at
com.sun.enterprise.server.ondemand.WebServiceGroup.start(WebServiceGroup.java:56)
at
com.sun.enterprise.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:111)
at
com.sun.enterprise.server.ondemand.MainServiceGroup.start(MainServiceGroup.java:43)
at
com.sun.enterprise.server.ondemand.ServerEntryListenerImpl.notifyEntry(ServerEntryListenerImpl.java:61)
at
com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.sendEvent(ServerEntryHelper.java:60)
at
com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.generatePortEntryContext(ServerEntryHelper.java:41)
at
com.sun.enterprise.server.ss.ASSocketService.generateEntryContext(ASSocketService.java:222)
at
com.sun.enterprise.server.ss.ASSocketService$EntryPointThread.run(ASSocketService.java:420)
| #] |
This thread should not proceed with starting the WebContainer until
the main thread has fired the START_EVENT.
I'll check with Binod if he knows why this is not happening.
from glassfish.
@glassfishrobot Commented
binod said:
If a servlet (that require a webcontainer) is deployed in the appserver then the
webcontainer startup doesnt wait until the server startup is complete. It
happens during the app loading itself.
I think you are hitting the If a servlet (that require a webcontainer) is deployed in the appserver then the
webcontainer startup doesnt wait until the server startup is complete. It
happens during the app loading itself.
I think you are hitting the bug 6311875..
from glassfish.
@glassfishrobot Commented
qouyang said:
Transfer to Binod for better tracking as he is working on a similar issue.
from glassfish.
@glassfishrobot Commented
binod said:
Checked in a fix for Checked in a fix for bug 6311875.
LifeCycleModuleService now is placed before the ApplicationLifeCycle
and PEWebContainerLifeCycle. User can set JVM option
com.sun.enterprise.server.DelayLifecycleInit to true to get the old
load order. Marking this bug as fixed..
LifeCycleModuleService now is placed before the ApplicationLifeCycle
and PEWebContainerLifeCycle. User can set JVM option
com.sun.enterprise.server.DelayLifecycleInit to true to get the old
load order. Marking this bug as fixed.
from glassfish.
@glassfishrobot Commented
Was assigned to binod
from glassfish.
@glassfishrobot Commented
This issue was imported from java.net JIRA GLASSFISH-22
from glassfish.
@glassfishrobot Commented
Reported by danbrice
from glassfish.
@glassfishrobot Commented
Marked as fixed on Tuesday, March 7th 2006, 10:37:06 pm
from glassfish.
Related Issues (20)
- Embedded glassfish JAR doesn't contain JARS/RARS to support JMS HOT 1
- NPE on PoolManagerImpl.resourceClosed(PoolManagerImpl.java:367)
- Clean code: add checkstyle rule to prevent unused imports HOT 2
- Improve Thread safeness of LocalTxConnectionEventListener
- Provide official arquillian adapter? HOT 1
- Glassfish Arquillian tests very very slow HOT 8
- Glassfish 8.0.0-M* use Expressly 6.0.0-M1 not available in Maven Central HOT 2
- Clean code: Fix "Unlikely argument type for equals()" and remove some unused variables HOT 1
- On Jersey 4.0.0 changes HOT 3
- Update documentation to match GlassFish 7
- Release and integrate updated dependencies HOT 8
- Document and refactor some connectors-runtime module code
- Enhancement: Allow to specify protocol for URLs the server sends to the client
- JSON-B date serialization and deserialization problem HOT 5
- Glassfish 7 Java 21 builds fail in ConnectionPoolTest HOT 1
- glassfish 6.2.5 edit JDBC realm HOT 1
- `start-domain --debug=true` does not display port number
- Couldn't load error report valve if GlassFish started with a virtual server in state=off
- Detected deadlock in logging - rolling the file
- Admin Session Timeout doesn't work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glassfish.