users@glassfish.java.net

Re: glassfish-3.1.1

From: Kaushal Shriyan <kaushalshriyan_at_gmail.com>
Date: Fri, 14 Oct 2011 05:02:12 +0530

On Fri, Oct 14, 2011 at 3:28 AM, Vince Kraemer <vince.kraemer_at_oracle.com> wrote:
> Do you have a sample of the initd scripts that you are using to start the
> two domains?
>
> What are the differences between
> glassfish1/domains/mydomain/config/domain.xml and
> glassfish2/domains/mydomain/config/domain.xml.
>
> Are all of the various ports different??? There are about 8 ports that need
> to be different (last I checked).
>
> What do the server.log files say about the issue that you are running into?
>
> vbk
>

Hi Vince,

There is a typo to my earlier email instead of glassfish1 and
glassfish2 instances it is glassfish0 and glassfish1

Please find below the following details

http://pastie.org/2691884 /etc/init.d/glassfish0
http://pastie.org/2691887 /etc/init.d/glassfish1
http://pastie.org/2691891 domain.xml.glassfish0
http://pastie.org/2691892 domain.xml.glassfish1

when i start glassfish1 installation , i get

###############################################################################################################
[#|2011-10-14T05:00:04.749+0530|SEVERE|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=10;_ThreadName=main;|Fri
Oct 14 05:00:04 IST 2011:com.webaroo.smsnew.api.HttpTransferObject:
{causeID:0}{commID:0}{threadID:1}{projectName:Throttler}Reading
HttpTransferObject from {host0034_at_Throttler@0_at_0}{ip:self}|#]

[#|2011-10-14T05:00:04.758+0530|SEVERE|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=10;_ThreadName=main;|Fri
Oct 14 05:00:04 IST 2011:com.webaroo.smsnew.api.HttpTransferObject:
{causeID:0}{commID:0}{threadID:1}{projectName:Throttler}Reading
HttpTransferObject from {host0034_at_Throttler@0_at_0}{ip:self}|#]

[#|2011-10-14T05:00:04.760+0530|SEVERE|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=10;_ThreadName=main;|Fri
Oct 14 05:00:04 IST 2011:com.webaroo.smsnew.api.HttpTransferObject:
{causeID:0}{commID:0}{threadID:1}{projectName:Throttler}Reading
HttpTransferObject from {host0034_at_Throttler@0_at_0}{ip:self}|#]

[#|2011-10-14T05:00:04.761+0530|SEVERE|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=10;_ThreadName=main;|Fri
Oct 14 05:00:04 IST
2011:com.webaroo.sms.throttler.manager.ThrottleDataManager:
java.io.EOFException
        at java.io.DataInputStream.readInt(DataInputStream.java:375)
        at com.webaroo.sms.throttler.manager.ThrottleDataManager.readPersistentThrottleData(ThrottleDataManager.java:238)
        at com.webaroo.sms.throttler.Throttler.readPersistentThrottleData(Throttler.java:114)
        at com.webaroo.sms.throttler.Throttler.getInstance(Throttler.java:101)
        at com.webaroo.sms.throttler.ThrottlerService.init(ThrottlerService.java:70)
        at com.webaroo.sms.throttler.servlets.ThrottlerServlet.initOverride(ThrottlerServlet.java:79)
        at com.webaroo.smsnew.common.ControllableHttpServlet.init(ControllableHttpServlet.java:44)
        at javax.servlet.GenericServlet.init(GenericServlet.java:244)
        at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1444)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1241)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5093)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5380)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:498)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2000)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1651)
        at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
        at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
        at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
        at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:294)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:462)
        at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:375)
        at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:219)
        at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
        at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
        at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
        at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
        at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
        at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:253)
        at com.sun.enterprise.v3.server.AppServerStartup.doStart(AppServerStartup.java:145)
        at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:136)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator.start(GlassFishDecorator.java:63)
        at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishImpl.start(OSGiGlassFishImpl.java:69)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:117)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
        at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)
|#]

[#|2011-10-14T05:00:04.762+0530|SEVERE|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=10;_ThreadName=main;|Fri
Oct 14 05:00:04 IST
2011:com.webaroo.sms.throttler.manager.ThrottleDataManager: Reloaded
throttle data (/tmp/ThrottleData-UserThrottleData.bin) - num
objects:5|#]

[#|2011-10-14T05:00:04.773+0530|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=main;|WEB0671:
Loading application [Throttler] at [/Throttler]|#]

[#|2011-10-14T05:00:04.814+0530|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=10;_ThreadName=main;|CORE10010:
Loading application Throttler done in 3,581 ms|#]

[#|2011-10-14T05:00:04.819+0530|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=10;_ThreadName=main;|GlassFish
Server Open Source Edition 3.1.1 (12) startup time : Felix (4,596ms),
startup services(36,705ms), total(41,301ms)|#]

[#|2011-10-14T05:00:04.820+0530|SEVERE|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=10;_ThreadName=main;|Shutting
down v3 due to startup exception : No free port within range:
7676=com.sun.enterprise.v3.services.impl.ServiceInitializerHandler_at_24820846|#]

[#|2011-10-14T05:00:04.845+0530|INFO|glassfish3.1.1|javax.enterprise.system.tools.admin.com.sun.enterprise.v3.admin|_ThreadID=56;_ThreadName=Thread-49;|Server
shutdown initiated|#]

[#|2011-10-14T05:00:04.915+0530|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=56;_ThreadName=Thread-49;|Already
stopped, so just returning|#]


Command start-domain failed.
root@:~# /etc/init.d/glassfish1 start
###############################################################################################################


Regards,

Kaushal