geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Katia Aresti Gonzalez" <kaare...@hotmail.com>
Subject Re: Location of Database driver
Date Thu, 09 Jun 2005 08:21:48 GMT
<html><div style='background-color:'><DIV class=RTE>
<P>Hi!!</P>
<P>I think that this might help you. To deploy the connection pool just for a web module,
the only diference between&nbsp;a pool deployed as a server scope is how you deploy the
database-plan.xml.</P>
<P>The oracle driver must be at the repository/oracle/jars/ on the installation directory.
You have to do a new folder and copy the driver there.&nbsp;Then, you write a oracle-plan.xml.
</P>
<P>If you want to deploy as server scope, then you have to deploy like this:</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-layout-grid-align:
none" align=center><SPAN lang=ES-TRAD style="FONT-FAMILY: Courier; mso-ansi-language:
ES-TRAD"><FONT size=2>java -jar bin/deployer.jar deploy oracle-plan.xml \<?xml:namespace
prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-layout-grid-align:
none" align=center><SPAN lang=ES-TRAD style="FONT-FAMILY: Courier; mso-ansi-language:
ES-TRAD"><FONT size=2>repository/tranql/rars/tranql-connector-1.0-M3.rar<o:p></o:p></FONT></SPAN></P>
<P class=TablaPFC style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: justify; mso-layout-grid-align:
none; mso-list: none; tab-stops: 35.4pt"><SPAN lang=ES-TRAD style="FONT-FAMILY: 'Times
New Roman'"><FONT size=2></FONT></SPAN>&nbsp;</P>
<P class=TablaPFC style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: justify; mso-layout-grid-align:
none; mso-list: none; tab-stops: 35.4pt"><SPAN lang=ES-TRAD style="FONT-FAMILY: 'Times
New Roman'"><FONT size=3>If you&nbsp;want to deploy as application scope you
have to include at&nbsp;the EAR the oracle-plan.xml, and&nbsp;add this reference at
geronimo-application.xml:</FONT></SPAN></P><SPAN lang=ES-TRAD style="FONT-FAMILY:
'Times New Roman'">
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align:
none" align=left><B><SPAN lang=EN style="FONT-FAMILY: Courier; mso-ansi-language:
EN"><FONT size=2></FONT></SPAN></B>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align:
none" align=left><B><SPAN lang=EN style="FONT-FAMILY: Courier; mso-ansi-language:
EN"><FONT size=2>META-INF/geronimo-application.xml<o:p></o:p></FONT></SPAN></B></P>
<P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN style="FONT-FAMILY:
Courier; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt"><FONT size=2>&nbsp;<o:p></o:p></FONT></SPAN></P>
<P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN style="FONT-FAMILY:
Courier; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt"><FONT size=2>&lt;application<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align:
none" align=left><SPAN lang=EN style="FONT-SIZE: 8pt; FONT-FAMILY: Courier; mso-ansi-language:
EN; mso-bidi-font-size: 10.0pt">xmlns="http://geronimo.apache.org/xml/ns/j2ee/application"<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align:
none" align=left><SPAN lang=EN style="FONT-SIZE: 8pt; FONT-FAMILY: Courier; mso-ansi-language:
EN; mso-bidi-font-size: 10.0pt">configId="MyApplication"&gt;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 35.4pt; TEXT-ALIGN: left; mso-layout-grid-align:
none" align=left><SPAN lang=EN style="FONT-SIZE: 8pt; FONT-FAMILY: Courier; mso-ansi-language:
EN; mso-bidi-font-size: 10.0pt">&lt;module&gt;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 35.4pt; TEXT-INDENT: 35.4pt; TEXT-ALIGN:
left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="FONT-SIZE: 8pt; FONT-FAMILY:
Courier; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt">&lt;connector&gt;tranql-connector-1.0-SNAPSHOT.rar&lt;/connector&gt;</SPAN><SPAN
lang=EN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN; mso-bidi-font-size:
10.0pt"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 35.4pt; TEXT-INDENT: 35.4pt; TEXT-ALIGN:
left; mso-layout-grid-align: none" align=left><B><SPAN lang=EN style="FONT-SIZE:
8pt; FONT-FAMILY: Courier; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt">&lt;alt-dd&gt;database-plan.xml&lt;/alt-dd&gt;<o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 35.4pt; TEXT-ALIGN: left; mso-layout-grid-align:
none" align=left><SPAN lang=EN style="FONT-SIZE: 8pt; FONT-FAMILY: Courier; mso-ansi-language:
EN; mso-bidi-font-size: 10.0pt">&lt;/module&gt;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align:
none" align=left><SPAN lang=EN style="FONT-SIZE: 8pt; FONT-FAMILY: Courier; mso-ansi-language:
EN; mso-bidi-font-size: 10.0pt">&lt;/application&gt;</SPAN><SPAN lang=EN
style="FONT-FAMILY: Courier; mso-ansi-language: EN"><o:p></o:p></SPAN></P>
<P class=TablaPFC style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: justify; mso-layout-grid-align:
none; mso-list: none; tab-stops: 35.4pt"></SPAN><SPAN lang=ES-TRAD style="FONT-FAMILY:
'Times New Roman'"><FONT size=2>&nbsp;<o:p></o:p></FONT></SPAN></P>
<P>
<P>If&nbsp;you want to deploy&nbsp;just as web app scope, then when you deploy
you web app, what you have to do is include on the geronimo-jetty.xml the oracle-plan.xml
and a external reference to the tranql.rar, and deploy the web app normal.&nbsp;Like this:</P>
<P><B><SPAN lang=EN style="FONT-FAMILY: 'Courier New'; mso-ansi-language: EN"><FONT
size=2>WEB-INF/geronimo-jetty.xml<o:p></o:p></FONT></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align:
none" align=left><SPAN lang=EN style="FONT-SIZE: 8pt; FONT-FAMILY: Courier; mso-ansi-language:
EN; mso-bidi-font-size: 10.0pt">&lt;web-app xmlns="http://geronimo.apache.org/xml/ns/web/jetty"<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align:
none" align=left><SPAN lang=EN style="FONT-SIZE: 8pt; FONT-FAMILY: Courier; mso-ansi-language:
EN; mso-bidi-font-size: 10.0pt">xmlns:naming="http://geronimo.apache.org/xml/ns/naming"<o:p></o:p></SPAN></P>
<P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN style="FONT-FAMILY:
Courier; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt"><FONT size=2>...&gt;<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align:
none" align=left><SPAN lang=EN style="FONT-SIZE: 8pt; FONT-FAMILY: Courier; mso-ansi-language:
EN; mso-bidi-font-size: 10.0pt">...<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align:
none" align=left><SPAN lang=EN style="FONT-SIZE: 8pt; FONT-FAMILY: Courier; mso-ansi-language:
EN; mso-bidi-font-size: 10.0pt">&lt;resource&gt;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 35.4pt; TEXT-ALIGN: left; mso-layout-grid-align:
none" align=left><SPAN lang=EN style="FONT-SIZE: 8pt; FONT-FAMILY: Courier; mso-ansi-language:
EN; mso-bidi-font-size: 10.0pt">&lt;external-rar&gt;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 35.4pt; TEXT-INDENT: 35.4pt; TEXT-ALIGN:
left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="FONT-SIZE: 8pt; FONT-FAMILY:
Courier; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt">tranql/rars/tranql-connector-1.0-SNAPSHOT.rar<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 35.4pt; TEXT-ALIGN: left; mso-layout-grid-align:
none" align=left><SPAN lang=EN style="FONT-SIZE: 8pt; FONT-FAMILY: Courier; mso-ansi-language:
EN; mso-bidi-font-size: 10.0pt">&lt;/external-rar&gt;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 35.4pt; TEXT-ALIGN: left; mso-layout-grid-align:
none" align=left><SPAN lang=EN style="FONT-SIZE: 8pt; FONT-FAMILY: Courier; mso-ansi-language:
EN; mso-bidi-font-size: 10.0pt">&lt;connector&gt;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align:
none" align=left><B><SPAN lang=EN style="FONT-SIZE: 8pt; FONT-FAMILY: Courier;
mso-ansi-language: EN; mso-bidi-font-size: 10.0pt"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</SPAN></SPAN></B><B><SPAN lang=EN style="FONT-SIZE: 8pt; FONT-FAMILY:
Wingdings; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Courier;
mso-hansi-font-family: Courier; mso-char-type: symbol; mso-symbol-font-family: Wingdings"><SPAN
style="mso-char-type: symbol; mso-symbol-font-family: Wingdings">ß</SPAN></SPAN></B><B><SPAN
lang=ES-TRAD style="FONT-SIZE: 8pt; FONT-FAMILY: Courier; mso-ansi-language: ES-TRAD; mso-bidi-font-size:
10.0pt">here oracle-plan.xml</SPAN></B><B><SPAN lang=ES-TRAD style="FONT-SIZE:
8pt; FONT-FAMILY: Wingdings; mso-ansi-language: ES-TRAD; 
mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Courier; mso-hansi-font-family: Courier;
mso-char-type: symbol; mso-symbol-font-family: Wingdings"><SPAN style="mso-char-type:
symbol; mso-symbol-font-family: Wingdings">à</SPAN></SPAN></B><B><SPAN
lang=ES-TRAD style="FONT-SIZE: 8pt; FONT-FAMILY: Courier; mso-ansi-language: ES-TRAD; mso-bidi-font-size:
10.0pt"><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 35.4pt; TEXT-ALIGN: left; mso-layout-grid-align:
none" align=left><SPAN lang=EN style="FONT-SIZE: 8pt; FONT-FAMILY: Courier; mso-ansi-language:
EN; mso-bidi-font-size: 10.0pt">&lt;/connector&gt;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align:
none" align=left><SPAN lang=EN style="FONT-SIZE: 8pt; FONT-FAMILY: Courier; mso-ansi-language:
EN; mso-bidi-font-size: 10.0pt">&lt;/resource&gt;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align:
none" align=left><SPAN lang=EN style="FONT-SIZE: 8pt; FONT-FAMILY: Courier; mso-ansi-language:
EN; mso-bidi-font-size: 10.0pt">&lt;/web-app&gt;</SPAN><SPAN lang=EN style="FONT-FAMILY:
Courier; mso-ansi-language: EN"><o:p></o:p></SPAN></P>
<P>Hope this helps.</P>
<P>Katia<BR></P></P><BR><BR><BR>&gt;From: waimun
&lt;waimun@dev.java.net&gt;<BR>&gt;Reply-To: user@geronimo.apache.org<BR>&gt;To:
user@geronimo.apache.org<BR>&gt;Subject: Re: Location of Database driver<BR>&gt;Date:
Wed, 8 Jun 2005 19:00:43 -0400<BR>&gt;<BR>&gt;I am modifying the default-database-plan
by inserting another <BR>&gt;dependency for the oracle jar directory. I feel that
this might be <BR>&gt;wrong as I only need the jar file to be exposed in the web
context. <BR>&gt;I am still getting the NoClassDefFound. How do I do this in the
plan <BR>&gt;file?<BR>&gt;<BR>&gt;Thanks,<BR>&gt;waimun<BR>&gt;<BR>&gt;On
Jun 3, 2005, at 7:11 PM, David Jencks wrote:<BR>&gt;<BR>&gt;&gt;I
can't find your previous posts.<BR>&gt;&gt;You need to include a dependency
to the driver jar in your plan.&nbsp;&nbsp;<BR>&gt;&gt;For instance,
default-database-plan has dependencies on the axion <BR>&gt;&gt;jar 
and 3 other jars it needs.&nbsp;&nbsp;For oracle you should need only the <BR>&gt;&gt;oracle
driver jar.&nbsp;&nbsp;If this doesn't fix the problem please post <BR>&gt;&gt;your
entire plan.<BR>&gt;&gt;<BR>&gt;&gt;thanks<BR>&gt;&gt;david
jencks<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;On Jun
3, 2005, at 2:45 PM, waimun wrote:<BR>&gt;&gt;<BR>&gt;&gt;&gt;Hi...<BR>&gt;&gt;&gt;I
am still getting NoClassDefFound. Do I need any other <BR>&gt;&gt;&gt;configuration
other than creating the directory structure you have <BR>&gt;&gt;&gt;mentioned.<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;Thanks.<BR>&gt;&gt;&gt;--<BR>&gt;&gt;&gt;waimun<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;On
6/1/05, Katia Aresti Gonzalez &lt;kaaresti@hotmail.com&gt; wrote:<BR>&gt;&gt;&gt;
&gt;<BR>&gt;&gt;&gt; &gt;<BR>&gt;&gt;&gt; &gt;<BR>&gt;&gt;&gt;
&gt; Hi!!<BR>&gt;&gt;&gt; &gt;<BR>&gt;&gt;&gt;
&gt; I think that you have to copy the driver to the 
repository <BR>&gt;&gt;&gt;directory. You<BR>&gt;&gt;&gt;
&gt; have to create a folder in the repository of the M4 instalation <BR>&gt;&gt;&gt;folder,
for<BR>&gt;&gt;&gt; &gt; example oracle. inside that folder, create
another one with the <BR>&gt;&gt;&gt;name jar,<BR>&gt;&gt;&gt;
&gt; and copy the driver there.<BR>&gt;&gt;&gt; &gt;<BR>&gt;&gt;&gt;
&gt; repostory/oracle/jars/your driver.<BR>&gt;&gt;&gt; &gt;<BR>&gt;&gt;&gt;
&gt; Hope this helps!!<BR>&gt;&gt;&gt; &gt;<BR>&gt;&gt;&gt;
&gt; Katia<BR>&gt;&gt;&gt; &gt;<BR>&gt;&gt;&gt;<BR>&gt;&gt;<BR>&gt;<BR></DIV></div><br
clear=all><hr>Acepta el reto MSN Premium: Envía hasta 500 megas diarios de fotos
desde Hotmail. <a href="http://g.msn.com/8HMBESES/2743??PS=47575" target="_top">Descárgalo
y pruébalo 2 meses gratis.</a> </html>


Mime
View raw message