Cant undeploy faultly app without AppServer but cnat start AppServer
I missed a step in setting up Petstore. This has resulted in me deploying a faulty application. It seems that I cannot undeploy the application without starting the Application Server 9. But I cannot start AS 9 without doing something about the faulty application.
I guess I need to manually remove Petstore. I am looking for help in doing this.
[358 byte] By [
bob-upa] at [2007-11-27 11:28:07]

# 1
What specific error are you seeing at startup? Typically, an application that doesn't start will not affect
the server initialization itself. Usually all that happens is that specific application is not enabled.
ksaksa at 2007-7-29 16:20:05 >

# 2
Thank you for your reply. The server may be running but ho thew for example do I remove the "jta-datasource by name : jdbc/PetstoreDB" refered to below. on about line 100 of the Server startup output? If I try to go to Admin Console it says that I need an instance of the server running.
Completed initializing Sun's JavaServer Faces implementation (1.2_02-b03-FCS) for context '/asadmin'
Error looking up jta-datasource by name : jdbc/PetstoreDB
javax.naming.NameNotFoundException
at com.sun.enterprise.naming.TransientContext.resolveContext(TransientContext.java:255)
at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:178)
at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:61)
at com.sun.enterprise.naming.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:98)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:309)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.sun.enterprise.connectors.ConnectorResourceAdminServiceImpl.lookup(ConnectorResourceAdminServiceImpl.java:178)
at com.sun.enterprise.connectors.ConnectorRuntime.lookupPMResource(ConnectorRuntime.java:1066)
at com.sun.enterprise.server.PersistenceUnitInfoImpl._getJtaDataSource(PersistenceUnitInfoImpl.java:256)
at com.sun.enterprise.server.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:96)
at com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceUnitLoaderImpl.java:167)
# 3
That error shouldn't crash the application server. In fact, that shows some evidence that the petstore app is deployed correctly and that the application server is running.
What makes you think that the application server isn't running or won't start?
Have you tried navigating to the AS admin page?
uvneta at 2007-7-29 16:20:05 >

# 4
On the subject of the data source, it can be deleted manually from the configuration.
Are you running this application server on windows or Linux? I can probably help you find the right file to remove that data source if you give me your platform.
Thanks.
uvneta at 2007-7-29 16:20:05 >

# 5
What Ken said is the expected behavior of application server. But, you are facing bug #1426 [1] in SJSAS 9.0 (same as GlassFish V1). Check the bug for more details. You can try SJSAS 9.1 or GlassFish V2, where this bug has been fixed.
Thanks,
Sahoo
[1] https://glassfish.dev.java.net/issues/show_bug.cgi?id=1426
sahooa at 2007-7-29 16:20:05 >
