Deploying an application within WebLogic
Deploying an application within WebLogic
- Subject: Deploying an application within WebLogic
- From: Pat Homelvig <email@hidden>
- Date: Wed, 10 Dec 2003 11:56:46 -0700
(Sorry if you receive this twice, we had to resend it).
We are in the process of upgrading an application for a client to WO
5.2.2, to be deployed under WebLogic 7.x (customer's requirement). We
created a test application (connecting to, fetching from & updating a
table in the database) to verify that it will work.
The application runs correctly at out location under JBoss (with no
exceptions), however it is receiving a couple of exceptions when the
client tested it under WebLogic (we don't have WebLogic installed here).
The exceptions are as follows:
[javax.naming.NameNotFoundException: Could not locate resource-ref
jdbc/DefaultDataSource in application environment and no
resource-description given to map res-ref-name to global environment.]
}
at
weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer
.java:1093)
at
weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer
.java:1022)
at
weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForAllA
pplications(SlaveDeployer.java:617)
at
weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java
:376)
at
weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(D
eploymentManagerServerLifeCycleImpl.java:235)
at
weblogic.t3.srvr.ServerLifeCycleList.resume(ServerLifeCycleList.java:65)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:832)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:300)
at weblogic.Server.main(Server.java:32)
>
(The error could be caused by the deployment descriptor being specific
to jboss "jboss-web.xml". The client created and installed a
descriptor file specific to WebLogic, however the state they are still
receiving the exception).
The second exception was a little more troubling:
<Dec 9, 2003 4:41:52 PM MST> <Error> <HTTP> <101216> <Servlet:
"WOServletAdaptor" failed to preload on startup in webapp: "WOTest"
javax.servlet.ServletException
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.
java:912)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImp
l.java:833)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl
.java:773)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServ
letContext.java:2782)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppSer
vletContext.java:2727)
at
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppSe
rvletContext.java:2700)
at
weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:56
3)
at
weblogic.servlet.internal.WebService.preloadResources(WebService.java:47
6)
at weblogic.t3.srvr.ServletInitRunner$1.run(ServletInitRunner.java:50)
at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceMa
nager.java:780)
at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:46)
at java.lang.Thread.run(Thread.java:479)
The application was built on Mac OS X 10.3 (Panther), using Wo 5.2.2 (a
clean install, so there should be no install problems), and was built
to be deployed in a servlet container, and "Deploy as a standalone WAR
(frameworks must be build as JARs)". The "Copy all JAR files into the
application's WEB-INF/lib directory" was not checked.
Any suggestions? We are not too familiar with the war structure, nor
are we familiar with WebLogic.
Included below is the application log with the exceptions, along with
the xml file that the customer created (and also our jboss-web.xml file
that we originally used).
Any help is deeply appreciated.
[demime 0.98b removed an attachment of type application/octet-stream which had a name of bom5.log]
[demime 0.98b removed an attachment of type application/octet-stream which had a name of weblogic.xml]
[demime 0.98b removed an attachment of type application/octet-stream which had a name of jboss-web.xml]
Pat Homelvig
White Wolf Software, Inc.
303-906-6104
mailto:email@hidden
http://www.whitewolf.com
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.