You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marco Mistroni <mm...@waersystems.com> on 2004/06/01 10:12:19 UTC

RE: Hibernate configuration problems

And which app server r u using?
I have used plugin with jboss and everything looks fine for me...

Regards
	marco

-----Original Message-----
From: Zaid [mailto:zaidatheer@cosmos-software.com] 
Sent: 11 May 2004 06:18
To: Struts Users Mailing List
Subject: Hibernate configuration problems

HI Friends,

I am facing many difficulties in configuring HibernatePlugIn with struts
(I
am using Struts Studio), do I need to initialize jndi ? or there might
be
another way ? cause the jndi showing me the message "cannot find
resource".

Any advice from you ? thanx alot

Zaid


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Hibernate configuration problems

Posted by Mark Lowe <ma...@boxstuff.com>.
There are alternatives to using the struts plugin, but the plugin is as 
reasonable option as any other, especially if you're not trying to 
minimize the dependency on struts.

1. One alternative is to take a look at the struts plugin code and 
write a servlet that runs the jndi service.

2. Another is to use the thread-safe util class thats described on the 
hibernate site.

Neither of these are any easier than using struts plugin however, and I 
know folk are using this quite happily, such as Marco.

Sounds to me like the plugin cant find hibernate.cfg.xml, this needs to 
be at the base of you classpath

/WEB-INF/classes/hibernate.cfg.xml

Mark


On 1 Jun 2004, at 10:12, Marco Mistroni wrote:

> And which app server r u using?
> I have used plugin with jboss and everything looks fine for me...
>
> Regards
> 	marco
>
> -----Original Message-----
> From: Zaid [mailto:zaidatheer@cosmos-software.com]
> Sent: 11 May 2004 06:18
> To: Struts Users Mailing List
> Subject: Hibernate configuration problems
>
> HI Friends,
>
> I am facing many difficulties in configuring HibernatePlugIn with 
> struts
> (I
> am using Struts Studio), do I need to initialize jndi ? or there might
> be
> another way ? cause the jndi showing me the message "cannot find
> resource".
>
> Any advice from you ? thanx alot
>
> Zaid
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Hibernate configuration problems

Posted by Mark Lowe <ma...@boxstuff.com>.
Perhaps there are better ways but this works

http://www.hibernate.org/42.html

it will certainly avoid jndi problems and give you breathing space.



On 8 May 2004, at 11:47, Zaid wrote:

> HI Marko and Mark and all friends in this Group,
>
> Thanx alot for being such a help for me, anyhow, does any one has some
> HibernatePlugin with suppressed JNDI ?. I would be very much 
> appreciated.
>
> Regards,
>
> ----- Original Message -----
> From: "Marco Mistroni" <mm...@waersystems.com>
> To: "'Struts Users Mailing List'" <us...@struts.apache.org>
> Sent: Tuesday, June 01, 2004 1:07 PM
> Subject: RE: Hibernate configuration problems
>
>
>> Hi,
>> That COULD be the problem.... I've heard of users getting JNDI
>> problems with tomcat..
>> I m sure there is a post either on hibernate or this mailing lists 
>> about
>>
>> That..
>> I have also dropped the use of struts plugin...
>> Nothing wrong with that, it was cool, but after seeing users getting
>> problems with JDNI/tomcat I realized that it could have
>> Been better to take the code for struts plugin and put it into my own
>> plugin, eventually avoiding JNDI,. Since all I needed was a global
>> Sessionfactory and a thread-safe session..
>>
>> Regards
>> marco
>>
>>
>> -----Original Message-----
>> From: Zaid [mailto:zaidatheer@cosmos-software.com]
>> Sent: 08 May 2004 09:35
>> To: Struts Users Mailing List
>> Subject: Re: Hibernate configuration problems
>>
>> HI Marco,
>>
>> Thanx for responding,  Acually, I am using it with Tomcat 4.1 (which
>> comes
>> with Struts Studio). Do u use JNDI with Hibernate ?
>>
>> Rgards,
>>
>>
>> ----- Original Message -----
>> From: "Marco Mistroni" <mm...@waersystems.com>
>> To: "'Struts Users Mailing List'" <us...@struts.apache.org>
>> Sent: Tuesday, June 01, 2004 12:12 PM
>> Subject: RE: Hibernate configuration problems
>>
>>
>>> And which app server r u using?
>>> I have used plugin with jboss and everything looks fine for me...
>>>
>>> Regards
>>> marco
>>>
>>> -----Original Message-----
>>> From: Zaid [mailto:zaidatheer@cosmos-software.com]
>>> Sent: 11 May 2004 06:18
>>> To: Struts Users Mailing List
>>> Subject: Hibernate configuration problems
>>>
>>> HI Friends,
>>>
>>> I am facing many difficulties in configuring HibernatePlugIn with
>> struts
>>> (I
>>> am using Struts Studio), do I need to initialize jndi ? or there 
>>> might
>>> be
>>> another way ? cause the jndi showing me the message "cannot find
>>> resource".
>>>
>>> Any advice from you ? thanx alot
>>>
>>> Zaid
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Hibernate configuration problems

Posted by Marco Mistroni <mm...@waersystems.com>.
Hi,
	U can download the source and comment the JNDI part urself :-)

Regards
	marco

-----Original Message-----
From: Zaid [mailto:zaidatheer@cosmos-software.com] 
Sent: 08 May 2004 10:48
To: Struts Users Mailing List
Subject: Re: Hibernate configuration problems

HI Marko and Mark and all friends in this Group,

Thanx alot for being such a help for me, anyhow, does any one has some
HibernatePlugin with suppressed JNDI ?. I would be very much
appreciated.

Regards,

----- Original Message ----- 
From: "Marco Mistroni" <mm...@waersystems.com>
To: "'Struts Users Mailing List'" <us...@struts.apache.org>
Sent: Tuesday, June 01, 2004 1:07 PM
Subject: RE: Hibernate configuration problems


> Hi,
> That COULD be the problem.... I've heard of users getting JNDI
> problems with tomcat..
> I m sure there is a post either on hibernate or this mailing lists
about
>
> That..
> I have also dropped the use of struts plugin...
> Nothing wrong with that, it was cool, but after seeing users getting
> problems with JDNI/tomcat I realized that it could have
> Been better to take the code for struts plugin and put it into my own
> plugin, eventually avoiding JNDI,. Since all I needed was a global
> Sessionfactory and a thread-safe session..
>
> Regards
> marco
>
>
> -----Original Message-----
> From: Zaid [mailto:zaidatheer@cosmos-software.com]
> Sent: 08 May 2004 09:35
> To: Struts Users Mailing List
> Subject: Re: Hibernate configuration problems
>
> HI Marco,
>
> Thanx for responding,  Acually, I am using it with Tomcat 4.1 (which
> comes
> with Struts Studio). Do u use JNDI with Hibernate ?
>
> Rgards,
>
>
> ----- Original Message ----- 
> From: "Marco Mistroni" <mm...@waersystems.com>
> To: "'Struts Users Mailing List'" <us...@struts.apache.org>
> Sent: Tuesday, June 01, 2004 12:12 PM
> Subject: RE: Hibernate configuration problems
>
>
> > And which app server r u using?
> > I have used plugin with jboss and everything looks fine for me...
> >
> > Regards
> > marco
> >
> > -----Original Message-----
> > From: Zaid [mailto:zaidatheer@cosmos-software.com]
> > Sent: 11 May 2004 06:18
> > To: Struts Users Mailing List
> > Subject: Hibernate configuration problems
> >
> > HI Friends,
> >
> > I am facing many difficulties in configuring HibernatePlugIn with
> struts
> > (I
> > am using Struts Studio), do I need to initialize jndi ? or there
might
> > be
> > another way ? cause the jndi showing me the message "cannot find
> > resource".
> >
> > Any advice from you ? thanx alot
> >
> > Zaid
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Hibernate configuration problems

Posted by Zaid <za...@cosmos-software.com>.
HI Marko and Mark and all friends in this Group,

Thanx alot for being such a help for me, anyhow, does any one has some
HibernatePlugin with suppressed JNDI ?. I would be very much appreciated.

Regards,

----- Original Message ----- 
From: "Marco Mistroni" <mm...@waersystems.com>
To: "'Struts Users Mailing List'" <us...@struts.apache.org>
Sent: Tuesday, June 01, 2004 1:07 PM
Subject: RE: Hibernate configuration problems


> Hi,
> That COULD be the problem.... I've heard of users getting JNDI
> problems with tomcat..
> I m sure there is a post either on hibernate or this mailing lists about
>
> That..
> I have also dropped the use of struts plugin...
> Nothing wrong with that, it was cool, but after seeing users getting
> problems with JDNI/tomcat I realized that it could have
> Been better to take the code for struts plugin and put it into my own
> plugin, eventually avoiding JNDI,. Since all I needed was a global
> Sessionfactory and a thread-safe session..
>
> Regards
> marco
>
>
> -----Original Message-----
> From: Zaid [mailto:zaidatheer@cosmos-software.com]
> Sent: 08 May 2004 09:35
> To: Struts Users Mailing List
> Subject: Re: Hibernate configuration problems
>
> HI Marco,
>
> Thanx for responding,  Acually, I am using it with Tomcat 4.1 (which
> comes
> with Struts Studio). Do u use JNDI with Hibernate ?
>
> Rgards,
>
>
> ----- Original Message ----- 
> From: "Marco Mistroni" <mm...@waersystems.com>
> To: "'Struts Users Mailing List'" <us...@struts.apache.org>
> Sent: Tuesday, June 01, 2004 12:12 PM
> Subject: RE: Hibernate configuration problems
>
>
> > And which app server r u using?
> > I have used plugin with jboss and everything looks fine for me...
> >
> > Regards
> > marco
> >
> > -----Original Message-----
> > From: Zaid [mailto:zaidatheer@cosmos-software.com]
> > Sent: 11 May 2004 06:18
> > To: Struts Users Mailing List
> > Subject: Hibernate configuration problems
> >
> > HI Friends,
> >
> > I am facing many difficulties in configuring HibernatePlugIn with
> struts
> > (I
> > am using Struts Studio), do I need to initialize jndi ? or there might
> > be
> > another way ? cause the jndi showing me the message "cannot find
> > resource".
> >
> > Any advice from you ? thanx alot
> >
> > Zaid
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Hibernate configuration problems

Posted by Marco Mistroni <mm...@waersystems.com>.
Hi,
	That COULD be the problem.... I've heard of users getting JNDI
problems with tomcat..
I m sure there is a post either on hibernate or this mailing lists about

That..
I have also dropped the use of struts plugin...
Nothing wrong with that, it was cool, but after seeing users getting
problems with JDNI/tomcat I realized that it could have
Been better to take the code for struts plugin and put it into my own
plugin, eventually avoiding JNDI,. Since all I needed was a global
Sessionfactory and a thread-safe session..

Regards
	marco


-----Original Message-----
From: Zaid [mailto:zaidatheer@cosmos-software.com] 
Sent: 08 May 2004 09:35
To: Struts Users Mailing List
Subject: Re: Hibernate configuration problems

HI Marco,

Thanx for responding,  Acually, I am using it with Tomcat 4.1 (which
comes
with Struts Studio). Do u use JNDI with Hibernate ?

Rgards,


----- Original Message ----- 
From: "Marco Mistroni" <mm...@waersystems.com>
To: "'Struts Users Mailing List'" <us...@struts.apache.org>
Sent: Tuesday, June 01, 2004 12:12 PM
Subject: RE: Hibernate configuration problems


> And which app server r u using?
> I have used plugin with jboss and everything looks fine for me...
>
> Regards
> marco
>
> -----Original Message-----
> From: Zaid [mailto:zaidatheer@cosmos-software.com]
> Sent: 11 May 2004 06:18
> To: Struts Users Mailing List
> Subject: Hibernate configuration problems
>
> HI Friends,
>
> I am facing many difficulties in configuring HibernatePlugIn with
struts
> (I
> am using Struts Studio), do I need to initialize jndi ? or there might
> be
> another way ? cause the jndi showing me the message "cannot find
> resource".
>
> Any advice from you ? thanx alot
>
> Zaid
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Hibernate configuration problems

Posted by Zaid <za...@cosmos-software.com>.
HI Marco,

Thanx for responding,  Acually, I am using it with Tomcat 4.1 (which comes
with Struts Studio). Do u use JNDI with Hibernate ?

Rgards,


----- Original Message ----- 
From: "Marco Mistroni" <mm...@waersystems.com>
To: "'Struts Users Mailing List'" <us...@struts.apache.org>
Sent: Tuesday, June 01, 2004 12:12 PM
Subject: RE: Hibernate configuration problems


> And which app server r u using?
> I have used plugin with jboss and everything looks fine for me...
>
> Regards
> marco
>
> -----Original Message-----
> From: Zaid [mailto:zaidatheer@cosmos-software.com]
> Sent: 11 May 2004 06:18
> To: Struts Users Mailing List
> Subject: Hibernate configuration problems
>
> HI Friends,
>
> I am facing many difficulties in configuring HibernatePlugIn with struts
> (I
> am using Struts Studio), do I need to initialize jndi ? or there might
> be
> another way ? cause the jndi showing me the message "cannot find
> resource".
>
> Any advice from you ? thanx alot
>
> Zaid
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org