<New id="DSTest" class="org.mortbay.jetty.plus.naming.Resource"> <Arg></Arg> <Arg>jdbc/DSTest</Arg> <Arg> <New class="oracle.jdbc.pool.OracleConnectionPoolDataSource"> <Set name="URL">jdbc:oracle:thin:@localhost:1521:orcl</Set> <Set name="User">user</Set> <Set name="Password">pass</Set> </New> </Arg> </New> Regards, Ivo
Good to hear you're making progress. Hope you'll get there.
> At first I
> was a little confused by the command typos so for future reference to
> anyone reading, the command I used was:
>
> mvn -D maven.test.skip=true package
>
Strange. They weren't really typos. Don't know what went wrong there.
Thanks for the correction.
> I know that my development methodology is not what
> Webical intends but changing the database type doesn't seem to be as
> seamless.
>
I thought it would be less involved indeed. I've changed around the
settings a bit in the past (postgress, derby and hsqldb) and that went
without any effort beside changing the configuration a bit. I didn't
think that oracle had so much quirks. But I haven't really made use of
it since version 8 or so.
> Perhaps someone could point me in the right direction as to what I
> would need to change depending on the scenarios (test, QA, Dev, Prod)
> and maybe what maven tasks to run etc. Thanks for any help and
> invested time.
>
Well, there is a standard way of doing this indeed. I suggest you read
up a bit on maven as the problems you are encountering so far are really
basic maven stuff. But on the other hand, you can always ask here, it's
no problem to help out.
They way we go about managing the different configurations is through
the use of maven profiles. The configurations can be found under /etc.
These are copied over the exploded war before packaging depending on
which profile is selected (default none I think). Activation of a
profile is done through the use of an extra parameter: -Denv=... You can
find out what to use by checking out the profiles section of the pom.xml
file.
If I need to be more specific, just let me know.
Regards,
Ivo van Dongen
<Context path="/webical-refactoring" docBase="webical" debug="5" reloadable="true" crossContext="true"> <!-- The database resource for hibernate --> <Resource name="jdbc/calendarDataBase" auth="Container" type="javax.sql.DataSource" factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory" username="webical" password="webical" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/webical?autoReconnect=true" /> </Context>You need to substitute the driver, url, username and password with your own values depending on your setup. Now for debugging it you have to place debug="99" either on the context or resource element, forgot witch one. Then the logging to catalina.out will be more verbose.