[Users] "Cannot load JDBC driver class" when using bc-sql
rnaudin
roland.naudin at ebmwebsourcing.com
Wed Mar 16 10:37:16 CET 2011
Use ant like that:
Code:
<project name="ant tasks" default="install">
<taskdef resource="org/ow2/petals/ant/petals-ant.properties" />
<!-- properties -->
<property name="repo.url" value="." />
<property name="host1.port" value="7700" />
<property name="host1.ip" value="localhost" />
<property name="host1.username" value="petals" />
<property name="host1.password" value="petals" />
<!-- Targets -->
<target name="install">
<!-- server 1 -->
<!-- Example of a configuration of a component that need a shared library (SQL) -->
<jbi-install-shared-library file="${repo.url}${file.separator}sls${file.separator}petals-sl-mysql-5.1.5.zip"
port="${host1.port}"
host="${host1.ip}"
username="${host1.username}"
password="${host1.password}" />
<petals-configure-component file="${repo.url}${file.separator}components${file.separator}petals-bc-sql-1.0.zip"
outputFile="${repo.url}${file.separator}temp${file.separator}petals-bc-sql-1.0.zip">
<sharedlibrary file="${repo.url}${file.separator}sls${file.separator}petals-sl-mysql-5.1.5.zip" />
</petals-configure-component>
<jbi-install-component file="${repo.url}${file.separator}temp${file.separator}petals-bc-sql-1.0.zip"
port="${host1.port}"
host="${host1.ip}"
username="${host1.username}"
password="${host1.password}" />
<jbi-start-component name="petals-bc-sql"
port="${host1.port}"
host="${host1.ip}"
username="${host1.username}"
password="${host1.password}" />
</target>
</project>
Put the SLs you need and the component in the appropriate directories.
You need to put in the classpath of your ant ($ANT_HOME/lib) the jars:
-geronimo-activation_1.1_spec.jar
-geronimo-stax-api_1.0_spec.jar
-jaxb-api-2.1.jar
-jaxb-impl-2.1.8.jar
-petals-ant-2.1.jar
-petals-jbi-1.0.1.jar
-petals-jbi-descriptor-2.0.1.jar
-petals-jmx-1.6.jar
-petals-jmx-api-1.2.2.jar
[Rolling Eyes]
-------------------- m2f --------------------
Subscribe/Unsubscribe emails notifications.
Response to this email will be posted on the Petals forum.
Please delete the existing text before responding :)
Read the topic online:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=30322#30322
-------------------- m2f --------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20110316/439393ef/attachment.htm>
More information about the Users
mailing list