Sun Web Server 7 Log Note (PWC3013)

I am having problems setting up connection pools in SWS 7.x. Does this error log message affect my connection pool efforts?

PWC3013: Missing application web.xml, using defaults only StandardEngine[com.sun.web-4].StandardHost[myserver.com].StandardContext[]

What does this mean?

dailysun

[311 byte] By [dailysun] at [2007-11-26 9:56:24]
# 1
The message does not relate to "connection pools". Can you post more of the log file (especially the lines surrounding this message)? If you are deploying your own webapp, please make sure it has a WEB-INF/web.xml file.
dev01@ws at 2007-7-7 1:18:47 > top of Java-index,Web & Directory Servers,Web Servers...
# 2

I'm seeing the same thing.

log file (set to finer)

[13/Apr/2007:15:49:44] info ( 5472): CORE3276: Installing a new configuration

[13/Apr/2007:15:49:44] fine ( 5472): Web container log level: FINER

[13/Apr/2007:15:49:44] fine ( 5472): Maximum depth for nested request dispatches is set to 20

[13/Apr/2007:15:49:44] fine ( 5472): Encode cookie is set to true

[13/Apr/2007:15:49:44] fine ( 5472): secure-session-cookie=dynamic

[13/Apr/2007:15:49:44] fine ( 5472): Servlet container single threaded servlet pool size is set to 5

[13/Apr/2007:15:49:44] fine ( 5472): Servlet container cross context allowed is true

[13/Apr/2007:15:49:44] fine ( 5472): Servlet container reuse session id is false

[13/Apr/2007:15:49:44] fine ( 5472): Creating engine

[13/Apr/2007:15:49:44] fine ( 5472): Adding engine (org.apache.catalina.core.StandardEngine/1.0)

[13/Apr/2007:15:49:44] fine ( 5472): Initializing configured realms.

[13/Apr/2007:15:49:44] fine ( 5472): NativeRealm: auth-db= null (will use default)

[13/Apr/2007:15:49:44] fine ( 5472): NativeRealm : jaas-context=nativeRealm

[13/Apr/2007:15:49:44] fine ( 5472): Configured realm: internal-native-realm

[13/Apr/2007:15:49:44] info ( 5472): SEC1112: Default realm is set to: internal-native-realm

[13/Apr/2007:15:49:44] fine ( 5472): Configured realm: internal-cert-realm

[13/Apr/2007:15:49:44] finer ( 5472): Search App is not enbled

[13/Apr/2007:15:49:44] info ( 5472): WEB0100: Loading web module in virtual server [MACHINE.sub.domain.net] at [/SunTest]

[13/Apr/2007:15:49:44] fine ( 5472): WebModule[/SunTest]: Setting delegate to false

[13/Apr/2007:15:49:44] fine ( 5472): WebModule[/SunTest]: SessionCookieConfig[name=JSESSIONID, maxAge=-1]

[13/Apr/2007:15:49:44] fine ( 5472): WEB0100: Loading web module in virtual server [MACHINE.sub.domain.net] at [/]

[13/Apr/2007:15:49:44] fine ( 5472): WebModule[]: Setting delegate to false

[13/Apr/2007:15:49:44] fine ( 5472): WebModule[]: SessionCookieConfig[name=JSESSIONID, maxAge=-1]

[13/Apr/2007:15:49:44] fine ( 5472): Successfully initialized web application environment for virtual server [MACHINE.sub.domain.net]

[13/Apr/2007:15:49:44] finer ( 5472): REPL0006: Cluster Level Replication disabled

[13/Apr/2007:15:49:44] fine ( 5472): Starting Servlet container component of Sun Java System Web Server/7.0

[13/Apr/2007:15:49:44] fine ( 5472): Setting naming prefix=org.apache.naming:org.apache.naming:org.apache.naming:org.apache.naming: org.apache.naming:org.apache.naming:org.apache.naming:org.apache.naming:org.apac he.naming:org.apache.naming:org.apache.naming:org.apache.naming:org.apache.namin g:org.apache.naming:org.apache.naming

[13/Apr/2007:15:49:44] fine ( 5472): INITIAL_CONTEXT_FACTORY alread set org.apache.naming.java.javaURLContextFactory

[13/Apr/2007:15:49:44] fine ( 5472): Register com.sun.web-15

[13/Apr/2007:15:49:44] fine ( 5472): Starting Servlet Engine

[13/Apr/2007:15:49:44] fine ( 5472): Registering host MACHINE.sub.domain.net with domain com.sun.web-15

[13/Apr/2007:15:49:45] fine ( 5472): No realm for this host com.sun.web-15:type=Host,host=MACHINE.sub.domain.net

[13/Apr/2007:15:49:45] fine ( 5472): PWC1365: XML validation disabled

[13/Apr/2007:15:49:45] fine ( 5472): Starting /SunTest

[13/Apr/2007:15:49:45] fine ( 5472): Registering j2eeType=WebModule,name=//MACHINE.sub.domain.net/SunTest,J2EEApplication=none,J 2EEServer=none for null

[13/Apr/2007:15:49:45] fine ( 5472): Configuring default Resources

[13/Apr/2007:15:49:45] fine ( 5472): setName /com.sun.web-15/MACHINE.sub.domain.net/SunTest25

[13/Apr/2007:15:49:45] fine ( 5472): Register Realm com.sun.web-15:type=Realm,path=/SunTest,host=MACHINE.sub.domain.net

[13/Apr/2007:15:49:45] fine ( 5472): valve parent=,path=/SunTest,host=MACHINE.sub.domain.net com.sun.web-15:j2eeType=WebModule,name=//MACHINE.sub.domain.net/SunTest,J2EEApp lication=none,J2EEServer=none

[13/Apr/2007:15:49:45] fine ( 5472): valve objectname = com.sun.web-15:type=Valve,name=StandardContextValve,path=/SunTest,host=MACHINE. sub.domain.net

[13/Apr/2007:15:49:45] fine ( 5472): Bound StandardEngine[com.sun.web-15].StandardHost[MACHINE.sub.domain.net].StandardCon text[/SunTest]

[13/Apr/2007:15:49:45] fine ( 5472): Creating JNDI naming context

[13/Apr/2007:15:49:45] fine ( 5472): Are multiple JVMs running ? false

[13/Apr/2007:15:49:45] fine ( 5472): Saving tld cache: D:\Program Files\Sun\WebServer7\https-MACHINE.sub.domain.net\generated\MACHINE.sub.domain. net\SunTest\tldCache.ser 0

[13/Apr/2007:15:49:45] fine ( 5472): Adding tld listeners:0

[13/Apr/2007:15:49:45] fine ( 5472): Registering com.sun.web-15:type=Manager,path=/SunTest,host=MACHINE.sub.domain.net

[13/Apr/2007:15:49:45] fine ( 5472): Start: Loading persisted sessions

[13/Apr/2007:15:49:45] fine ( 5472): Posting standard context attributes

[13/Apr/2007:15:49:45] warning ( 5472): WEB7020: Web application [/SunTest] is expecting a resource named [jdbc/FACDEV] which is not configured in server.xml

[13/Apr/2007:15:49:45] fine ( 5472): Configuring application event listeners

[13/Apr/2007:15:49:45] fine ( 5472): Sending application start events

[13/Apr/2007:15:49:45] fine ( 5472): Starting filters

[13/Apr/2007:15:49:45] fine ( 5472): Checking for com.sun.web-15:j2eeType=WebModule,name=//MACHINE.sub.domain.net/SunTest,J2EEApp lication=none,J2EEServer=none

[13/Apr/2007:15:49:45] fine ( 5472): Starting ROOT

[13/Apr/2007:15:49:45] fine ( 5472): Registering j2eeType=WebModule,name=//MACHINE.sub.domain.net/,J2EEApplication=none,J2EEServ er=none for null

[13/Apr/2007:15:49:45] fine ( 5472): Configuring default Resources

[13/Apr/2007:15:49:45] fine ( 5472): setName /com.sun.web-15/MACHINE.sub.domain.net26

[13/Apr/2007:15:49:45] fine ( 5472): Register Realm com.sun.web-15:type=Realm,path=/,host=MACHINE.sub.domain.net

[13/Apr/2007:15:49:45] fine ( 5472): valve parent=,path=/,host=MACHINE.sub.domain.net com.sun.web-15:j2eeType=WebModule,name=//MACHINE.sub.domain.net/,J2EEApplicatio n=none,J2EEServer=none

[13/Apr/2007:15:49:45] fine ( 5472): valve objectname = com.sun.web-15:type=Valve,name=StandardContextValve,path=/,host=MACHINE.sub.dom ain.net

[13/Apr/2007:15:49:45] fine ( 5472): PWC3013: Missing application web.xml, using defaults only StandardEngine[com.sun.web-15].StandardHost[MACHINE.sub.domain.net].StandardCon text[]

[13/Apr/2007:15:49:45] fine ( 5472): Bound StandardEngine[com.sun.web-15].StandardHost[MACHINE.sub.domain.net].StandardCon text[]

[13/Apr/2007:15:49:45] fine ( 5472): Creating JNDI naming context

[13/Apr/2007:15:49:45] fine ( 5472): Are multiple JVMs running ? false

[13/Apr/2007:15:49:45] fine ( 5472): Reusing tldCache D:\Program Files\Sun\WebServer7\https-MACHINE.sub.domain.net\generated\MACHINE.sub.domain. net\default-webapp\tldCache.ser 0

[13/Apr/2007:15:49:45] fine ( 5472): Registering com.sun.web-15:type=Manager,path=/,host=MACHINE.sub.domain.net

[13/Apr/2007:15:49:45] fine ( 5472): Start: Loading persisted sessions

[13/Apr/2007:15:49:45] fine ( 5472): Posting standard context attributes

[13/Apr/2007:15:49:45] fine ( 5472): Configuring application event listeners

[13/Apr/2007:15:49:45] fine ( 5472): Sending application start events

[13/Apr/2007:15:49:45] fine ( 5472): Starting filters

[13/Apr/2007:15:49:45] fine ( 5472): Checking for com.sun.web-15:j2eeType=WebModule,name=//MACHINE.sub.domain.net/,J2EEApplicatio n=none,J2EEServer=none

[13/Apr/2007:15:49:45] fine ( 5472): valve parent=,host=MACHINE.sub.domain.net com.sun.web-15:type=Host,host=MACHINE.sub.domain.net

[13/Apr/2007:15:49:45] fine ( 5472): valve objectname = com.sun.web-15:type=Valve,name=StandardHostValve,host=MACHINE.sub.domain.net

[13/Apr/2007:15:49:45] fine ( 5472): valve parent= com.sun.web-15:type=Engine

[13/Apr/2007:15:49:45] fine ( 5472): valve objectname = com.sun.web-15:type=Valve,name=StandardEngineValve

[13/Apr/2007:15:49:45] fine ( 5472): Adding web module : context = /SunTest, location = D:/Program Files/Sun/WebServer7/https-MACHINE.sub.domain.net/web-app/MACHINE.sub.domain.ne t/SunTest_1

[13/Apr/2007:15:49:45] fine ( 5472): WebModule[/SunTest]: adding pattern "/TestFacProfileSqlServlet" for resource "TestFacProfileSqlServlet"

[13/Apr/2007:15:49:45] fine ( 5472): WebModule[/SunTest]: adding pattern "/TestAuthenticationServlet" for resource "TestAuthenticationServlet"

[13/Apr/2007:15:49:45] fine ( 5472): WebModule[/SunTest]: adding pattern "/" for resource "default"

[13/Apr/2007:15:49:45] fine ( 5472): WebModule[/SunTest]: adding pattern "*.jspx" for resource "jsp"

[13/Apr/2007:15:49:45] fine ( 5472): WebModule[/SunTest]: adding pattern "/servlet/*" for resource "invoker"

[13/Apr/2007:15:49:45] fine ( 5472): WebModule[/SunTest]: adding pattern "*.jsp" for resource "jsp"

[13/Apr/2007:15:49:45] fine ( 5472): Adding web module : context = , location = D:/Program Files/Sun/WebServer7/https-MACHINE.sub.domain.net/docs

[13/Apr/2007:15:49:45] fine ( 5472): WebModule[/]: adding pattern "/" for resource "default"

[13/Apr/2007:15:49:45] fine ( 5472): WebModule[/]: adding pattern "*.jspx" for resource "jsp"

[13/Apr/2007:15:49:45] fine ( 5472): WebModule[/]: adding pattern "/servlet/*" for resource "invoker"

[13/Apr/2007:15:49:45] fine ( 5472): WebModule[/]: adding pattern "*.jsp" for resource "jsp"

[13/Apr/2007:15:49:45] info ( 5472): CORE3280: A new configuration was successfully installed

[13/Apr/2007:15:49:45] fine ( 5472): Released configuration 14

[13/Apr/2007:15:49:45] fine ( 5472): Installed configuration 15

[13/Apr/2007:15:49:45] fine ( 5472): Deleting configuration 14

[13/Apr/2007:15:49:45] fine ( 5472): Closing web application environment for virtual server [MACHINE.sub.domain.net]

[13/Apr/2007:15:49:45] fine ( 5472): Stopping embedded server

[13/Apr/2007:15:49:45] fine ( 5472): Stopping filters

[13/Apr/2007:15:49:45] fine ( 5472): Stopping

[13/Apr/2007:15:49:45] fine ( 5472): update-crl: reading CRL files from [crl]

[13/Apr/2007:15:49:45] fine ( 5472): CORE3351: update-crl: Unable to read dir [crl]

[13/Apr/2007:15:49:45] fine ( 5472): Unloading persisted sessions

[13/Apr/2007:15:49:45] fine ( 5472): Processing standard container shutdown

[13/Apr/2007:15:49:45] fine ( 5472): JspServlet.destroy()

[13/Apr/2007:15:49:46] fine ( 5472): Sending application stop events

[13/Apr/2007:15:49:46] fine ( 5472): unregistering realm com.sun.web-14:type=Realm,path=/,host=MACHINE.sub.domain.net

[13/Apr/2007:15:49:46] fine ( 5472): resetContext com.sun.web-14:j2eeType=WebModule,name=//MACHINE.sub.domain.net/,J2EEApplicatio n=none,J2EEServer=none null

[13/Apr/2007:15:49:46] fine ( 5472): Stopping complete

[13/Apr/2007:15:49:46] fine ( 5472): unregistering com.sun.web-14:j2eeType=WebModule,name=//MACHINE.sub.domain.net/,J2EEApplicatio n=none,J2EEServer=none

[13/Apr/2007:15:49:46] fine ( 5472): unregistering com.sun.web-14:type=Host,host=MACHINE.sub.domain.net

[13/Apr/2007:15:49:46] fine ( 5472): unregistering com.sun.web-14:type=Engine

[13/Apr/2007:15:49:46] fine ( 5472): Deleted configuration 14

entry in server.xml

<jdbc-resource>

<jndi-name>jdbc/FACDEV</jndi-name>

<datasource-class>com.sun.sql.jdbcx.oracle.OracleDataSource</datasourc e-class>

<max-connections>50</max-connections>

<connection-validation>table</connection-validation>

<connection-validation-table-name>sys.dual</connection-validation-tabl e-name>

<property>

<name>password</name>

<value>something</value>

</property>

<property>

<name>user</name>

<value>name</value>

</property>

<property>

<name>SID</name>

<value>BLAHBLAH</value>

</property>

<property>

<name>portNumber</name>

<value>1521</value>

</property>

<property>

<name>serverName</name>

<value>server.domain.net</value>

</property>

<description>JDBC Resource for BLAHBLAH</description>

</jdbc-resource>

entry in web.xml

<resource-ref>

<description>JDBC Connection Pool for BLAHBLAH</description>

<res-ref-name>jdbc/FACDEV</res-ref-name>

<res-type>javax.sql.DataSource</res-type>

<res-auth>Container</res-auth>

</resource-ref>

entry in sun-web.xml

<sun-web-app>

<resource-ref>

<res-ref-name>jdbc/FACDEV</res-ref-name>

<jndi-name>jdbc/FACDEV</jndi-name>

</resource-ref>

</sun-web-app>

Any help would be great.

bartmcp at 2007-7-7 1:18:47 > top of Java-index,Web & Directory Servers,Web Servers...
# 3

A missing web.xml will affect access to jdbc resources.

However, from the log, I can see this is a reconfiguration. jdbc-resource are no configured/reconfigured dynamically, if you are expecting that.

It will be more useful in your case to see the error log of a started web server instance. It is possible the jdbc-resource was not created correctly, ex. missing classese/drivers, etc.

nsegura at 2007-7-7 1:18:47 > top of Java-index,Web & Directory Servers,Web Servers...
# 4
Thanks for the follow-up.It turns out I was missing the web.xml and server.xml in the default root directory of the virtual server (the default is ./docs).I had assumed that just having them in the war file I was deploying was sufficient.
bartmcp at 2007-7-7 1:18:47 > top of Java-index,Web & Directory Servers,Web Servers...