You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2012/03/05 16:25:49 UTC
DO NOT REPLY [Bug 52830] New: DataSource JNDI lookup with
javax.naming.Name failed
https://issues.apache.org/bugzilla/show_bug.cgi?id=52830
Bug #: 52830
Summary: DataSource JNDI lookup with javax.naming.Name failed
Product: Tomcat 7
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
AssignedTo: dev@tomcat.apache.org
ReportedBy: easyrasta@gmail.com
Classification: Unclassified
I try to use tomcat 7 with hibernate 4.x I got an Naming exception on getting
dataSource with javax.naming.Name.
Works when search with string. But hibernate migrate to Name in their code.
See:
https://hibernate.onjira.com/browse/HHH-7012
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 52830] DataSource JNDI lookup with
javax.naming.Name failed
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52830
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Component|Catalina |Catalina
Resolution|FIXED |
Product|Tomcat 7 |Tomcat 6
Target Milestone|--- |default
--- Comment #4 from Mark Thomas <ma...@apache.org> 2012-03-12 19:52:17 UTC ---
Re-opening to fix in Tomcat 6.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 52830] DataSource JNDI lookup with javax.naming.Name failed
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52830
--- Comment #11 from Jackie Rosen <ja...@hushmail.com> ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 52830] DataSource JNDI lookup with
javax.naming.Name failed
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52830
--- Comment #3 from lachamelle@gmail.com 2012-03-12 18:20:16 UTC ---
The same bug happen on Tomcat 6.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 52830] DataSource JNDI lookup with javax.naming.Name failed
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52830
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |FIXED
--- Comment #8 from Mark Thomas <ma...@apache.org> ---
Fixed in 6.0.x and will be included in 6.0.36 onwards.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 52830] DataSource JNDI lookup with
javax.naming.Name failed
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52830
--- Comment #7 from Konstantin Kolinko <kn...@gmail.com> 2012-03-23 16:44:30 UTC ---
(In reply to comment #6)
I've applied this alternative implementation in r1304468 (trunk), r1304471
(TC7)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 52830] DataSource JNDI lookup with
javax.naming.Name failed
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52830
--- Comment #1 from moogle <ea...@gmail.com> 2012-03-06 09:57:15 UTC ---
Doesn't work with a javax.naming.Name create with key "java:comp/env/jdbc/mydb"
If you look at
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/naming/SelectorContext.java?revision=1225625&view=markup
You could see that prefix is only "java:" and protected Name parseName(Name
name) return name.getSuffix(1)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 52830] DataSource JNDI lookup with
javax.naming.Name failed
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52830
--- Comment #6 from Konstantin Kolinko <kn...@gmail.com> 2012-03-21 00:47:51 UTC ---
Regarding the patch - r1298635 - I see one minor (theoretical?) issue.
It calls
Name result = new CompositeName();
..
result.addAll(name.getSuffix(1));
Looking at CompositeName#addAll(Name) in Java 6u31 I see that it expects that
(Name instanceof CompositeName) and throws InvalidNameException if it is not.
With a generic Name.getSuffix(int) that is not true.
Though I do not see how other name implementations could be used here.
Here is alternative implementation of the fix:
TestNamingContext passes with it as well.
[[[
Name result = name.getSuffix(1);
result.add(0, name.get(0).substring(prefixLength));
return result;
]]]
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 52830] DataSource JNDI lookup with javax.naming.Name failed
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52830
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |FIXED
--- Comment #10 from Mark Thomas <ma...@apache.org> ---
Bugzilla is not a support forum and there is insufficient information in
comment #9 to determine if there is a bug or if it is just a configuration
error. Please follow-up on the users mailing list and only re-open this issue
if it is determined there is still a bug to fix. If you do re-open this issue,
you'll need to provide a test case (ideally the simplest web application
possible - i.e. without hibernate) that demonstrates the issue. The simpler the
tets case, the easier it will be for the developers to investigate,
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 52830] DataSource JNDI lookup with javax.naming.Name failed
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52830
sebastien michea <se...@manaty.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Component|Catalina |Catalina
Version|unspecified |7.0.29
Resolution|FIXED |---
Product|Tomcat 6 |Tomcat 7
Target Milestone|default |---
--- Comment #9 from sebastien michea <se...@manaty.net> ---
on tomcat 7.0.29, with hibernate 4.1.5 final, i get the same error when
defining my jdbc/mbsousdb in web.xml and context.xml then using
<non-jta-data-source>java:/comp/env/jdbc/mbsousdb</non-jta-data-source>
in persistence.xml.
I tried jdbc/mbsousdb, java:comp/env/jdbc/mbsousdb an
java:/comp//env/jdbc/mbsousdb, without success.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 52830] DataSource JNDI lookup with
javax.naming.Name failed
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52830
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Mark Thomas <ma...@apache.org> 2012-03-08 22:44:45 UTC ---
Fixed in trunk and 7.0.x and will be included in 7.0.27 onwards.
Thanks for the report.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 52830] DataSource JNDI lookup with
javax.naming.Name failed
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52830
--- Comment #5 from Mark Thomas <ma...@apache.org> 2012-03-12 19:53:46 UTC ---
Fix proposed for 6.0.x.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org