[ 
http://issues.apache.org/jira/browse/XALANJ-2183?page=comments#action_12317823 
] 

John Gentilin commented on XALANJ-2183:
---------------------------------------

Brian,

Attached are patches. When were were talking to Yash, I incorrectly assumed 
that that the 
Concurrent Use error was coming from the DB. It was actually coming from the 
collections
classes. This was actuall a real bug, not sure why it is popping its head out 
now.

I created the runExtConnection.bat. Once we review this version and find that 
it works both 
on a binary and source release I will apply the same classpath code to the 
older files.

John G

> Classpath and database problems for new Derby database samples
> --------------------------------------------------------------
>
>          Key: XALANJ-2183
>          URL: http://issues.apache.org/jira/browse/XALANJ-2183
>      Project: XalanJ2
>         Type: Bug
>     Reporter: Brian Minchau
>     Assignee: John Gentilin
>  Attachments: XalanJ-2183-SqlExtension-DefConPoolFix.patch, XalanSQL 
> Ext-SampleDir.patch, runExtConnection.bat
>
> Batch and shell scripts don't set classpath right.
> In the case of the binary distribution the jars are in the root dirctory:
> serializer.jar
> xalan.jar
> xercesImpl.jar
> xml-apis.jar
> Of particular note these files found in the root when you get the binary 
> distribution you get these jars in the root.
> When you get the source distribution, these jars are already in the lib/ 
> directory
> lib/xercesImpl.jar
> lib/xml-apis.jar
> After doing a build from the source distribution, the following are created:
> build/xalan.jar
> build/serializer.jar
> So the locations of these 4 jars depends on the distribution.
> =================================================
> The problem with the new java/samples/extensions/sql/runXalan.bat (for 
> example) is that it has lines like this:
> if "%_PARSER_JAR%" == "" set _PARSER_JAR=..\..\..\lib\xercesImpl.jar
> that assume the source distribution. Such a line should be replace with code 
> like this:
> if "%_PARSER_JAR%" == "" if exist "..\..\..\lib\xercesImpl.jar" set 
> _PARSER_JAR=..\..\..\lib\xercesImpl.jar
> if "%_PARSER_JAR%" == "" if exist "..\..\..\xercesImpl.jar" set 
> _PARSER_JAR=..\..\..\xercesImpl.jar
> A similar issue for the endored directory 
> if "%_XALAN_JAR_DIR%" == "" set _XALAN_JAR_DIR=..\..\..\build
> which should be:
> if "%_XALAN_JAR_DIR%" == "" if exist "=..\..\..\build\xalan.jar" set 
> _XALAN_JAR_DIR=..\..\..\build
> if "%_XALAN_JAR_DIR%" == "" if exist "=..\..\.\xalan.jar" set 
> _XALAN_JAR_DIR=..\..\
> and other locations in runXalan.bat.
> Similar issues for runXalan.sh, runDerby.bat, runDerby.sh

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to