From: Mathias R. <mat...@we...> - 2004-08-28 17:22:10
|
Hello, I'm stuck with setting up TM4Web/Velocity 0.2rc1 with a hibernate backend. Configuration is <provider name="hibernate" factory="org.tm4j.topicmap.hibernate.TopicMapProviderFactoryImpl"> <provider-properties> <property name="hibernate.connection.url" value="jdbc:mysql://localhost/tm4mail"/> <property name="hibernate.connection.username" value="***"/> <property name="hibernate.connection.password" value="***"/> <property name="hibernate.dialect" value="net.sf.hibernate.dialect.MySQLDialect"/> <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/> </provider-properties> </provider> I don't get any errors but I don't get any TopicMaps from by backend either. In stdout.log it says "topicmaps element ignored for provider 'hibernate' which is not in-memory." Do I miss something or is Hibernate support currently not available with TM4Web/Velocity? Thanks, Mathias |
From: Kal A. <ka...@te...> - 2004-08-29 14:22:29
|
Hi Mathias, TM4Web/Velocity does support the Hibernate backend, but the <topicmaps> element is only provided for loading topic maps from a file-system directory (so its only used with the in-memory backend). You have to configure each topic map you want displayed separately. It would probably be nice if there was an option to list either all of the topic maps in the database or some subset (e.g. by matching the baseLocator against a regular expression). I'll look into adding something like that for 0.3. Cheers, Kal On Sat, 2004-08-28 at 18:25, Mathias Reinhardt wrote: > Hello, > > I'm stuck with setting up TM4Web/Velocity 0.2rc1 with a hibernate > backend. > Configuration is > <provider name="hibernate" > factory="org.tm4j.topicmap.hibernate.TopicMapProviderFactoryImpl"> > <provider-properties> > <property name="hibernate.connection.url" > value="jdbc:mysql://localhost/tm4mail"/> > <property name="hibernate.connection.username" value="***"/> > <property name="hibernate.connection.password" value="***"/> > <property name="hibernate.dialect" > value="net.sf.hibernate.dialect.MySQLDialect"/> > <property name="hibernate.connection.driver_class" > value="com.mysql.jdbc.Driver"/> > </provider-properties> > </provider> > > I don't get any errors but I don't get any TopicMaps from by backend > either. In stdout.log it says > "topicmaps element ignored for provider 'hibernate' which is not in-memory." > > Do I miss something or is Hibernate support currently not available with > TM4Web/Velocity? > > Thanks, > Mathias > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users -- Kal Ahmed <ka...@te...> techquila |
From: Kal A. <ka...@te...> - 2004-08-29 18:27:56
|
Hi Mathias, I tracked down the error in the TM4Web/Velocity source. I've checked a fix for this into CVS - so it will be part of the 0.2 release. If you are happy to grab the file from CVS and build it yourself thats cool. If you would like a compiled version of the JAR file, email me privately and I'll send it to you. Cheers and thanks for the bug report! Kal On Sun, 2004-08-29 at 18:02, Mathias Reinhardt wrote: > Hi Kal, > > ok, I can list maps the hibernate backend now. But I get an error as > soon as I try to load a map. > Failed to load topic map. Cause: Storage exception.. Cause: > java.lang.NullPointerException > at org.tm4j.topicmap.hibernate.TopicMapProviderImpl.findTopicMap(Unknown > Source) > > TM4Web is 0.2rc1 Servlet Container is Tomcat 5.0.16. I used the > hibernate jar's from tm4j-0.9.6 > with mySQL. > > The config uses > <topicmap name="tmworld.xtm" uri="http://****/tmworld.xtm" > template="topicmap.vm"> > <title>test2</title> > </topicmap> > > Please find the complete log file attached. > Accessing the same topic map from TM4J in plain java is no problem. > > Thanks > mathias |
From: Kal A. <ka...@te...> - 2004-09-24 13:01:28
|
Hi Mathias, I'm afraid that I don't have a release plan at the moment - I'm trying to get TMAPI 1.0 and TM4J 1.0 finished over the next week or so. If I can get a bit of time (and I might have some time this weekend), I'll take a look at implementing this - I just can't promise anything right now. I'll keep your need in mind though! Cheers, Kal Mathias Reinhardt wrote: > Hi Kal, > > I need the function to fetch the available topic maps from > a Hibernate backend quite urgent for a project. Do you have > a release plan for 0.3? > | > Greetings, > Mathias > > > |Kal Ahmed wrote: > >> Hi Mathias, >> >> TM4Web/Velocity does support the Hibernate backend, but the <topicmaps> >> element is only provided for loading topic maps from a file-system >> directory (so its only used with the in-memory backend). You have to >> configure each topic map you want displayed separately. It would >> probably be nice if there was an option to list either all of the topic >> maps in the database or some subset (e.g. by matching the baseLocator >> against a regular expression). I'll look into adding something like that >> for 0.3. >> >> Cheers, >> >> Kal >> >> On Sat, 2004-08-28 at 18:25, Mathias Reinhardt wrote: >> >> >>> Hello, >>> >>> I'm stuck with setting up TM4Web/Velocity 0.2rc1 with a hibernate >>> backend. >>> Configuration is >>> <provider name="hibernate" >>> factory="org.tm4j.topicmap.hibernate.TopicMapProviderFactoryImpl"> >>> <provider-properties> >>> <property name="hibernate.connection.url" >>> value="jdbc:mysql://localhost/tm4mail"/> >>> <property name="hibernate.connection.username" value="***"/> >>> <property name="hibernate.connection.password" value="***"/> >>> <property name="hibernate.dialect" >>> value="net.sf.hibernate.dialect.MySQLDialect"/> >>> <property name="hibernate.connection.driver_class" >>> value="com.mysql.jdbc.Driver"/> >>> </provider-properties> </provider> >>> >>> I don't get any errors but I don't get any TopicMaps from by backend >>> either. In stdout.log it says >>> "topicmaps element ignored for provider 'hibernate' which is not >>> in-memory." >>> >>> Do I miss something or is Hibernate support currently not available >>> with TM4Web/Velocity? >>> >>> Thanks, >>> Mathias >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by BEA Weblogic Workshop >>> FREE Java Enterprise J2EE developer tools! >>> Get your free copy of BEA WebLogic Workshop 8.1 today. >>> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >>> _______________________________________________ >>> Tm4j-users mailing list >>> Tm4...@li... >>> https://lists.sourceforge.net/lists/listinfo/tm4j-users >>> >> |
From: Kal A. <ka...@te...> - 2004-09-26 14:45:00
|
Hi Mathias, I've checked in some changes for the TM4Web/Velocity package which provides a basic level of support for listing the topic maps in a database. You need a configuration like this: <provider name="hibernate" factory="org.tm4j.topicmap.hibernate.TopicMapProviderFactoryImpl"> <provider-properties> <property name="hibernate.connection.url" value="jdbc:mysql://localhost/tm4mail"/> <property name="hibernate.connection.username" value="***"/> <property name="hibernate.connection.password" value="***"/> <property name="hibernate.dialect" value="net.sf.hibernate.dialect.MySQLDialect"/> <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/> </provider-properties> <topicmaps template="topicmap.vm"/> </provider> Note the extra <topicmaps/> element that is required. The template attribute specifies the template to be used for the main topicmap page. With this update, you are forced to always use topic.vm to render topics, but I will work on adding support like you have in the normal <topicmap> element to specify the template(s) to use to render topics. In tmbrowse, all topic maps are listed on the index page with their title as the full base URL of the topic map, so you end up with the URL listed twice (because by default the index page shows the source URL as well) - you may want to edit the listmaps.vm template to shorten this. I hope this gets you the basic functionality you need right now - I'm going to add a note to the feature tracker on sourceforge so that I don't forget to finish off this support for the 0.3 release. Cheers, Kal On Sat, 2004-08-28 at 18:25, Mathias Reinhardt wrote: > Hello, > > I'm stuck with setting up TM4Web/Velocity 0.2rc1 with a hibernate > backend. > Configuration is > <provider name="hibernate" > factory="org.tm4j.topicmap.hibernate.TopicMapProviderFactoryImpl"> > <provider-properties> > <property name="hibernate.connection.url" > value="jdbc:mysql://localhost/tm4mail"/> > <property name="hibernate.connection.username" value="***"/> > <property name="hibernate.connection.password" value="***"/> > <property name="hibernate.dialect" > value="net.sf.hibernate.dialect.MySQLDialect"/> > <property name="hibernate.connection.driver_class" > value="com.mysql.jdbc.Driver"/> > </provider-properties> > </provider> > > I don't get any errors but I don't get any TopicMaps from by backend > either. In stdout.log it says > "topicmaps element ignored for provider 'hibernate' which is not in-memory." > > Do I miss something or is Hibernate support currently not available with > TM4Web/Velocity? > > Thanks, > Mathias > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users -- Kal Ahmed <ka...@te...> techquila |
From: Mathias R. <mat...@we...> - 2004-09-27 13:27:19
|
Hello Kal, thanks a lot - it works! Regards, Mathias Kal Ahmed wrote: >Hi Mathias, > >I've checked in some changes for the TM4Web/Velocity package which >provides a basic level of support for listing the topic maps in a >database. You need a configuration like this: > ><provider name="hibernate" >factory="org.tm4j.topicmap.hibernate.TopicMapProviderFactoryImpl"> > <provider-properties> > <property name="hibernate.connection.url" >value="jdbc:mysql://localhost/tm4mail"/> > <property name="hibernate.connection.username" value="***"/> > <property name="hibernate.connection.password" value="***"/> > <property name="hibernate.dialect" >value="net.sf.hibernate.dialect.MySQLDialect"/> > <property name="hibernate.connection.driver_class" >value="com.mysql.jdbc.Driver"/> > </provider-properties> > <topicmaps template="topicmap.vm"/> > </provider> > >Note the extra <topicmaps/> element that is required. The template >attribute specifies the template to be used for the main topicmap page. >With this update, you are forced to always use topic.vm to render >topics, but I will work on adding support like you have in the normal ><topicmap> element to specify the template(s) to use to render topics. > >In tmbrowse, all topic maps are listed on the index page with their >title as the full base URL of the topic map, so you end up with the URL >listed twice (because by default the index page shows the source URL as >well) - you may want to edit the listmaps.vm template to shorten this. > >I hope this gets you the basic functionality you need right now - I'm >going to add a note to the feature tracker on sourceforge so that I >don't forget to finish off this support for the 0.3 release. > >Cheers, > >Kal > >On Sat, 2004-08-28 at 18:25, Mathias Reinhardt wrote: > > >>Hello, >> >>I'm stuck with setting up TM4Web/Velocity 0.2rc1 with a hibernate >>backend. >>Configuration is >> <provider name="hibernate" >>factory="org.tm4j.topicmap.hibernate.TopicMapProviderFactoryImpl"> >> <provider-properties> >> <property name="hibernate.connection.url" >>value="jdbc:mysql://localhost/tm4mail"/> >> <property name="hibernate.connection.username" value="***"/> >> <property name="hibernate.connection.password" value="***"/> >> <property name="hibernate.dialect" >>value="net.sf.hibernate.dialect.MySQLDialect"/> >> <property name="hibernate.connection.driver_class" >>value="com.mysql.jdbc.Driver"/> >> </provider-properties> >> </provider> >> >>I don't get any errors but I don't get any TopicMaps from by backend >>either. In stdout.log it says >>"topicmaps element ignored for provider 'hibernate' which is not in-memory." >> >>Do I miss something or is Hibernate support currently not available with >>TM4Web/Velocity? >> >>Thanks, >>Mathias >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by BEA Weblogic Workshop >>FREE Java Enterprise J2EE developer tools! >>Get your free copy of BEA WebLogic Workshop 8.1 today. >>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >>_______________________________________________ >>Tm4j-users mailing list >>Tm4...@li... >>https://lists.sourceforge.net/lists/listinfo/tm4j-users >> >> |