Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 71820 invoked from network); 26 Nov 2005 06:25:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Nov 2005 06:25:49 -0000 Received: (qmail 36024 invoked by uid 500); 26 Nov 2005 06:25:48 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 36012 invoked by uid 500); 26 Nov 2005 06:25:47 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 36000 invoked by uid 99); 26 Nov 2005 06:25:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Nov 2005 22:25:47 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of bkbonner@gmail.com designates 66.249.82.194 as permitted sender) Received: from [66.249.82.194] (HELO xproxy.gmail.com) (66.249.82.194) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Nov 2005 22:27:18 -0800 Received: by xproxy.gmail.com with SMTP id t12so577099wxc for ; Fri, 25 Nov 2005 22:25:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LGg9a1rdyq5qjCwI9jPjQeVRlw8+jzS74JLJnQLT7AbKmD1MDPfp4VBo3hJ+4Ipw4KdqfphIXPqg09AYtyhaHZTYvDDntSZAgIEYUjVo7hkFTamqMx0LK0di+07uwc+k209S0Xui5CIgSCaM1koaICSlp8tfQWcvucik9tRmHRA= Received: by 10.70.23.5 with SMTP id 5mr7474238wxw; Fri, 25 Nov 2005 22:25:26 -0800 (PST) Received: by 10.70.7.18 with HTTP; Fri, 25 Nov 2005 22:25:26 -0800 (PST) Message-ID: Date: Sat, 26 Nov 2005 01:25:26 -0500 From: Brian Bonner Reply-To: bkbonner@gmail.com To: user@geronimo.apache.org Subject: Re: deploying a database plan In-Reply-To: <74e15baa0511252155g33564448p99ecc3ed40c54428@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <74e15baa0511240633w5c24a0ebm3c0ae0590b15f3ad@mail.gmail.com> <74e15baa0511240741p1206660bh755f070f7a041593@mail.gmail.com> <74e15baa0511252155g33564448p99ecc3ed40c54428@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Aaron, the eclipse XML Builder was giving me errors saying that it wasn't valid. Only when I put it in the container-config did it not give me an error. I'll look at the xsd and post what I find. I'll open up a gira with my web.xml and geronimo-web.xml. Thanks. Brian On 11/26/05, Aaron Mulder wrote: > I don't think you should have the container-config element in your > geronimo-web.xml (the nameing:resource-ref should just be at the top > level). In fact, I'm not sure why we're not rejecting that as a bad > deployment plan. Could you file a JIRA with your web.xml and > geronimo-web.xml and note that you're not getting a helpful deployment > error? I'd like to make sure someone looks at the underlying problem. > > Thanks, > Aaron > > On 11/26/05, Brian Bonner wrote: > > Aaron, thanks (and thanks for sending it to the list) My bad. > > > > I was able to get it deployed ok. I'm now running into a wierd > > problem. I'm trying to deploy my app, but I get: > > > > C:\mvneclipse\target>deploy deploy paraware-1.0-SNAPSHOT.war > > > > Error: Unable to distribute paraware-1.0-SNAPSHOT.war: > > Unable to resolve resource reference 'jdbc/DB' (no matching > > resources found) > > > > > > > > > xmlns:sys=3D"http://geronimo.apache.org/xml/ns/deployment-1.0" > > xmlns:naming=3D"http://geronimo.apache.org/xml/ns/naming-1.0" > > xmlns:security=3D"http://geronimo.apache.org/xml/ns/security-1.= 0" > > configId=3D"com/paraware/TestService" parentId=3D"org/apache/ge= ronimo/ > > Server"> > > > > test > > true > > > > > > jdbc/DB > > > > AS400Datasource > > > > > > > > > > > > My web.xml file includes: > > > > > > jdbc/DB > > javax.sql.DataSource > > Container > > Shareable > > > > > > > > > > I ran the debugConsole and received: > > > > # J2EEApplication=3Dnull,J2EEServer=3Dgeronimo,j2eeType=3DResourceAdap= terModule,name=3Dnet/sf/jt400 > > [running] > > # J2EEApplication=3Dnull,J2EEServer=3Dgeronimo,j2eeType=3DResourceAdapt= erModule,name=3Dorg/apache/geronimo/SystemDatabase > > [running] > > # J2EEApplication=3Dnull,J2EEServer=3Dgeronimo,j2eeType=3DResourceAdapt= erModule,name=3Dorg/apache/geronimo/SystemJMS > > [running] > > # J2EEApplication=3Dnull,J2EEServer=3Dgeronimo,j2eeType=3DWebModule,nam= e=3Dorg/apache/geronimo/applications/Welcome/Tomcat > > [running] > > # J2EEApplication=3Dnull,J2EEServer=3Dgeronimo,j2eeType=3DWebModule,nam= e=3Dorg/apache/geronimo/DebugConsole > > [running] > > # J2EEApplication=3Dnull,J2EEServer=3Dgeronimo,JCAResource=3Dnet/sf/jt4= 00,j2eeType=3DJCAConnectionFactory,name=3DAS400DataSource > > [running] > > # J2EEApplication=3Dnull,J2EEServer=3Dgeronimo,JCAResource=3Dnet/sf/jt4= 00,j2eeType=3DJCAConnectionManager,name=3DAS400DataSource > > [running] > > # J2EEApplication=3Dnull,J2EEServer=3Dgeronimo,JCAResource=3Dnet/sf/jt4= 00,j2eeType=3DJCAManagedConnectionFactory,name=3DAS400DataSource > > [running] > > > > > > It looks like the match is there, but I'm still getting the error. Any= ideas? > > > > Brian > > > > > > > > On 11/24/05, Aaron Mulder wrote: > > > On 11/24/05, Brian Bonner wrote: > > > > Aaron, I looked at the tomcat switch. The only difference I saw > > > > between config.jetty.xml and config.tomcat.xml was the ports that e= ach > > > > were run on (e.g for http 8080 being the default for each config an= d > > > > 8090 being what the other 'jetty or tomcat' was running on). Or di= d I > > > > miss something? > > > > > > > > Anyway, I copied config.tomcat.xml over config.xml and copied > > > > config.tomcat.list over config.list. > > > > I tried the command again: > > > > I got this error: > > > > > > > > deploy deploy C:\geronimo-1.0-M5\repository\tranql\rars\tranql-conn= ector-1.0.rar > > > > geronimo-ra.xml > > > > Error: Unable to distribute tranql-connector-1.0.rar: No builde= r > > > > found for namespace: > > > > http://geronimo.apache.org/xml/ns/j2ee/connector-1.0 or default > > > > namespace: http://geronimo.apache.org/xml/ns/j2ee/web/jetty-1.0 > > > > > > There should also be a difference in the defaultNamespace attribute > > > for the WebBuilder GBean in the o/a/g/RuntimeDeployer configuration. > > > In fact, that should be affecting the error message (where it says "o= r > > > default namespace: > > > http://geronimo.apache.org/xml/ns/j2ee/web/jetty-1.0", that should be > > > ...tomcat-1.0). Can you stop your server and check the > > > var/config/config.xml and check the WebBuilder attributes? If it > > > still says Jetty, can you try copying config.tomcat.xml over > > > config.xml again while the server is definitely shut down and then tr= y > > > it again? I don't see how it's still reporting a default of Jetty if > > > the Tomcat config.xml is in place (unelss maybe you copied it while > > > the server was running, in which case it may have just been > > > overwritten). > > > > > > Thanks, > > > Aaron > > > > > > > Here's the list from deploy list-modules: > > > > > > > > Found 33 modules > > > > + org/apache/geronimo/applications/Welcome/Tomcat @ http://L3B759= 4:8090/ > > > > + org/apache/geronimo/Tomcat > > > > + org/apache/geronimo/RMINaming > > > > + org/apache/geronimo/ActiveMQServer > > > > + org/apache/geronimo/TomcatRuntimeDeployer > > > > + org/apache/geronimo/Server > > > > + org/apache/geronimo/Security > > > > + org/apache/geronimo/SystemDatabase > > > > + org/apache/geronimo/SystemJMS > > > > + org/apache/geronimo/RuntimeDeployer > > > > + org/apache/geronimo/Console/Tomcat > > > > `-> geronimo-console-standard-1.0-M5.war @ http://L3B7594:809= 0/console-sta > > > > ndard > > > > `-> geronimo-console-framework-1.0-M5.war @ http://L3B7594:80= 90/console > > > > + org/apache/geronimo/System > > > > org/apache/geronimo/juddiServer/1.0-M5/Jetty > > > > org/apache/geronimo/Jetty > > > > org/apache/geronimo/SampleSecurityRealm > > > > org/apache/geronimo/DefaultDatabase > > > > org/apache/geronimo/SpringDeployer > > > > org/apache/geronimo/DebugConsole > > > > org/apache/geronimo/DeployerSystem > > > > org/apache/geronimo/ClientSystem > > > > org/apache/geronimo/ClientSecurity > > > > org/apache/geronimo/Client > > > > org/apache/geronimo/ClientCORBA > > > > org/apache/geronimo/applications/Welcome/Jetty > > > > org/apache/geronimo/Demo > > > > org/apache/geronimo/SpringRuntime > > > > org/apache/geronimo/ServerCORBA > > > > org/apache/geronimo/Directory > > > > org/apache/geronimo/OfflineDeployer > > > > org/apache/geronimo/juddiServer/1.0-M5/Tomcat > > > > org/apache/geronimo/Console/Jetty > > > > org/apache/geronimo/JettyRuntimeDeployer > > > > net/sf/jt400 > > > > > > > > I presume the + indicates that it's running and the > > > > TomcatRuntimeDeployer and RuntimeDeployer are both running. > > > > > > > > Thanks. > > > > > > > > On 11/24/05, Brian Bonner wrote: > > > > > Hi, Aaron. > > > > > On 11/24/05, Aaron Mulder wrote: > > > > > > On 11/24/05, Brian Bonner wrote: > > > > > > > Hi, I'm relatively new. I've been doing reading and I want t= o deploy > > > > > > > a datasource using this plan: > > > > > > > > > > > > > > > > > > > > > > > > > > > xmlns:sys=3D"http://geronimo.apache.org/xml/ns/deploy= ment-1.0" > > > > > > > xmlns:naming=3D"http://geronimo.apache.org/xml/ns/nam= ing-1.0" > > > > > > > configId=3D"net/sf/jt400" > > > > > > > parentId=3D"org/apache/geronimo/Server"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > = javax.sql.DataSource > > > > > > > > > > > > > > AS400Datasource= > > > > > > > user > > > > > > > demo > > > > > > > > > > > > > > com.ibm.as400= .access.AS400JDBCDriver > > > > > > > > > > > > > > > > > > > > > jdbc:as400:19= 2.168.1.15 > > > > > > > > > > > > > > > > > > > > > true > > > > > > > > > > > > > > > > > > > > > org.tranql.co= nnector.NoExceptionsAreFatalSorter > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 10 > > > > > > > 0 > > > > > > > 5000 > > > > > > > 30 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I copied tranql-connector-1.0.rar from the /repository/tranql= /rars > > > > > > > directory and placed it in the same directory as my plan. Is= this > > > > > > > required? > > > > > > > > > > > > You don't need to copy the RAR. For example, if you ran this f= rom the > > > > > > Geronimo install directory, you could run "java -jar deployer.j= ar > > > > > > deploy plan.xml repository/tranql/rars/tranql-connection-1.0.ra= r" > > > > > > > > > > > > > Am I using the correct namespaces to validate the database pl= an? > > > > > > > > > > > > That looks like the correct namespace for M5 and beyond. > > > > > Thanks. I wanted to make sure. For some odd reason, I'm not get= ting > > > > > content assist (in Eclipse) for the sys:dependency in the connect= or. > > > > > > > > > > > > > Is this the correct way to generate the datasource on the ser= ver? > > > > > > > > > > > > If you have a source build, there's a portlet in the console th= at can > > > > > > walk you through the process (but it's new since M5). > > > > > I'm using M5. > > > > > > > > > > > > > Is there a way to reference the rar on the server? > > > > > > > > > > > > > > I run this command and I get this error: > > > > > > > deploy --user system --password manager deploy > > > > > > > tranql-connector-1.0.rar geronimo-ra.xml > > > > > > > Error: Unable to distribute tranql-connector-1.0.rar: No = builder > > > > > > > found for namespace: > > > > > > > http://geronimo.apache.org/xml/ns/j2ee/connector-1.0 or d= efault > > > > > > > namespace: http://geronimo.apache.org/xml/ns/j2ee/web/jet= ty-1.0 > > > > > > > > > > > > It sounds like perhaps the connector deployer isn't running? > > > > > > > > > > > > > I have started the tomcat instance and stopped jetty on the s= erver > > > > > > > manually using deploy. > > > > > > > > > > > > Well, this might have caused you trouble. I think the deployer= is > > > > > > configured to run against Tomcat or Jetty, whichever the server > > > > > > shipped with. So if you just disable one and enable the other = your > > > > > > web apps are likely to be deployed the wrong way. The best way= to > > > > > > switch between Tomcat and Jetty is to copy over the > > > > > > "config.product.xml" to "config.xml" in geronimo/var/config whi= le the > > > > > > server is not running -- though that will have the side effect = of > > > > > > resetting the list of running applications next time you start = the > > > > > > server (so you may have to restart some of them). > > > > > > > > > > > > I'm not sure why this would have affected the connector deploye= r, > > > > > > unless maybe you stopped more that you realize. Can you run "j= ava > > > > > > -jar deployer.jar list-modules" and post the output? It should= show > > > > > > o/a/g/RuntimeDeployer and o/a/g/(WebServer)RuntimeDeployer as r= unning. > > > > > > > > > > > > Aaron > > > > > > > > > > > > P.S. If you have a source build, you can also run "java -jar > > > > > > deployer.jar login" so you don't have to put the username and p= assword > > > > > > on the command line every time. > > > > > > > > > > I have since put things back the way they were (default Geronimo > > > > > 1.0M5) w/o switching to tomcat (since I obviously screwed it up).= I > > > > > ran the deploy and it worked. I'm going to go back and made the > > > > > switch I did to see what I messed up. > > > > > > > > > > I'll verify if the deployer's running. I'm pretty sure it was wh= en I > > > > > did a list-modules, but I could be wrong. > > > > > > > > > > btw, I've been using your book (PDF) on M4 for guidance. It's be= en helpful. > > > > > > > > > > > > > Any help would be appreciated. > > > > > > > > > > > > > > Thanks. > > > > > > > > > > > > > > Brian > > > > > > > > > > > > > > > > > > > > > > > > > > > >