Skip to main content

Deployment Problems

4 replies [Last post]
chester122
Offline
Joined: 2008-08-01

Hi All!
I'm having trouble deploying applications to my application server.

The applications fail to deploy with the error message : "Trying to create reference for application in target server failed; Bad File parameter in AppDD ctor: /opt/sun/glassfish/domains/domain1/applications/j2ee-apps/__JWSappclients Bad File parameter in AppDD ctor: /opt/sun/glassfish/domains/domain1/applications/j2ee-apps/__JWSappclients"

I have deduced that the MEjbApp, __JWSappclients and __ejb_container_timer_app are not present in the domain's applications directory, as they are my other systems.

Is it acceptable to copy them over from another system? Any ideas why these are not added during the installation stage?

Cheers,
Adam

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
hzhang_jn
Offline
Joined: 2005-07-22

Just to clarify: the applications folder for these applications are not part of the installation. They are generated when these applications are deployed (the first server start up after installation). Your log showed that subsequent loading of these applications in later server start ups failed, that is due to the applications folder not present. We need to figure out why these application folders were not created the first time. Seems the applications may fail to deploy for some reason when the server first starts up after installation.

Can you re-install the server and start the server and look at the log? That log should tell you whether the applications were deployed successfully or not, and if not, the exception associated with it.

chester122
Offline
Joined: 2008-08-01

I have found the problem!
I have a custom install script that inserts a custom domain.xml in the domain before it is started for the first time. Starting and stopping the domain then inserting the files allows the applications to be deployed, before the custom configuration is installed.
Many thanks,
Adam

hzhang_jn
Offline
Joined: 2005-07-22

These applications "MEjbApp, __JWSappclients, __ejb_container_timer_app" are system applications. They are deployed when the domain/server starts up the first time after a fresh installation, and loaded on subsequent server start ups.

Look at the server.log after you start up server the first time, and see if there are any exceptions in the log.

I am not sure what you meant they are on your other system, what's your set up? Did you try to install the server on serveral systems?

chester122
Offline
Joined: 2008-08-01

Thanks for the reply!
The applications are not present in the domain's application folder. The errors in the log are:

[#|2008-08-01T21:57:28.484+0100|SEVERE|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=15;_ThreadName=pool-1-thread-3;_RequestID=6482507a-fc24-4aaa-b795-1cd359512a71;|loader.error_while_loading_app_desc
java.io.FileNotFoundException: /opt/sun/glassfish/domains/domain1/applications/j2ee-apps/__JWSappclients
at com.sun.enterprise.deployment.deploy.shared.FileArchive.open(FileArchive.java:79)
at com.sun.enterprise.instance.AppsManager.getAppDescriptor(AppsManager.java:355)
at com.sun.enterprise.server.ApplicationLoader.(ApplicationLoader.java:112)
at com.sun.enterprise.server.TomcatApplicationLoader.(TomcatApplicationLoader.java:88)
at com.sun.enterprise.server.pluggable.TomcatApplicationLoaderFactory.createApplicationLoader(TomcatApplicationLoaderFactory.java:63)
at com.sun.enterprise.server.ApplicationManager.getLoader(ApplicationManager.java:166)
at com.sun.enterprise.server.AbstractManager.loadOneSystemApp(AbstractManager.java:381)
at com.sun.enterprise.server.AbstractManager$SystemAppStarter.doRun(AbstractManager.java:642)
at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:296)
at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:330)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
|#]

[#|2008-08-01T21:57:28.484+0100|SEVERE|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=12;_ThreadName=pool-1-thread-6;_RequestID=4aad33fb-2627-4d63-a7ed-bdc17dfe8b66;|loader.error_while_loading_app_desc
java.io.FileNotFoundException: /opt/sun/glassfish/domains/domain1/applications/j2ee-apps/MEjbApp
at com.sun.enterprise.deployment.deploy.shared.FileArchive.open(FileArchive.java:79)
at com.sun.enterprise.instance.AppsManager.getAppDescriptor(AppsManager.java:355)
at com.sun.enterprise.server.ApplicationLoader.(ApplicationLoader.java:112)
at com.sun.enterprise.server.TomcatApplicationLoader.(TomcatApplicationLoader.java:88)
at com.sun.enterprise.server.pluggable.TomcatApplicationLoaderFactory.createApplicationLoader(TomcatApplicationLoaderFactory.java:63)
at com.sun.enterprise.server.ApplicationManager.getLoader(ApplicationManager.java:166)
at com.sun.enterprise.server.AbstractManager.loadOneSystemApp(AbstractManager.java:381)
at com.sun.enterprise.server.AbstractManager$SystemAppStarter.doRun(AbstractManager.java:642)
at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:296)
at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:330)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
|#]

[#|2008-08-01T21:57:28.484+0100|SEVERE|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=13;_ThreadName=pool-1-thread-4;_RequestID=422e34f8-aa31-46dd-9f55-9c299e5caafe;|loader.error_while_loading_app_desc
java.io.FileNotFoundException: /opt/sun/glassfish/domains/domain1/applications/j2ee-apps/__ejb_container_timer_app
at com.sun.enterprise.deployment.deploy.shared.FileArchive.open(FileArchive.java:79)
at com.sun.enterprise.instance.AppsManager.getAppDescriptor(AppsManager.java:355)
at com.sun.enterprise.server.ApplicationLoader.(ApplicationLoader.java:112)
at com.sun.enterprise.server.TomcatApplicationLoader.(TomcatApplicationLoader.java:88)
at com.sun.enterprise.server.pluggable.TomcatApplicationLoaderFactory.createApplicationLoader(TomcatApplicationLoaderFactory.java:63)
at com.sun.enterprise.server.ApplicationManager.getLoader(ApplicationManager.java:166)
at com.sun.enterprise.server.AbstractManager.loadOneSystemApp(AbstractManager.java:381)
at com.sun.enterprise.server.AbstractManager$SystemAppStarter.doRun(AbstractManager.java:642)
at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:296)
at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:330)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
|#]

These files are present on my laptop machine, however are missing on this install.

Any ideas?