• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problems with TomCat, context

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I�m new in this forum. I hope help you when you need
and I hope that you help too... :-)
I�m trying to use the JNDI.
I�m using the Hibernate 2.0.2 with TomCat 4.1.*
I use also a plugin to load the hibernate.cfg.xml,
to set the SessionFactory in the context.
I would like to know about this.
for example: In the hibernate.cfg.xml I would like to use a JNDI,
but I�m not obtaining to configure correctly.

In the server.xml I put the following:



In the web.xml I put the following:



And How about the hibernate.cfg.xml? How can I do?
I�m doing:



To load some informations It was created the ProjPlugin with the init method that contains:


BUT when I start the Tomcat, it appears the NullPointerException in the line 78,
because the realDir was set to null. When I not USE the above context, this problem
does not occurs. I need to use JNDI and context.
Somebody can help me???
thank you very much
[ April 02, 2004: Message edited by: Tadeu Camargo ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic