-1

What is incorrect in my config.xml file for tomcat 7.0

<?xml version="1.0" encoding="UTF-8"?>
<Context>
   <WatchedResource>WEB-INF/web.xml</WatchedResource>
   <Manager pathname="" />
   <Resource name="jdbc/mkyongdb" auth="Container" type="javax.sql.DataSource"
           maxActive="100" maxIdle="30" maxWait="10000"
           username="user" password="12345" driverClassName="com.mysql.jdbc.Driver"
           url="jdbc:mysql://127.0.0.1:3306/mkyongdb"/>
</Context>

An error occurs when I`m publishing the application on the server:

Could not load the Tomcat server configuration at \Servers\Tomcat v7.0 Server at localhost-config. The configuration may be corrupt or incomplete. Resource is out of sync with the file system: /Servers/Tomcat v7.0 Server at localhost-config/context.xml.

But now this error occurs:

Could not load the Tomcat server configuration at \Servers\Tomcat v7.0 Server at localhost-config. The configuration may be corrupt or incomplete. Element type "Resource" must be followed by either attribute specifications, ">" or "/>".

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
savva
  • 155
  • 2
  • 3
  • 10

2 Answers2

3

Are you using Eclipse? If so, perhaps this question might be helpful:

publishing failed with multiple errors eclipse

If you're not using Eclipse let me know and I'll delete my answer :)

Community
  • 1
  • 1
Paul
  • 19,704
  • 14
  • 78
  • 96
-1

Could not load the Tomcat server configuration at \Servers\Tomcat v7.0 Server at localhost-config. The configuration may be corrupt or incomplete. Element type "Resource" must be followed by either attribute specifications, ">" or "/>".

if you want to run your program without any error, change your workspace with different name and again develop and deploy your application i am sure it will run ..........

Abdel Raoof Olakara
  • 19,223
  • 11
  • 88
  • 133