Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XML Validation Disable message in Tomcat(Can you please Resolve it)

807599Jan 30 2007
Here is the error i am getting while doing validation using struts framework....

I have written all the validations in validation.xml file..but made validate=true in the struts-config.xml file for the action tag.

But in Tomcat i am getting the message while loading the application like

"XML Validation disabled"

But it is not showing any error in the Tomcat server.I have used the <html:errors/> tag in the JSP, but the validation are not working ....
Can you please help me in this regard.....its very urgent for me..,

Here i am pasting the thing i am getting in Tomcat

PLease observe "XML Validation Disable " message in this

-----

Jan 30, 2007 2:57:31 PM org.apache.catalina.core.AprLifecycleListener lifecycleE
vent
INFO: The Apache Tomcat Native library which allows optimal performance in produ
ction environments was not found on the java.library.path: C:\development\Marlab
s\SolPortal\1.0\public\jdk1.5.0_09\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\devel
opment\Marlabs\SolPortal\1.0\public\jdk1.5.0_09\bin;C:\development\Marlabs\SolPo
rtal\1.0\public\apache-ant-1.6.5\bin;C:\development\Marlabs\SolPortal\1.0\public
\apache-ant-1.6.5\lib;C:\development\Marlabs\SolPortal\1.0\public\cygwin\bin;C:\
windows\system32;C:\development\Marlabs\SolPortal\1.0\public\eclipse;C:\developm
ent\Marlabs\SolPortal\1.0\public\mysql-5.0.27-win32\bin
Jan 30, 2007 2:57:31 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Jan 30, 2007 2:57:31 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 813 ms
Jan 30, 2007 2:57:31 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 30, 2007 2:57:31 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Jan 30, 2007 2:57:32 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jan 30, 2007 2:57:32 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive SolPortal.war
14:57:34,641 INFO ActionServlet:1631 - Loading chain catalog from jar:file:/C:/
development/Marlabs/SolPortal/1.0/public/apache-tomcat-5.5.20/webapps/SolPortal/
WEB-INF/lib/struts-core-1.3.5.jar!/org/apache/struts/chain/chain-config.xml
14:57:35,219 INFO TilesPlugin:237 - Tiles definition factory loaded for module
''.
14:57:35,219 INFO ValidatorPlugIn:212 - Loading validation rules file from '/WE
B-INF/validator-rules.xml'
14:57:35,235 INFO ValidatorPlugIn:212 - Loading validation rules file from '/WE
B-INF/validation.xml'
14:57:35,579 INFO ActionServlet:1631 - Loading chain catalog from jar:file:/C:/
development/Marlabs/SolPortal/1.0/public/apache-tomcat-5.5.20/webapps/SolPortal/
WEB-INF/lib/struts-core-1.3.5.jar!/org/apache/struts/chain/chain-config.xml
14:57:35,625 INFO TilesPlugin:211 - Factory already exists for module ''. The f
actory found is from module ''. No new creation.
14:57:35,625 INFO ValidatorPlugIn:212 - Loading validation rules file from '/WE
B-INF/validator-rules.xml'
14:57:35,625 INFO ValidatorPlugIn:212 - Loading validation rules file from '/WE
B-INF/validation.xml'
Jan 30, 2007 2:57:36 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8180
Jan 30, 2007 2:57:36 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jan 30, 2007 2:57:36 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/32 config=null
Jan 30, 2007 2:57:36 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jan 30, 2007 2:57:36 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4937 ms
Jan 30, 2007 2:57:45 PM org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started
14:57:45,594 INFO ActionServlet:1631 - Loading chain catalog from jar:file:/C:/
development/Marlabs/SolPortal/1.0/public/apache-tomcat-5.5.20/webapps/SolPortal/
WEB-INF/lib/struts-core-1.3.5.jar!/org/apache/struts/chain/chain-config.xml
14:57:46,125 INFO TilesPlugin:237 - Tiles definition factory loaded for module
''.
14:57:46,125 INFO ValidatorPlugIn:212 - Loading validation rules file from '/WE
B-INF/validator-rules.xml'
14:57:46,125 INFO ValidatorPlugIn:212 - Loading validation rules file from '/WE
B-INF/validation.xml'
14:57:46,313 INFO ActionServlet:1631 - Loading chain catalog from jar:file:/C:/
development/Marlabs/SolPortal/1.0/public/apache-tomcat-5.5.20/webapps/SolPortal/
WEB-INF/lib/struts-core-1.3.5.jar!/org/apache/struts/chain/chain-config.xml
14:57:46,359 INFO TilesPlugin:211 - Factory already exists for module ''. The f
actory found is from module ''. No new creation.
14:57:46,359 INFO ValidatorPlugIn:212 - Loading validation rules file from '/WE
B-INF/validator-rules.xml'
14:57:46,359 INFO ValidatorPlugIn:212 - Loading validation rules file from '/WE
B-INF/validation.xml'
14:58:10,546 INFO TilesRequestProcessor:103 - Tiles definition factory found fo
r request processor ''.
14:58:24,374 INFO Environment:500 - Hibernate 3.2.0
14:58:24,390 INFO Environment:533 - hibernate.properties not found
14:58:24,390 INFO Environment:667 - Bytecode provider name : cglib
14:58:24,390 INFO Environment:584 - using JDK 1.4 java.sql.Timestamp handling
14:58:24,499 INFO Configuration:1350 - configuring from resource: /hibernate.cf
g.xml
14:58:24,499 INFO Configuration:1327 - Configuration resource: /hibernate.cfg.x
ml
14:58:24,640 INFO Configuration:507 - Reading mappings from resource: ml/compon
ent/admin/service/Customer.hbm.xml
14:58:24,765 INFO HbmBinder:300 - Mapping class: ml.component.admin.service.Cus
tomer -> customer
14:58:24,812 INFO Configuration:1465 - Configured SessionFactory: null
14:58:24,937 INFO DriverManagerConnectionProvider:41 - Using Hibernate built-in
connection pool (not for production use!)
14:58:24,952 INFO DriverManagerConnectionProvider:42 - Hibernate connection poo
l size: 10
14:58:24,952 INFO DriverManagerConnectionProvider:45 - autocommit mode: false
14:58:24,952 INFO DriverManagerConnectionProvider:80 - using driver: com.mysql.
jdbc.Driver at URL: jdbc:mysql://localhost:3306/test
14:58:24,952 INFO DriverManagerConnectionProvider:86 - connection properties: {
user=root, password=****}
14:58:25,187 INFO SettingsFactory:81 - RDBMS: MySQL, version: 5.0.27-community
14:58:25,187 INFO SettingsFactory:82 - JDBC driver: MySQL-AB JDBC Driver, versi
on: mysql-connector-java-5.0.4 ( $Date: 2006-10-19 17:47:48 +0200 (Thu, 19 Oct 2
006) $, $Revision: 5908 $ )
14:58:25,218 INFO Dialect:141 - Using dialect: org.hibernate.dialect.MySQLDiale
ct
14:58:25,233 INFO TransactionFactoryFactory:34 - Transaction strategy: org.hibe
rnate.transaction.JDBCTransactionFactory
14:58:25,233 INFO TransactionManagerLookupFactory:33 - No TransactionManagerLoo
kup configured (in JTA environment, use of read-write or transactional second-le
vel cache is not recommended)
14:58:25,233 INFO SettingsFactory:134 - Automatic flush during beforeCompletion
(): disabled
14:58:25,249 INFO SettingsFactory:138 - Automatic session close at end of trans
action: disabled
14:58:25,249 INFO SettingsFactory:145 - JDBC batch size: 15
14:58:25,249 INFO SettingsFactory:148 - JDBC batch updates for versioned data:
disabled
14:58:25,249 INFO SettingsFactory:153 - Scrollable result sets: enabled
14:58:25,249 INFO SettingsFactory:161 - JDBC3 getGeneratedKeys(): enabled
14:58:25,249 INFO SettingsFactory:169 - Connection release mode: auto
14:58:25,249 INFO SettingsFactory:193 - Maximum outer join fetch depth: 2
14:58:25,249 INFO SettingsFactory:196 - Default batch fetch size: 1
14:58:25,249 INFO SettingsFactory:200 - Generate SQL with comments: disabled
14:58:25,249 INFO SettingsFactory:204 - Order SQL updates by primary key: disab
led
14:58:25,249 INFO SettingsFactory:369 - Query translator: org.hibernate.hql.ast
.ASTQueryTranslatorFactory
14:58:25,265 INFO ASTQueryTranslatorFactory:24 - Using ASTQueryTranslatorFactor
y
14:58:25,265 INFO SettingsFactory:212 - Query language substitutions: {}
14:58:25,265 INFO SettingsFactory:217 - JPA-QL strict compliance: disabled
14:58:25,265 INFO SettingsFactory:222 - Second-level cache: enabled
14:58:25,265 INFO SettingsFactory:226 - Query cache: disabled
14:58:25,265 INFO SettingsFactory:356 - Cache provider: org.hibernate.cache.NoC
acheProvider
14:58:25,265 INFO SettingsFactory:241 - Optimize cache for minimal puts: disabl
ed
14:58:25,265 INFO SettingsFactory:250 - Structured second-level cache entries:
disabled
14:58:25,280 INFO SettingsFactory:270 - Echoing all SQL to stdout
14:58:25,280 INFO SettingsFactory:277 - Statistics: disabled
14:58:25,280 INFO SettingsFactory:281 - Deleted entity synthetic identifier rol
lback: disabled
14:58:25,280 INFO SettingsFactory:296 - Default entity-mode: pojo
14:58:25,452 INFO SessionFactoryImpl:161 - building session factory
14:58:25,968 INFO SessionFactoryObjectFactory:82 - Not binding factory to JNDI,
no JNDI name configured
14:58:25,968 INFO SchemaUpdate:115 - Running hbm2ddl schema update
14:58:25,968 INFO SchemaUpdate:126 - fetching database metadata
14:58:25,968 INFO SchemaUpdate:138 - updating schema
14:58:26,030 INFO TableMetadata:40 - table found: test.customer
14:58:26,030 INFO TableMetadata:41 - columns: [customercity, addressline1, cont
actperson, customerstate, customerdesc, addressline2, id, customername, customer
postalcode]
14:58:26,030 INFO TableMetadata:43 - foreign keys: []
14:58:26,030 INFO TableMetadata:44 - indexes: []
14:58:26,030 INFO SchemaUpdate:160 - schema update complete
14:58:26,202 DEBUG SQL:393 - select max(id) from customer
Hibernate: select max(id) from customer
14:58:26,265 DEBUG SQL:393 - insert into customer (customerName, contactPerson,
addressLine1, addressLine2, customerCity, customerState, customerPostalCode, cus
tomerDesc, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: insert into customer (customerName, contactPerson, addressLine1, addr
essLine2, customerCity, customerState, customerPostalCode, customerDesc, id) val
ues (?, ?, ?, ?, ?, ?, ?, ?, ?)
---------
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 27 2007
Added on Jan 30 2007
0 comments
704 views