Thread: Re: [Vif-devel] Vif-devel Digest, Vol 1, Issue 93
Brought to you by:
aktion-hip
From: Harry G. <har...@gm...> - 2006-06-20 13:39:29
|
Dear Benno, I have made some progress. I am able to get the smoke to show the database information but only if I use the tomcat administration console to create the data source. jdbc/VIF<http://localhost:8080/admin/resources/setUpDataSource.do?objectName=Catalina%3Atype%3DResource%2Cresourcetype%3DContext%2Cpath%3D%2Fvifapp%2Chost%3Dlocalhost%2Cclass%3Djavax.sql.DataSource%2Cname%3Djdbc%252FVIF&resourcetype=Context&path=%2Fvifapp&host=localhost&domain=Catalina>exists in the vifapp resources but is initially unconfigured. Which file configures this? I have tried changing vifapp\META-INF\Context.xml and restarting but it does not alter things. Also I have substituted the servlet jar from tomcat and can now compile the code base, thanks. Regards, Harry On 6/20/06, vif...@li... < vif...@li...> wrote: > > Send Vif-devel mailing list submissions to > vif...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/vif-devel > or, via email, send a message with subject or body 'help' to > vif...@li... > > You can reach the person managing the list at > vif...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Vif-devel digest..." > > > Today's Topics: > > 1. Problem with database access (Luthiger Stoll Benno) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 19 Jun 2006 15:14:58 +0200 > From: "Luthiger Stoll Benno" <ben...@id...> > Subject: [Vif-devel] Problem with database access > To: "Harry Glasgow" <har...@gm...> > Cc: "VIF Devel Mailinglist \(E-mail\)" > <vif...@li...> > Message-ID: <E3E...@EX...> > Content-Type: text/plain; charset="iso-8859-1" > > Dear Harry > > Did you try the smoke test (http://localhost:8080/forum?requestType=smoke > )? > If all is correct, you should see there three sections: Servlet Container, > Java and Database. > However, I guess that the section "Database" is missing. I encountered > such problems and was able to solve them by copying the MySQL-JDBC driver > into the Tomcat's endorsed directory (see remarks on > http://vif.sourceforge.net/InstallAndRun.html). The path to the Tomcat's > endorsed directory is displayed on the smoke test page too. > > Concerning the other error you got: > You may be correct and the servlet.jar provided by the war file is > outdated. > In my development environment I use the jars coming with Tomcat. Maybe > it's a good idea to drop the servlet.jar from the application as the come > in correct version with the servlet container anyway. > > PS: I send a copy of this mail to the project's mailing list to document > the issue and how to solve it. > > Regards, > Benno > > -----Original Message----- > From: Harry Glasgow [mailto:har...@gm...] > Sent: Montag, 19. Juni 2006 14:21 > To: Luthiger Stoll Benno > Subject: Re: Java developers with XSLT knowledge. > > > Hi Benno, > > I have had a look around the project's home page and have begun reading > some of the documentation. The concept is very interesting and it would be > great to help progress the application. > > I have run the war in Tomcat and, using the installation instructions, I > was able to get as far as the createSU request type, but then got an error. > The error log says: > > at org.hip.kernel.bom.impl.DomainObjectHomeImpl.getDBAdapter > DomainObjectHomeImpl.java:421)[...] > Caused by: java.lang.NullPointerException > at org.hip.kernel.bom.impl.DBAdapterSelector.isDBType( > DBAdapterSelector.java:89) > at org.hip.kernel.bom.impl.DBAdapterSelector.initialize( > DBAdapterSelector.java:77) > at org.hip.kernel.bom.impl.DBAdapterSelector.<init>(DBAdapterSelector.java > :63) > at org.hip.kernel.bom.impl.DBAdapterSelector.<clinit>( > DBAdapterSelector.java:48) > ... 42 more > > I will try to work out what is in error soon. > > Also I have done an anonymous download of the source and get a compile > error in AbstractRequestHandler at line 151 because getRequestURL() is > unknown for HttpServletRequest. I am using the jars from the war file. Is > the servlet.jar the correct version? > > When I am able to run the site successfully, it will be easier to > investigate the tasks and perhaps be able to resolve some. I am more > interested with the client / web side of applications but I am adaptable if > required. > > Regards, > Harry Glasgow > > > > ------------------------------ > > > > ------------------------------ > > _______________________________________________ > Vif-devel mailing list > Vif...@li... > https://lists.sourceforge.net/lists/listinfo/vif-devel > > > End of Vif-devel Digest, Vol 1, Issue 93 > **************************************** > |
From: Luthiger S. B. <ben...@id...> - 2006-06-20 15:35:43
|
Dear Harry It seems that you encounter the same problem I've faced once. This has = to do with the JNDI lookup mechanism I guess. I've been able to solve the problem by changing the attributes in the = Tomcat instances server.xml. When I set the attributes of the <Host> element as follows: <Host name=3D"localhost" appBase=3D"webapps"=20 unpackWARs=3D"true" autoDeploy=3D"false" /> the application was able to create the JNDI context and, therefore, to = lookup the resources. When I set autoDeploy=3D"true", I recognized that my changes to the = context.xml (in $TOMCAT/webapps/vifapp/META-INF/context.xml) where = overwritten by the original context.xml provided by the vifapp.war. HTH Benno -----Original Message----- From: vif...@li... = [mailto:vif...@li...]On Behalf Of Harry = Glasgow Sent: Dienstag, 20. Juni 2006 15:39 To: vif...@li... Subject: Re: [Vif-devel] Vif-devel Digest, Vol 1, Issue 93 Dear Benno, I have made some progress. I am able to get the smoke to show the = database information but only if I use the tomcat administration console = to create the data source. jdbc/VIF exists in the vifapp resources but = is initially unconfigured. Which file configures this? I have tried = changing vifapp\META-INF\Context.xml and restarting but it does not = alter things. Also I have substituted the servlet jar from tomcat and can now compile = the code base, thanks. Regards, Harry =20 |