[ http://issues.apache.org/jira/browse/XALANJ-2183?page=comments#action_12317826 ]
Yash Talwar commented on XALANJ-2183: ------------------------------------- Hi John, I tested the patch. It looks ok but I needed to make one change in runExtConnection.bat as follows: %BIN_JAR_DIR%\xercesImpl.jar to %_BIN_JAR_DIR%\xercesImpl.jar in order to pick up xercesImpl.jar file. Probably, ExternalConnection.java should print a message when argument is not provided. Currently, it throws ArrayIndexOutOfBoundException. Other than that it is ok. Thanks! Yash > 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]
