|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
JNDI connection issueHi All, Getting an issues while creating JNDI connection javax.management.MalformedObjectNameException: Invalid character ':' in value part of property at javax.management.ObjectName.construct(Unknown Source) at javax.management.ObjectName.<init>(Unknown Source) at org.apache.catalina.mbeans.MBeanUtils.createObjectName(MBeanUtils.java:1085) at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:497) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListener.java:570) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListener.java:366) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListener.java:535) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListener.java:498) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListener.java:660) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListener.java:628) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListener.java:278) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLife cycleListener.java:129) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:117) at org.apache.catalina.core.StandardServer.start(StandardServer.java:703) at org.apache.catalina.startup.Catalina.start(Catalina.java:566) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Please reply I am in need.... Thanks and Regards, Praful Sinha. |
|
|
Re: JNDI connection issue-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Praful, Praful Sinha wrote: | Getting an issues while creating JNDI connection | | javax.management.MalformedObjectNameException: Invalid character ':' in | value part of property It would seem that including your configuration would help greatly, here. Perhaps you have a ':' in a property value that is invalid? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgkWjoACgkQ9CaO5/Lv0PAIIACfdIZdcmldynQWT23cc0ri4S2Q 1lYAnj0+l0GaqyDLlbwK7wuH9WA9ajsr =PBed -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
RE: JNDI connection issueHi Chris,
The configuration files look like this: <Context path="C:\Tomcat 6.0\webapps\AppPts" reloadable="true" docBase="C:\Tomcat 6.0\webapps\AppPts" workDir="C:\Tomcat 6.0\work"> <Resource name="jdbc/AppPts" auth="Container" type="javax.sql.DataSource" maxActive="20" maxIdle="5" maxWait="10000" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/cms_db_dev" username="root" password="pts" removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true" /> </Context> Praful Sinha. -----Original Message----- From: Christopher Schultz [mailto:chris@...] Sent: Friday, May 09, 2008 7:36 PM To: Tomcat Users List Subject: Re: JNDI connection issue -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Praful, Praful Sinha wrote: | Getting an issues while creating JNDI connection | | javax.management.MalformedObjectNameException: Invalid character ':' in | value part of property It would seem that including your configuration would help greatly, here. Perhaps you have a ':' in a property value that is invalid? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgkWjoACgkQ9CaO5/Lv0PAIIACfdIZdcmldynQWT23cc0ri4S2Q 1lYAnj0+l0GaqyDLlbwK7wuH9WA9ajsr =PBed -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: JNDI connection issue-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Praful, Praful Sinha wrote: | The configuration files look like this: | | <Context path="C:\Tomcat 6.0\webapps\AppPts" reloadable="true" | docBase="C:\Tomcat 6.0\webapps\AppPts" workDir="C:\Tomcat 6.0\work"> | | <Resource name="jdbc/AppPts" auth="Container" type="javax.sql.DataSource" | maxActive="20" maxIdle="5" maxWait="10000" | driverClassName="com.mysql.jdbc.Driver" | url="jdbc:mysql://localhost:3306/cms_db_dev" username="root" password="pts" | removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true" /> | | </Context> Based on the stack trace, I think the error is in server.xml, not in context.xml. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgkX5kACgkQ9CaO5/Lv0PAOJACgo6Sle+iNLUU/11x2EfgPtJzN bzcAnAtr6oUC0XWG1DvtPqbiHcyhb6ER =7lDC -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
RE: JNDI connection issue> From: Praful Sinha [mailto:praful.sinha@...]
> Subject: RE: JNDI connection issue > > The configuration files look like this: > <Context path="C:\Tomcat 6.0\webapps\AppPts" reloadable="true" > docBase="C:\Tomcat 6.0\webapps\AppPts" workDir="C:\Tomcat 6.0\work"> The above path attribute is clearly in error. When it's valid to use it, the path attribute is the HTTP URL of the webapp, not the location in the file system. Depending on where your <Context> element is located, you likely must not use either the path or the docBase attributes. Read the doc: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html - 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. --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
RE: JNDI connection issueHi Chris,
This is what we have mentioned in server.xml And I think we can keep this configuration in server.xml right. Thanks and Regards, Praful Sinha. -----Original Message----- From: Christopher Schultz [mailto:chris@...] Sent: Friday, May 09, 2008 7:59 PM To: Tomcat Users List Subject: Re: JNDI connection issue -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Praful, Praful Sinha wrote: | The configuration files look like this: | | <Context path="C:\Tomcat 6.0\webapps\AppPts" reloadable="true" | docBase="C:\Tomcat 6.0\webapps\AppPts" workDir="C:\Tomcat 6.0\work"> | | <Resource name="jdbc/AppPts" auth="Container" type="javax.sql.DataSource" | maxActive="20" maxIdle="5" maxWait="10000" | driverClassName="com.mysql.jdbc.Driver" | url="jdbc:mysql://localhost:3306/cms_db_dev" username="root" password="pts" | removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true" /> | | </Context> Based on the stack trace, I think the error is in server.xml, not in context.xml. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgkX5kACgkQ9CaO5/Lv0PAOJACgo6Sle+iNLUU/11x2EfgPtJzN bzcAnAtr6oUC0XWG1DvtPqbiHcyhb6ER =7lDC -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: JNDI connection issuePraful Sinha wrote:
> <Context path="C:\Tomcat 6.0\webapps\AppPts" reloadable="true" > docBase="C:\Tomcat 6.0\webapps\AppPts" workDir="C:\Tomcat 6.0\work"> > I don't know how Tomcat handles backslashes in path names. On the other hand I don't like presented docBase and path attributes. I'd rather specify: path="AppPts" docBase="C:\Tomcat 6.0\webapps" --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free Forum Powered by Nabble | Forum Help |