Thanks for the prompt reply.
The original configuration file didn't include those lines but then I got:
[WARN],(SettingsFactory.java:95),Could not obtain connection metadata,net.sf.hibernate.cfg.SettingsFactory,main java.sql.SQLException: JZ004: User name property missing in DriverManager.getConnection(..., Properties). at com.sybase.jdbc2.jdbc.ErrorMessage.raiseError(ErrorMessage.java:549) at com.sybase.jdbc2.tds.LoginToken.<init>(LoginToken.java:128) at com.sybase.jdbc2.tds.Tds.doLogin(Tds.java:489) at com.sybase.jdbc2.tds.Tds.login(Tds.java:432) at com.sybase.jdbc2.jdbc.SybConnection.tryLogin(SybConnection.java:247) at com.sybase.jdbc2.jdbc.SybConnection.regularConnect(SybConnection.java:223) at com.sybase.jdbc2.jdbc.SybConnection.<init>(SybConnection.java:198) at com.sybase.jdbc2.jdbc.SybConnection.<init>(SybConnection.java:132) at com.sybase.jdbc2.jdbc.SybDriver.connect(SybDriver.java:179) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:140) at net.sf.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:95) at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72) at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1119) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:748) at com.cisco.nm.vms.common.HibernateUtil.initHibernate(HibernateUtil.java:51) at com.cisco.nm.vms.common.AthenaStartup.initialize(AthenaStartup.java:110) at com.cisco.nm.vms.common.web.AthenaStartupServlet.init(AthenaStartupServlet.java:18) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3422) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3623) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:754) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:232)
So it looks like I have no choice but to specify these parameters (at leat name and password).
Thanks,
Daphna
|