Re: Cannot find sqlmap in jar - new bug

2006-06-11 Thread Brandon Goodin

Paul,

All i can tell you is that i have recently created an application that
uses Spring, iBATIS and is jarred up. I have not faced the problems
that you are facing. The only difference is that i used resin instead
of Tomcat. If you feel it is related to classloading strategies then
give resin a try and see if it has the same issue. If it does wind up
being a classloading issue then i'd have to say it is a tomcat issue
rather than an iBATIS issue.

Also, it is not the iBATIS team's responsibility to create the code
and reproduce the issue you are experiencing. It is the reporting
user's responsibility to create repeatable code that can be used to
diagnose the problem. Then you can provide it to us as an issue in
JIRA. At that time it is then our responsibility to assist in
discovering the problem. But, even then, you are encouraged to assist
in the discovery of the problem.

Thanks
Brandon

On 6/11/06, Paul Benedict [EMAIL PROTECTED] wrote:

Clinton, it was only a conjecture that it was using the File object, but my 
follow up emails show
that I peeked into Resource.java to see what is going on.

But, afaik, all signs at the moment point to a problem in ibatis. When I pull 
the XML files out of
the jar and put them directly into WEB-INF/classes, the XML configs can be 
found. My best guess at
the moment is that it deals with the Classloader that is being passed in.

I'd like someone on the ibatis team to reproduce it. I am using tomcat 5.0.28, 
if it makes a
difference on what platform is used.

Paul

--- Clinton Begin [EMAIL PROTECTED] wrote:

  which means that IBATIS is making a wrong assumption here

 You're assuming iBATIS is making an assumption.  Which it is not. If you're
 using the the iBATIS Resources util, you can confirm the behavior here:


http://svn.apache.org/repos/asf/ibatis/trunk/java/mapper/mapper2/src/com/ibatis/common/resources/Resources.java

 Cheers,
 Clinton

 On 6/10/06, Paul Benedict [EMAIL PROTECTED] wrote:
 
  I am using version 2.1.5.582
 
  My web application has a sqlMapConfig.xml file which is the bootstrap
  config for ibatis. But the
  actual configuration files which it refers (sqlMap elements) are in a
  jar. Has anyone had this
  problem?
 
  I have verified that exploding the jar into my WEB-INF/classes directory
  makes the problem go
  away, which means that IBATIS is making a wrong assumption here. Is it
  using a File object instead
  of Class.getResourceAsStream() ?
 
  -- Paul
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam protection around
  http://mail.yahoo.com
 



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



Re: Cannot find sqlmap in jar - new bug

2006-06-11 Thread Paul Benedict
Brandon,

All i can tell you is that i have recently created an application that
uses Spring, iBATIS and is jarred up.

Forgive me, but based on the feedback I am getting, I am not convinced at all 
that my problem is
being understood. Can you give me some confidence it is? As I said, this is not 
a problem with the
application being jarred up --- my application is not jarred up.

My problem arises when:
(1) the sqlmapconfig.xml exists in the webapp but 
(2) the actual sqlmap files belong in a LIB jar. 

Do you see the difference? 

Paul

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: Cannot find sqlmap in jar - new bug

2006-06-11 Thread Brandon Goodin

I'd recommend that you place your sqlMapConfig.xml in the classes
directory and use the follwing spring config.

bean id=sqlMapClient
class=org.springframework.orm.ibatis.SqlMapClientFactoryBean
 property name=configLocation value=classpath:sqlMapConfig.xml/
 property name=dataSource ref=dataSource/
/bean

I would assume this issue is tied to the fact that the sqlMapConfig is
not being loaded from the classpath.

Brandon

On 6/11/06, Paul Benedict [EMAIL PROTECTED] wrote:

Brandon,

All i can tell you is that i have recently created an application that
uses Spring, iBATIS and is jarred up.

Forgive me, but based on the feedback I am getting, I am not convinced at all 
that my problem is
being understood. Can you give me some confidence it is? As I said, this is not 
a problem with the
application being jarred up --- my application is not jarred up.

My problem arises when:
(1) the sqlmapconfig.xml exists in the webapp but
(2) the actual sqlmap files belong in a LIB jar.

Do you see the difference?

Paul

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



Re: Cannot find sqlmap in jar - new bug

2006-06-11 Thread Clinton Begin
Did you try removing the / from the beginning of your resource path when loading the xml files from the JAR file? sqlMap resource=/c
om/company/people/impl/PeopleImpl-sqlmap.xml /ClintonOn 6/11/06, Brandon Goodin 
[EMAIL PROTECTED] wrote:I'd recommend that you place your sqlMapConfig.xml
 in the classesdirectory and use the follwing spring config.bean id=sqlMapClientclass=org.springframework.orm.ibatis.SqlMapClientFactoryBeanproperty name=configLocation value=classpath:
sqlMapConfig.xml/property name=dataSource ref=dataSource//beanI would assume this issue is tied to the fact that the sqlMapConfig isnot being loaded from the classpath.
BrandonOn 6/11/06, Paul Benedict [EMAIL PROTECTED] wrote: Brandon, All i can tell you is that i have recently created an application that
 uses Spring, iBATIS and is jarred up. Forgive me, but based on the feedback I am getting, I am not convinced at all that my problem is being understood. Can you give me some confidence it is? As I said, this is not a problem with the
 application being jarred up --- my application is not jarred up. My problem arises when: (1) the sqlmapconfig.xml exists in the webapp but (2) the actual sqlmap files belong in a LIB jar.
 Do you see the difference? Paul __ Do You Yahoo!? Tired of spam?Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com


[jira] Created: (IBATIS-304) Need to add discriminator tag to sqlmap documentation

2006-06-11 Thread Brandon Goodin (JIRA)
Need to add discriminator tag to sqlmap documentation
-

 Key: IBATIS-304
 URL: http://issues.apache.org/jira/browse/IBATIS-304
 Project: iBatis for Java
Type: Task

  Components: SQL Maps  
Reporter: Brandon Goodin


The discrimnator tag is not currently documented in the sqlmap documenation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira