Bug 778052 (SOA-578) - When setting oracle10g as the sourcedir, cannot find the directory with oracle-ds.xml
Summary: When setting oracle10g as the sourcedir, cannot find the directory with oracl...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-578
Product: JBoss Enterprise SOA Platform 4
Classification: JBoss
Component: Configuration
Version: 4.2 CP01
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.2 CP02
Assignee: trev
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-06-12 15:03 UTC by tcunning
Modified: 2008-06-13 16:49 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-06-13 16:49:20 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SOA-578 0 None None None Never

Description tcunning 2008-06-12 15:03:58 UTC
Date of First Response: 2008-06-12 16:18:09
project_key: SOA

Error in the schema script when setting database to oracle10g

execute:
     [echo] JBoss SOA Platform (for EAP)
     [echo] ------------------
     [echo] Database Configuration Script
     [echo]  
     [echo] This script is used to configure the SOA platform and all it's constituent components
     [echo] against a new RDBMS. Deployment scripts are currently available for the following
     [echo] databases: MySQL, Oracle9i, PostgresSQL, Oracle10g
     [echo] ------------------
     [echo]  
    [input] skipping input as property org.jboss.esb.server.config has already been set.
    [input] skipping input as property source.dir has already been set.
    [input] skipping input as property db.name has already been set.
    [input] skipping input as property db.hostname has already been set.
    [input] skipping input as property db.port has already been set.
    [input] skipping input as property db.username has already been set.
    [input] skipping input as property db.password has already been set.
   [delete] Deleting 2 files from /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy
     [copy] Copying 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/lib
     [copy] Copying 3 files to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/tools/schema/oracle10g/sql
     [copy] Copying 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy
     [copy] Copying 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jboss-messaging.sar
     [copy] Copying 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/uuid-key-generator.sar/META-INF
     [copy] Copying 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jboss-messaging.sar
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jboss-messaging.sar
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jboss-messaging.sar
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jboss-messaging.sar
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jboss-messaging.sar
     [copy] Copying 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbossesb.sar
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbossesb.sar
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbossesb.sar
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbossesb.sar
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbossesb.sar
     [copy] Copying 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbpm.esb
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbpm.esb
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbpm.esb
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbpm.esb
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbpm.esb
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbpm.esb
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbpm.esb
     [copy] Copying 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbossesb.esb
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbossesb.esb
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbossesb.esb
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbossesb.esb
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbossesb.esb
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbpm.esb
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbpm.esb
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbpm.esb
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbpm.esb
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbpm.esb
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbpm.esb
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbossesb.sar
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbossesb.sar
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbpm.esb
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbpm.esb
     [copy] Copying 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/tools/console/management-esb
     [copy] Copying 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/tools/console/management-esb
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/tools/console/management-esb
     [move] Moving 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/tools/console/management-esb
     [copy] Copying 1 file to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/tools/console/management-esb/src/main/resources/oracle/management-ds.xml

BUILD FAILED
/Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/tools/schema/build.xml:274: Failed to copy /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/tools/schema/oracle10g/template/oracle-ds.xml to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/tools/console/management-esb/src/main/resources/oracle/management-ds.xml/oracle-ds.xml due to /Users/tcunning/Downloads/soa/jboss-soa-p.4.2.0/jboss-as/tools/console/management-esb/src/main/resources/oracle/management-ds.xml/oracle-ds.xml (Not a directory)

Comment 1 tcunning 2008-06-12 15:30:33 UTC
(todir should change to tofile)

        <!-- Configure default datasource -->
        <copy file="${source.dir}/template/${org.jboss.esb.server.database}-ds.x
ml"
              todir="../console/management-esb/src/main/resources/${org.jboss.esb.server.database}/management-ds.xml"
              overwrite="true"> 

should change to :

        <!-- Configure default datasource -->
        <copy file="${source.dir}/template/${org.jboss.esb.server.database}-ds.x
ml"
              tofile="../console/management-esb/src/main/resources/${org.jboss.esb.server.database}/management-ds.xml"
              overwrite="true">

Comment 2 Len DiMaggio 2008-06-12 20:18:09 UTC
Yup - seeing the same thing:

BUILD FAILED
/opt/CP02/jboss-soa-p.4.2.0/jboss-as/tools/schema/build.xml:274: Failed to copy /opt/CP02/jboss-soa-p.4.2.0/jboss-as/tools/schema/oracle10g/template/oracle-ds.xml to /opt/CP02/jboss-soa-p.4.2.0/jboss-as/tools/console/management-esb/src/main/resources/oracle/management-ds.xml/oracle-ds.xml due to java.io.FileNotFoundException /opt/CP02/jboss-soa-p.4.2.0/jboss-as/tools/console/management-esb/src/main/resources/oracle/management-ds.xml/oracle-ds.xml (Not a directory)



Comment 3 trev 2008-06-13 10:40:22 UTC
   changed in embedded version

    <!-- Configure default datasource -->
        <copy file="${source.dir}/template/${org.jboss.esb.server.database}-ds.xml"
              tofile="../console/management-esb/src/main/resources/${org.jboss.esb.server.database}/management-ds.xml"
              overwrite="true">        <!-- Configure default datasource -->

changed in standalone version

        <copy file="${source.dir}/template/${org.jboss.esb.server.database}-ds.xml"
              tofile="../console/management-esb/src/main/resources/${org.jboss.esb.server.database}/management-ds.xml"
              overwrite="true">


Comment 4 trev 2008-06-13 16:49:20 UTC
tested by tcunningham


Note You need to log in before you can comment on or make changes to this bug.