Tomcat5.5 create Connection  
michi2002k2 Thu Jan 22 10:23:10 GMT 2009
 
When i use primrose i get this error:
[myError]
javax.naming.NameNotFoundException: Name SCMPool is not bound in this Context
[/myError]

I read the tutorial and configured my tomcat 5.5 this way:

[inside the server.xml of my tomcat]

...
name="SCMPool" auth="Container"
type="uk.org.primrose.vendor.tomcat.PrimroseDataSource"
description="The pool for the ShortcutManagement application"
factory="uk.org.primrose.vendor.tomcat.PrimroseDataSourceFactory"

poolName="SCMPool"
primroseConfigFile="/etc/tomcat5.5/conf/primrose.config"

/>
...

...
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
...

global="SCMPool"
name="SCMPool"
type="javax.sql.DataSource"/>





[/inside the server.xml of my tomcat]

[my GetConnection.java file]
...
Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("java:comp/env/SCMPool");
con = ds.getConnection();
...
[/my GetConnectin.java file]

Where could the error be?
There is something strange, when i look into my /manager (the application to upload .war files to tomcat etc):
i can see a "/RequestServices" which is not available and im not able to "start" this service/context.

Any help, please?
 
guest Thu Jan 22 10:31:30 GMT 2009
 
Sorry, this forum actually accepts HTML, which a little bit destroyed my posting above...

Inside my server.xml the are this tags, which are missing above: (without *)
<*Resource


<*Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">

<*Context path="/RequestServices" debug="0" reloadable="true" crossContext="true">

(and to add some clue, maybe: there is a context.xml in my conf folder of tomcat. Should i maybe there define my Context path=... etc?
michi2002k2 Thu Jan 22 11:06:54 GMT 2009
 
problem solved:
just had to put the stuff into the context.xml ...
guest Mon Jul 05 11:23:03 BST 2010
 
HgLRPP vllvylqwsmto, [url=http://rpqnhfpworgx.com/]rpqnhfpworgx[/url], [link=http://bpljwuchywec.com/]bpljwuchywec[/link], http://mcveqkdildhc.com/
guest Mon Jul 05 11:23:04 BST 2010
 
HgLRPP vllvylqwsmto, [url=http://rpqnhfpworgx.com/]rpqnhfpworgx[/url], [link=http://bpljwuchywec.com/]bpljwuchywec[/link], http://mcveqkdildhc.com/