Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 80356 invoked from network); 26 Nov 2005 06:50:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Nov 2005 06:50:11 -0000 Received: (qmail 48266 invoked by uid 500); 26 Nov 2005 06:50:09 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 48252 invoked by uid 500); 26 Nov 2005 06:50:09 -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 48241 invoked by uid 99); 26 Nov 2005 06:50:09 -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:50:09 -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 ammulder@gmail.com designates 64.233.162.194 as permitted sender) Received: from [64.233.162.194] (HELO zproxy.gmail.com) (64.233.162.194) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Nov 2005 22:51:40 -0800 Received: by zproxy.gmail.com with SMTP id 9so807015nzo for ; Fri, 25 Nov 2005 22:49:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=c4rCdtK6HKiCZVjW4vS/4PecuTTJO6V8NNUQvNEKlTtrPpPtjXatS6AVQXtxlkx1RAmMFU3MOrabTYEjf1Ng6Eln4oeTi7XnXGmGcN+eDQnZ13QJK638darLI6Tl8YoqY4AXQ/U4wFosaKv/l4aPLO7V8TGPOzkXUDfPjH8vS+A= Received: by 10.36.221.31 with SMTP id t31mr851465nzg; Fri, 25 Nov 2005 22:49:47 -0800 (PST) Received: by 10.37.13.69 with HTTP; Fri, 25 Nov 2005 22:49:47 -0800 (PST) Message-ID: <74e15baa0511252249h46622209kedf95533eec57b3b@mail.gmail.com> Date: Sat, 26 Nov 2005 01:49:47 -0500 From: Aaron Mulder Sender: ammulder@gmail.com To: user@geronimo.apache.org Subject: Re: deploying a database plan In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <74e15baa0511240741p1206660bh755f070f7a041593@mail.gmail.com> <74e15baa0511252155g33564448p99ecc3ed40c54428@mail.gmail.com> <74e15baa0511252238h6e7ee89ax6663a6569433490e@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N As far as I know you need to use Maven 1.0.2 or 1.1-beta-2. There was also some talk about having proper nightly builds so it wasn't necessary to get the source to have the latest version, but I don't know where that stands. Thanks, Aaron On 11/26/05, Brian Bonner wrote: > Thanks. I stand corrected. I didn't pay close enough attention to > that. I found the group referenced and found resource-ref in the > sequence as you pointed out. I was referring to the files in the > schema directory when I cut/pasted that info. > > I'll look into building it from the source. Is Geronimo supporting M2 > yet? (I hope so) Or do I need to use 1.1beta2 of Maven? (hopefully > not) I saw some posts about this by dblevins in svn. > > Brian > > > On 11/26/05, Aaron Mulder wrote: > > On 11/26/05, Brian Bonner wrote: > > > I meant to say 'jira'. Anyway, I just checked out > > > geronimo-web-1.0.xsd in the schema dir of geronimo-1.0M5. It looks > > > like naming:naming-ref is not a valid top-level element: > > > > naming:resource-ref is in > ref=3D"naming:jndiEnvironmentRefsGroup"/> -- and note that an xs:group > > is literally just a placeholder for a number of other elements, not an > > element itself, so naming:resource-ref really does appear at the top > > level of the file. > > > > Thanks, > > Aaron > > > > > > > > > > > > > > > > maxOccurs=3D"unbounded"/> > > > > > > > > > > > type=3D"xs:boolean" minOccurs=3D"0"/> > > > > > type=3D"web:container-configType" minOccurs=3D"0"/> > > > > > > > > > > > maxOccurs=3D"unbounded"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Maybe this is different in cvs? > > > > > > Brian > > > > > > On 11/26/05, Brian Bonner wrote: > > > > 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 no= t > > > > give me an error. > > > > > > > > I'll look at the xsd and post what I find. I'll open up a gira wit= h > > > > 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 you= r > > > > > 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 deplo= yment > > > > > error? I'd like to make sure someone looks at the underlying pro= blem. > > > > > > > > > > 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/deployme= nt-1.0" > > > > > > xmlns:naming=3D"http://geronimo.apache.org/xml/ns/namin= g-1.0" > > > > > > xmlns:security=3D"http://geronimo.apache.org/xml/ns/sec= urity-1.0" > > > > > > configId=3D"com/paraware/TestService" parentId=3D"org/a= pache/geronimo/ > > > > > > 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=3DReso= urceAdapterModule,name=3Dnet/sf/jt400 > > > > > > [running] > > > > > > # J2EEApplication=3Dnull,J2EEServer=3Dgeronimo,j2eeType=3DResou= rceAdapterModule,name=3Dorg/apache/geronimo/SystemDatabase > > > > > > [running] > > > > > > # J2EEApplication=3Dnull,J2EEServer=3Dgeronimo,j2eeType=3DResou= rceAdapterModule,name=3Dorg/apache/geronimo/SystemJMS > > > > > > [running] > > > > > > # J2EEApplication=3Dnull,J2EEServer=3Dgeronimo,j2eeType=3DWebMo= dule,name=3Dorg/apache/geronimo/applications/Welcome/Tomcat > > > > > > [running] > > > > > > # J2EEApplication=3Dnull,J2EEServer=3Dgeronimo,j2eeType=3DWebMo= dule,name=3Dorg/apache/geronimo/DebugConsole > > > > > > [running] > > > > > > # J2EEApplication=3Dnull,J2EEServer=3Dgeronimo,JCAResource=3Dne= t/sf/jt400,j2eeType=3DJCAConnectionFactory,name=3DAS400DataSource > > > > > > [running] > > > > > > # J2EEApplication=3Dnull,J2EEServer=3Dgeronimo,JCAResource=3Dne= t/sf/jt400,j2eeType=3DJCAConnectionManager,name=3DAS400DataSource > > > > > > [running] > > > > > > # J2EEApplication=3Dnull,J2EEServer=3Dgeronimo,JCAResource=3Dne= t/sf/jt400,j2eeType=3DJCAManagedConnectionFactory,name=3DAS400DataSource > > > > > > [running] > > > > > > > > > > > > > > > > > > It looks like the match is there, but I'm still getting the err= or. 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 port= s that each > > > > > > > > were run on (e.g for http 8080 being the default for each c= onfig and > > > > > > > > 8090 being what the other 'jetty or tomcat' was running on)= . Or did I > > > > > > > > miss something? > > > > > > > > > > > > > > > > Anyway, I copied config.tomcat.xml over config.xml and cop= ied > > > > > > > > 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\tra= nql-connector-1.0.rar > > > > > > > > geronimo-ra.xml > > > > > > > > Error: Unable to distribute tranql-connector-1.0.rar: N= o builder > > > > > > > > found for namespace: > > > > > > > > http://geronimo.apache.org/xml/ns/j2ee/connector-1.0 or= default > > > > > > > > namespace: http://geronimo.apache.org/xml/ns/j2ee/web/j= etty-1.0 > > > > > > > > > > > > > > There should also be a difference in the defaultNamespace att= ribute > > > > > > > for the WebBuilder GBean in the o/a/g/RuntimeDeployer configu= ration. > > > > > > > In fact, that should be affecting the error message (where it= says "or > > > > > > > default namespace: > > > > > > > http://geronimo.apache.org/xml/ns/j2ee/web/jetty-1.0", that s= hould be > > > > > > > ...tomcat-1.0). Can you stop your server and check the > > > > > > > var/config/config.xml and check the WebBuilder attributes? I= f it > > > > > > > still says Jetty, can you try copying config.tomcat.xml over > > > > > > > config.xml again while the server is definitely shut down and= then try > > > > > > > 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:= //L3B7594: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://L3B= 7594:8090/console-sta > > > > > > > > ndard > > > > > > > > `-> geronimo-console-framework-1.0-M5.war @ http://L3= B7594:8090/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 to deploy > > > > > > > > > > > a datasource using this plan: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > xmlns:sys=3D"http://geronimo.apache.org/xml/n= s/deployment-1.0" > > > > > > > > > > > xmlns:naming=3D"http://geronimo.apache.org/xm= l/ns/naming-1.0" > > > > > > > > > > > configId=3D"net/sf/jt400" > > > > > > > > > > > parentId=3D"org/apache/geronimo/Server"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > javax.sql.DataSource > > > > > > > > > > > > > > > > > > > > > > AS400Da= tasource > > > > > > > > > > > user > > > > > > > > > > > demo > > > > > > > > > > > > > > > > > > > > > > com.i= bm.as400.access.AS400JDBCDriver > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > jdbc:= as400:192.168.1.15 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > true > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.t= ranql.connector.NoExceptionsAreFatalSorter > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > = 10 > > > > > > > > > > > = 0 > > > > > > > > > > > = 5000 > > > > > > > > > > > = 30 > > > > > > > > > > > = > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I copied tranql-connector-1.0.rar from the /repositor= y/tranql/rars > > > > > > > > > > > directory and placed it in the same directory as my p= lan. Is this > > > > > > > > > > > required? > > > > > > > > > > > > > > > > > > > > You don't need to copy the RAR. For example, if you ra= n this from the > > > > > > > > > > Geronimo install directory, you could run "java -jar de= ployer.jar > > > > > > > > > > deploy plan.xml repository/tranql/rars/tranql-connectio= n-1.0.rar" > > > > > > > > > > > > > > > > > > > > > Am I using the correct namespaces to validate the dat= abase plan? > > > > > > > > > > > > > > > > > > > > That looks like the correct namespace for M5 and beyond= . > > > > > > > > > Thanks. I wanted to make sure. For some odd reason, I'm= not getting > > > > > > > > > content assist (in Eclipse) for the sys:dependency in the= connector. > > > > > > > > > > > > > > > > > > > > > Is this the correct way to generate the datasource on= the server? > > > > > > > > > > > > > > > > > > > > If you have a source build, there's a portlet in the co= nsole that 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 default > > > > > > > > > > > namespace: http://geronimo.apache.org/xml/ns/j2ee= /web/jetty-1.0 > > > > > > > > > > > > > > > > > > > > It sounds like perhaps the connector deployer isn't run= ning? > > > > > > > > > > > > > > > > > > > > > I have started the tomcat instance and stopped jetty = on the server > > > > > > > > > > > manually using deploy. > > > > > > > > > > > > > > > > > > > > Well, this might have caused you trouble. I think the = deployer is > > > > > > > > > > configured to run against Tomcat or Jetty, whichever th= e server > > > > > > > > > > shipped with. So if you just disable one and enable th= e 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/co= nfig while the > > > > > > > > > > server is not running -- though that will have the side= effect of > > > > > > > > > > resetting the list of running applications next time yo= u start the > > > > > > > > > > server (so you may have to restart some of them). > > > > > > > > > > > > > > > > > > > > I'm not sure why this would have affected the connector= deployer, > > > > > > > > > > unless maybe you stopped more that you realize. Can yo= u run "java > > > > > > > > > > -jar deployer.jar list-modules" and post the output? I= t should show > > > > > > > > > > o/a/g/RuntimeDeployer and o/a/g/(WebServer)RuntimeDeplo= yer as running. > > > > > > > > > > > > > > > > > > > > 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 userna= me and password > > > > > > > > > > on the command line every time. > > > > > > > > > > > > > > > > > > I have since put things back the way they were (default G= eronimo > > > > > > > > > 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 m= ade the > > > > > > > > > switch I did to see what I messed up. > > > > > > > > > > > > > > > > > > I'll verify if the deployer's running. I'm pretty sure i= t was when I > > > > > > > > > did a list-modules, but I could be wrong. > > > > > > > > > > > > > > > > > > btw, I've been using your book (PDF) on M4 for guidance. = It's been helpful. > > > > > > > > > > > > > > > > > > > > > Any help would be appreciated. > > > > > > > > > > > > > > > > > > > > > > Thanks. > > > > > > > > > > > > > > > > > > > > > > Brian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >