Discussion:
warning: Setting property 'source' [...] did not find a matching property.
Dwight, August
2010-09-30 15:05:48 UTC
Permalink
Hey all.

I'm running a Tomcat 6.0.29 server inside Eclipse 3.5.2, on Win7. I have no build errors or runtime errors. When I add my web project and start my tomcat server, I see the following warning:

WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:myappname' did not find a matching property.

When this warning is present, my server starts successfully with no errors, but the application does not appear to start and is not accessible. If I check the "Publish module contents to separate XML files" box on the server configuration options screen, the warning disappears but my application still does not load, so this might be a red herring.

I found a story from someone with similar symptoms here:

http://blog.rememberoneanother.com/2008/06/12/tomcat-warning-did-not-find-a-matching-property/

Unfortunately, their solution did not work for me either. (I checked, and I do not have an extraneous WEB-ROOT directory.)

My three teammates are using a similar setup (slightly different minor versions of Eclipse and Tomcat) with no problems. I also had everything working with my setup at one point, but I accidentally clobbered my workspace earlier this week and I had to start from a fresh one. I remember having this problem once before, but I just can't seem to remember or recreate whatever I did to fix it.

Has anyone seen or solved a similar problem before? Any other suggestions?

-August

________________________________
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
Christopher Schultz
2010-09-30 15:44:24 UTC
Permalink
August,
Post by Dwight, August
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context}
Setting property 'source' to 'org.eclipse.jst.j2ee.server:myappname'
did not find a matching property.
You're trying to set the "source" attribute on your <Context> element.

A few suggestions:

1. Don't set the "source" attribute on your <Connector> (there is no
such configuration property)
2. Don't put your <Context> in your server.xml. Instead, put it into
your webapp's META-INF/context.xml file. Don't have one? Create one.
Post by Dwight, August
When this warning is present, my server starts successfully with no
errors
Not a surprise: that's a warning.
Post by Dwight, August
but the application does not appear to start and is not
accessible.
That's strange.

- -chris
Caldarale, Charles R
2010-09-30 16:06:53 UTC
Permalink
Subject: Re: warning: Setting property 'source' [...] did not find a matching property.
You're trying to set the "source" attribute on your
<Context> element.
Eclipse has the nasty habit of stuffing this illegal attribute there automatically. Another reason not to run Tomcat under Eclipse.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments fro
Caldarale, Charles R
2010-09-30 17:41:50 UTC
Permalink
Subject: warning: Setting property 'source' [...] did not find a matching property.
I have no build errors or runtime errors.
Are you looking at *all* of the Tomcat logs when you make that statement? Note that Eclipse obfuscates things to the point where you might not be looking at the real logs for that execution of Tomcat.

What does Tomcat's manager app say about the state of your webapp?

What happens when you run Tomcat by itself, not under Eclipse?

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Dwight, August
2010-09-30 22:23:01 UTC
Permalink
Sent: Thursday, September 30, 2010 1:42 PM
Subject: RE: warning: Setting property 'source' [...] did not find a matching property.
Post by Dwight, August
I have no build errors or runtime errors.
Are you looking at *all* of the Tomcat logs when you make that statement?
catalina.*.log and localhost.*.log are both clean.
What does Tomcat's manager app say about the state of your webapp?
What happens when you run Tomcat by itself, not under Eclipse?
When I run Tomcat by itself, my app works the way it should, and Manager says it's running.
Sent: Thursday, September 30, 2010 12:07 PM>
Post by Dwight, August
Subject: Re: warning: Setting property 'source' [...] did not find a matching property.
You're trying to set the "source" attribute on your
<Context> element.
Eclipse has the nasty habit of stuffing this illegal attribute there automatically. Another reason not to > run Tomcat under Eclipse.
If there's a convenient way to do all of the things I need to do without running Tomcat through Eclipse, I'd be happy to try it. I never found a good setup for external Tomcat that gave me satisfactory debugging and delta publishing options.
Sent: Thursday, September 30, 2010 11:44 AM
2. Don't put your <Context> in your server.xml. Instead, put it into
your webapp's META-INF/context.xml file. Don't have one? Create one.
This is good advice in general, and something I will try to do from now on. I moved the <Context> elements out of server.xml and into META-INF/context.xml, and everything seems to be working properly. However, it did not solve my original problem.

I hope to have more time tomorrow to take a more thorough look at what is and isn't happening when I start this server, and why. Thanks for your help and suggestions.

-August


This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
Dwight, August
2010-10-01 15:23:59 UTC
Permalink
Well, problem solved.

As I mentioned, the warning disappeared when I got rid of the source attribute in my <Context> element. My real problem, where Tomcat didn't seem to be publishing my web project, appears to have been caused at least partly by Eclipse adding the src/main/webapp folder to the Java build path. I could have sworn that I checked for this earlier, but either I didn't actually check or else there was another factor which I never properly identified but somehow fixed at some point.

-August

-----Original Message-----
From: Dwight, August
Sent: Thursday, September 30, 2010 6:23 PM
To: Tomcat Users List
Subject: RE: warning: Setting property 'source' [...] did not find a matching property.
Sent: Thursday, September 30, 2010 1:42 PM
Subject: RE: warning: Setting property 'source' [...] did not find a matching property.
Post by Dwight, August
I have no build errors or runtime errors.
Are you looking at *all* of the Tomcat logs when you make that statement?
catalina.*.log and localhost.*.log are both clean.
What does Tomcat's manager app say about the state of your webapp?
What happens when you run Tomcat by itself, not under Eclipse?
When I run Tomcat by itself, my app works the way it should, and Manager says it's running.
Sent: Thursday, September 30, 2010 12:07 PM>
Post by Dwight, August
Subject: Re: warning: Setting property 'source' [...] did not find a matching property.
You're trying to set the "source" attribute on your
<Context> element.
Eclipse has the nasty habit of stuffing this illegal attribute there automatically. Another reason not to > run Tomcat under Eclipse.
If there's a convenient way to do all of the things I need to do without running Tomcat through Eclipse, I'd be happy to try it. I never found a good setup for external Tomcat that gave me satisfactory debugging and delta publishing options.
Sent: Thursday, September 30, 2010 11:44 AM
2. Don't put your <Context> in your server.xml. Instead, put it into
your webapp's META-INF/context.xml file. Don't have one? Create one.
This is good advice in general, and something I will try to do from now on. I moved the <Context> elements out of server.xml and into META-INF/context.xml, and everything seems to be working properly. However, it did not solve my original problem.

I hope to have more time tomorrow to take a more thorough look at what is and isn't happening when I start this server, and why. Thanks for your help and suggestions.

-August


This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org


This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
Continue reading on narkive:
Loading...