Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 43434 invoked from network); 28 Nov 2005 20:50:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Nov 2005 20:50:08 -0000 Received: (qmail 63966 invoked by uid 500); 28 Nov 2005 20:50:05 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 63936 invoked by uid 500); 28 Nov 2005 20:50:04 -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 63925 invoked by uid 99); 28 Nov 2005 20:50:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2005 12:50:04 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of bkbonner@gmail.com designates 66.249.82.204 as permitted sender) Received: from [66.249.82.204] (HELO xproxy.gmail.com) (66.249.82.204) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2005 12:51:34 -0800 Received: by xproxy.gmail.com with SMTP id t12so1074333wxc for ; Mon, 28 Nov 2005 12:49:43 -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=fcXRfDda4bhEPah4CZLW8Fx8ky3/ZLWA9Vr6s47eznsJXmgjOOLq4pk3n2K8S1hRuz2ZieL9SE9Qzsf/6AwrytOZVIypyxQWxCo8ZFXmhDrIVv5RA7IJjCGIm/TKHZfJcoxeT+MLVWrQCO+yc/JTQTorar6lfPzOPHEQIgwu9pE= Received: by 10.70.7.9 with SMTP id 9mr53495wxg; Mon, 28 Nov 2005 12:49:43 -0800 (PST) Received: by 10.70.7.4 with HTTP; Mon, 28 Nov 2005 12:49:43 -0800 (PST) Message-ID: Date: Mon, 28 Nov 2005 15:49:43 -0500 From: Brian Bonner Reply-To: bkbonner@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 btw, it looks like the schemas in svn have fixed some of the issues I was having. On 11/26/05, Brian Bonner wrote: > btw, moving it to toplevel fixed the deployment problem. > > Thanks. > Brian > 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 look= s > > > > 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:grou= p > > > is literally just a placeholder for a number of other elements, not a= n > > > 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 i= t > > > > > 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 w= ith > > > > > 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 y= our > > > > > > geronimo-web.xml (the nameing:resource-ref should just be at th= e 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 dep= loyment > > > > > > error? I'd like to make sure someone looks at the underlying p= roblem. > > > > > > > > > > > > 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 wie= rd > > > > > > > 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 matchi= ng > > > > > > > resources found) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 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" > > > > > > > xmlns:security=3D"http://geronimo.apache.org/xml/ns/s= ecurity-1.0" > > > > > > > configId=3D"com/paraware/TestService" parentId=3D"org= /apache/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=3DRe= sourceAdapterModule,name=3Dnet/sf/jt400 > > > > > > > [running] > > > > > > > # J2EEApplication=3Dnull,J2EEServer=3Dgeronimo,j2eeType=3DRes= ourceAdapterModule,name=3Dorg/apache/geronimo/SystemDatabase > > > > > > > [running] > > > > > > > # J2EEApplication=3Dnull,J2EEServer=3Dgeronimo,j2eeType=3DRes= ourceAdapterModule,name=3Dorg/apache/geronimo/SystemJMS > > > > > > > [running] > > > > > > > # J2EEApplication=3Dnull,J2EEServer=3Dgeronimo,j2eeType=3DWeb= Module,name=3Dorg/apache/geronimo/applications/Welcome/Tomcat > > > > > > > [running] > > > > > > > # J2EEApplication=3Dnull,J2EEServer=3Dgeronimo,j2eeType=3DWeb= Module,name=3Dorg/apache/geronimo/DebugConsole > > > > > > > [running] > > > > > > > # J2EEApplication=3Dnull,J2EEServer=3Dgeronimo,JCAResource=3D= net/sf/jt400,j2eeType=3DJCAConnectionFactory,name=3DAS400DataSource > > > > > > > [running] > > > > > > > # J2EEApplication=3Dnull,J2EEServer=3Dgeronimo,JCAResource=3D= net/sf/jt400,j2eeType=3DJCAConnectionManager,name=3DAS400DataSource > > > > > > > [running] > > > > > > > # J2EEApplication=3Dnull,J2EEServer=3Dgeronimo,JCAResource=3D= net/sf/jt400,j2eeType=3DJCAManagedConnectionFactory,name=3DAS400DataSource > > > > > > > [running] > > > > > > > > > > > > > > > > > > > > > It looks like the match is there, but I'm still getting the e= rror. Any ideas? > > > > > > > > > > > > > > Brian > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 11/24/05, Aaron Mulder wro= te: > > > > > > > > On 11/24/05, Brian Bonner wrote: > > > > > > > > > Aaron, I looked at the tomcat switch. The only differenc= e I saw > > > > > > > > > between config.jetty.xml and config.tomcat.xml was the po= rts that each > > > > > > > > > were run on (e.g for http 8080 being the default for each= config and > > > > > > > > > 8090 being what the other 'jetty or tomcat' was running o= n). Or did I > > > > > > > > > miss something? > > > > > > > > > > > > > > > > > > Anyway, I copied config.tomcat.xml over config.xml and c= opied > > > > > > > > > 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\t= ranql-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 > > > > > > > > > > > > > > > > There should also be a difference in the defaultNamespace a= ttribute > > > > > > > > for the WebBuilder GBean in the o/a/g/RuntimeDeployer confi= guration. > > > > > > > > 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= 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 ove= r > > > > > > > > config.xml again while the server is definitely shut down a= nd then try > > > > > > > > it again? I don't see how it's still reporting a default o= f 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 @ htt= p://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://L= 3B7594:8090/console-sta > > > > > > > > > ndard > > > > > > > > > `-> geronimo-console-framework-1.0-M5.war @ http://= L3B7594: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 runnin= g. > > > > > > > > > > > > > > > > > > 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 an= d I want to deploy > > > > > > > > > > > > a datasource using this plan: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > xmlns:sys=3D"http://geronimo.apache.org/xml= /ns/deployment-1.0" > > > > > > > > > > > > xmlns:naming=3D"http://geronimo.apache.org/= xml/ns/naming-1.0" > > > > > > > > > > > > configId=3D"net/sf/jt400" > > > > > > > > > > > > parentId=3D"org/apache/geronimo/Server"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > javax.sql.DataSource > > > > > > > > > > > > > > > > > > > > > > > > AS400= Datasource > > > > > > > > > > > > user > > > > > > > > > > > > demo > > > > > > > > > > > > > > > > > > > > > > > > com= .ibm.as400.access.AS400JDBCDriver > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > jdb= c:as400:192.168.1.15 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > tru= e > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > org= .tranql.connector.NoExceptionsAreFatalSorter > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > = 10 > > > > > > > > > > > > = 0 > > > > > > > > > > > > = 5000 > > > > > > > > > > > > = 30 > > > > > > > > > > > > = > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I copied tranql-connector-1.0.rar from the /reposit= ory/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 from the > > > > > > > > > > > Geronimo install directory, you could run "java -jar = deployer.jar > > > > > > > > > > > deploy plan.xml repository/tranql/rars/tranql-connect= ion-1.0.rar" > > > > > > > > > > > > > > > > > > > > > > > Am I using the correct namespaces to validate the d= atabase plan? > > > > > > > > > > > > > > > > > > > > > > That looks like the correct namespace for M5 and beyo= nd. > > > > > > > > > > Thanks. I wanted to make sure. For some odd reason, I= 'm not getting > > > > > > > > > > content assist (in Eclipse) for the sys:dependency in t= he 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 = console 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/connecto= r-1.0 or default > > > > > > > > > > > > namespace: http://geronimo.apache.org/xml/ns/j2= ee/web/jetty-1.0 > > > > > > > > > > > > > > > > > > > > > > It sounds like perhaps the connector deployer isn't r= unning? > > > > > > > > > > > > > > > > > > > > > > > I have started the tomcat instance and stopped jett= y on the server > > > > > > > > > > > > manually using deploy. > > > > > > > > > > > > > > > > > > > > > > Well, this might have caused you trouble. I think th= e 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. Th= e best way to > > > > > > > > > > > switch between Tomcat and Jetty is to copy over the > > > > > > > > > > > "config.product.xml" to "config.xml" in geronimo/var/= config while the > > > > > > > > > > > server is not running -- though that will have the si= de 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 connect= or deployer, > > > > > > > > > > > unless maybe you stopped more that you realize. Can = you run "java > > > > > > > > > > > -jar deployer.jar list-modules" and post the output? = It should show > > > > > > > > > > > o/a/g/RuntimeDeployer and o/a/g/(WebServer)RuntimeDep= loyer as running. > > > > > > > > > > > > > > > > > > > > > > Aaron > > > > > > > > > > > > > > > > > > > > > > P.S. If you have a source build, you can also run "ja= va -jar > > > > > > > > > > > deployer.jar login" so you don't have to put the user= name and password > > > > > > > > > > > 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 screw= ed 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 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >