-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate in RMI
PostPosted: Wed Dec 07, 2005 6:39 am 
Newbie

Joined: Tue Aug 30, 2005 12:30 am
Posts: 9
Hi,

I have problem running Hibernate in my application using RMI. the hibernate.cfg.xml always not found, i'm sure to put the file in my class path. looks like it have a problem in RMISecurityManager.

[b]Hibernate version:[/b] 3.0.5

[b]Full stack trace of any exception that occurs:[/b]

runserver:
[java] 0 [main] INFO cfg.Environment - Hibernate 3.0.5
[java] 0 [main] INFO cfg.Environment - hibernate.properties not found
[java] 0 [main] WARN cfg.Environment - could not copy system properties, s
ystem properties will be ignored
[java] 16 [main] INFO cfg.Environment - using CGLIB reflection optimizer
[java] 16 [main] INFO cfg.Environment - using JDK 1.4 java.sql.Timestamp h
andling
[java] 110 [main] INFO cfg.Configuration - configuring from resource: /hib
ernate.cfg.xml
[java] 110 [main] INFO cfg.Configuration - Configuration resource: /hibern
ate.cfg.xml
[java] 110 [main] WARN cfg.Configuration - /hibernate.cfg.xml not found
[java] Exception in thread "main" org.hibernate.HibernateException: /hibern
ate.cfg.xml not found
[java] at org.hibernate.cfg.Configuration.getConfigurationInputStream(C
onfiguration.java:1087)
[java] at org.hibernate.cfg.Configuration.configure(Configuration.java:
1111)
[java] at org.hibernate.cfg.Configuration.configure(Configuration.java:
1098)
[java] at com.menaraintermedia.BolaTangkasLogicImpl.initialize(Unknown
Source)
[java] at com.menaraintermedia.BolaTangkasLogicImpl.<init>(Unknown Sour
ce)
[java] at com.menaraintermedia.BolaTangkasLogicImpl.main(Unknown Source
)


On my main :

try
{
System.setSecurityManager(new RMISecurityManager());
Testing tes = new Testing();
Naming.rebind("TESTING-SERVER" , tes);
System.out.println("Server waiting.....");
}
catch (java.net.MalformedURLException me)
{
System.out.println("Malformed URL: " + me.toString());
}
catch (RemoteException re)
{
re.printStackTrace();
}

in Testing constructor i build configuration :
factory = new Configuration().configure().buildSessionFactory();

Any body have an idea ?
Thank you


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 07, 2005 6:47 am 
Senior
Senior

Joined: Mon Aug 22, 2005 5:45 am
Posts: 146
if you use JBoss I'd suggest to use Hibernate MBean to build the session factory since this allows "native" integration into the application server.

_________________
Please don't forget to give credit, if my posting helped to solve your problem.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.