You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Brian Minchau (JIRA)" <xa...@xml.apache.org> on 2005/08/05 21:41:36 UTC

[jira] Created: (XALANJ-2183) Classpath and database problems for new Derby database samples

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


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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2183) Classpath and database problems for new Derby database samples

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANJ-2183?page=comments#action_12317892 ] 

Brian Minchau commented on XALANJ-2183:
---------------------------------------

Verified that  patch XalanSqlExt-Samples.patch.txt is already committed to CVS.

-------------------------------------
runDerby.bat looks OK.
-------------------------------------
runDerby.sh
  > set _JAR_DIR but never uses it.
  > _ENDORSED_DIR is always set to ../../../build, but this directory will only exist 
      for the source distribution after one does a build
This is propably irrelevant since the corresponding runDerby.bat does not
having anything to do with endorsed directories at all. 
------------------------------------
runExtConnection.bat looks OK..

------------------------------------
runExtConnection.sh it sets SERIALIZER_JAR but doesn't
use the variable in the classpath.
------------------------------------
runXalan.bat looks OK.
------------------------------------
runXalan.sh  has the same problem as runExtConnection.sh,
it sets SERIALIZER_JAR but doesn't use the variable in the classpath.
------------------------------------



> 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, XalanSQLSamples-DocUpdates.patch, XalanSqlExt-Samples.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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Assigned: (XALANJ-2183) Classpath and database problems for new Derby database samples

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2183?page=all ]

Brian Minchau reassigned XALANJ-2183:
-------------------------------------

    Assign To: John Gentilin

> 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

>
> 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-2183) Classpath and database problems for new Derby database samples

Posted by "John Gentilin (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2183?page=all ]

John Gentilin updated XALANJ-2183:
----------------------------------

    Attachment: XalanJ-2183-SqlExtension-DefConPoolFix.patch

Thi patch fixes a problem with the default connection pool where we were using an Iterator but in the Iterator look we were trying to remove elements in the Iterators's collection. This caused a concurrent access error.

> 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2183) Classpath and database problems for new Derby database samples

Posted by "John Gentilin (JIRA)" <xa...@xml.apache.org>.
    [ 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-2183) Classpath and database problems for new Derby database samples

Posted by "John Gentilin (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2183?page=all ]

John Gentilin updated XALANJ-2183:
----------------------------------

    Attachment: XalanSQL Ext-SampleDir.patch

This file changes the ext-connection sample code so that the ExternalConnection class takes the XSL file as a parameter. It made it easier to write the new batch files.

> 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2183) Classpath and database problems for new Derby database samples

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANJ-2183?page=comments#action_12317893 ] 

Brian Minchau commented on XALANJ-2183:
---------------------------------------

XalanSQLExt-SampleDir.patch was already applied to CVS an modifies
ExternalConnection.java to take a parameter of a sylesheet, this change looks OK.



> 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, XalanSQLSamples-DocUpdates.patch, XalanSqlExt-Samples.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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-2183) Classpath and database problems for new Derby database samples

Posted by "John Gentilin (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2183?page=all ]

John Gentilin updated XALANJ-2183:
----------------------------------

    Attachment: runExtConnection.bat

This batch file makes it easier to run the External Connection sample.

> 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2183) Classpath and database problems for new Derby database samples

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANJ-2183?page=comments#action_12317894 ] 

Brian Minchau commented on XALANJ-2183:
---------------------------------------

I've reviewed the DefConPool patch, which is a patch to:
 org.apache.xalan.lib.sql.DefaultConnectionPool.java

It was already applied to CVS, and looks OK to me.

> 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, XalanSQLSamples-DocUpdates.patch, XalanSqlExt-Samples.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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-2183) Classpath and database problems for new Derby database samples

Posted by "John Gentilin (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2183?page=all ]

John Gentilin updated XALANJ-2183:
----------------------------------

    Attachment: XalanSQLSamples-DocUpdates.patch

Updated for the new runExtConnection batch/sh files

> 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, XalanSQLSamples-DocUpdates.patch, XalanSqlExt-Samples.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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-2183) Classpath and database problems for new Derby database samples

Posted by "John Gentilin (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2183?page=all ]

John Gentilin updated XALANJ-2183:
----------------------------------

    Attachment: XalanSqlExt-Samples.patch

This patch superceeds the previous patch. The batch files have been corrected to correctly locate
the Xalan/Xerces jars  and will work as is for a source or binary release and JDK 1.3, 1.4 or 1.5

> 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, XalanSqlExt-Samples.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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2183) Classpath and database problems for new Derby database samples

Posted by "Yash Talwar (JIRA)" <xa...@xml.apache.org>.
    [ 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2183) Classpath and database problems for new Derby database samples

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANJ-2183?page=comments#action_12317895 ] 

Brian Minchau commented on XALANJ-2183:
---------------------------------------

I verified that XalanSQLSamples-DocUpdates.patch is already applied to CVS,
and the change in the documentation looks OK to me.

> 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, XalanSQLSamples-DocUpdates.patch, XalanSqlExt-Samples.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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org