What will happen if i write like thsi session-factory ,,, session-factor

when using hibernate ,writing the hibernate.cfg.xml,what's the difference between the two?
1.
<hibernate-configuration>
<session-factory >
<property name="show_sql">true</property>
<property name="connection.driver_class">org.gjt.mm.mysql.Driver</property>
2.
<hibernate-configuration>
- <session-factory name="java:/hibernate/HibernateFactory">
<property name="show_sql">true</property>
<property name="connection.driver_class">org.gjt.mm.mysql.Driver</property>
when there exists name="java:/hibernate/HibernateFactory"
I get this:
WARN SessionFactoryObjectFactory:98 - Could not bind factory to JNDI
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
     at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
     at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
     at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)
     at javax.naming.InitialContext.getNameParser(InitialContext.java:439)
     at org.hibernate.util.NamingHelper.bind(NamingHelper.java:52)
     at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)
     at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:296)
     at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1180)
     at Test.main(Test.java:11)
when there exist no name="java:/hibernate/HibernateFactory"
it tells me:
No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/G:/Java/hibernate-3.2/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
19:08:41,750 INFO SessionFactoryObjectFactory:82 - Not binding factory to JNDI, no JNDI name configured
could you tell me why this happend,and how to solove it ?
thank you

If you kill it you would need to restart crs stack in order to bring it up again...
Did you investigated problem before making decision to kill the process?
If yes, what are the conclusions?

Similar Messages

  • What will happen if i mention like load-on-startup -1 /load-on-startup   ?

    Hi All,
    In my web.xml what will happen if i mention like <load-on-startup>
    -1</load-on-startup> ?

    It's not WebLogic-specific, the load-on-startup web.xml element is a standard common component to all application servers.
    As for what it does, then yes, the BEA link explains it well enough. So that explanation applies to WAS too.

  • What will happen for games after restoring?

    Hello,
    As my iphone has problem with push notification and it sends them even after reading the message, I want to restore my phone.  I have backup on iTuens but not sure if I restore to them it solves my problem, because created the backup last night, when there was this problem.
    Also I am not sure what will happen on some games like NFS or Temple Run? How can I have the corrent score on the restored game?
    Thanks,

    Hard to say, but if your problem is being caused by corrupt data on your phone, restoring from backup will merely restore the problem. What you could do is first try restoring from backup. If your issue is fixed, you're good to go. If not, then you'll have to restore as new.

  • HT5628 What happens to all of my files and what will happen to my iwork apps if I decide to switch to windows

    I have recently wanted to switch to the windows platform so I could get more games from steam.  I was wondering what happens to all of my files and what will happen to Mac apps like iwork.  Will I have to purchase the microsoft version?

    Nothing happens to your files and "Mac apps". You install Windows on a new partition separate from OSx. Read the Boot Camp manuals. http://www.apple.com/support/bootcamp/

  • If you write routine in transfer rules what will happen

    If you write routine in transfer rules what will happen?

    Hi,
    If we write routines in Transfer Rules:
    If it is Start Routine: Record Level Transformation
    If it is at Rules: Field Level Transformation
    In both case, the transformations are activated before the data entering into BW.
    Hope this Information helps u..........
    Assigning points is the way of saying THANKS in SDN
    Regards
    Ramakrishna Kamurthy

  • My Lightroom 5 says I have a new update, but the download looks like it is trying to switch me over to creative cloud.  What will happen if I install this download?

    My lightroom 5 says I have a new update, but the download looks like it will switch me over to creative cloud.  What will happen if I install this download?

    What about the notification looks like it will switch over to the creative cloud?  I'd avoid it until you get a good answer to your question.

  • I have a Power Mac G5 Dual 2.3 running 10.5.8, I understand that I can not upgrade to Lion, so what will happen to my Mobile me, which I can not live with out?

    I have a Power Mac G5 Dual 2.3 running 10.5.8, I understand that I can not upgrade to Lion, so what will happen to my Mobile me, which I can not live with out? Also will I be able to get Icloud to work?

    Hi Mary, the other so called "Features" of iClound will not work for like Syncing, but eMail will.
    MobileMe & dot Mac will still work last I heard.
    iCloud Mail setup, even in 10.4/10.5…
    Don't delete your old account yet. Just setup a new one in Mail>Preferences>Accounts, little plus icon. Choose IMAP as account type, not ,mac or MobileMe.
    IMAP (Incoming Mail Server) information:
              ▪          Server name: imap.mail.me.com
              ▪          SSL Required: Yes
              ▪          Port: 993
              ▪          Username: [email protected] (use your @me.com address from your iCloud account)
              ▪          Password: Your iCloud password
    SMTP (outgoing mail server) information:
              ▪          Server name: smtp.mail.me.com
              ▪          SSL Required: Yes
              ▪          Port: 587
              ▪          SMTP Authentication Required: Yes
              ▪          Username: [email protected] (use your @me.com address from your iCloud account)
              ▪          Password: Your iCloud password

  • What will happen if I install Lion on my macbook pro core duo??

    What will happen if I install Lion on my macbook pro core duo? I have one of the first Intel MacBook Pro's with a Core Duo processer, I'm having hard drive problems so want to format it and re-install my OS. I can't find my Snow Leopard disk so the easiest thing to do would be to download Lion but I have been told that my MacBook needs to have a Core 2 Duo processer so I just wondered if anyone else has tried Lion on a MacBook like mine??

    Nothing.
    Lion will not run on a core duo, it needs a core 2 duo as a minimum
    see Technical Specifications
    Also you will need SL running to access the App Store to download Lion. So In a number of ways this won;t work.
    regards

  • What will happen when I put my jailbroken iPhone 4 in the computer?

    I have a jailbroken iphone 4 still running on 4.3.2 firmware and I would like to get rid of the jailbreak and update it to 5. I understand that it will take my jailbreak off, which I have no problem with, but I'm terrified to plug into the computer. The computer I used for my iphone and itunes got a virus and everything was wiped out. I recently got a new macbook, but none of my info for itunes is on there and I'm scared if I put my iphone into the macbook I'll lose all of contacts! That's what I'm worried about. I don't care about the music or the apps and not so much the pictures. I'm just scared to lose my contacts. So does anyone know what will happen since it's jailbroken and I'm on a completely different computer?

    When you jailbreak you void your warranty and give up any right to help on these forums.
    Google your problem.
    Good luck.

  • What will happen after I deactivate my iphone?

    Hello, fellow people of the internet!! I'd really like to know, what will happen if I have AT&amp;T deactivate the sim card on my iphone and reactivate the one from my old samsung phone? If someone has gone through a similar experience, would it be possible for you to talk me through the process, or just let me know if there's anything special or worrying that I should know? Can you keep the iphone and continue using it (without any of its actual cellular features, I know), do they charge you for anything , either right there at AT&amp;T or later on in the form of a bill? Is it a quick process or would it be rather complicated? If you couldn't already tell, I'm clueless but I just don't want there to be any surprises if I go through with this 'cause I'd really like to go back to my old phone (is that shocking to anyone? :O) but still keep the iphone around and give it some use without much complications. Anyways, thanks in advance for your time and answers, I really appreciate it!!! :D

    Backup your phone before restoring and then you can't possibly lose any data.
    You should also be syncing your phone with iTunes, iCloud or some other service, so that data should be safe and re-appear on the phone when you set it up again with the same sync service.

  • If I have converted my purchased iTunes songs to a lower bit rate what will happen when I join iTunes match? Will they match up or will these be stored as duplicates of the same song?

    If I have converted my purchased iTunes songs to a lower bit rate what will happen when I join iTunes match? Will they match up or will these be stored as duplicates of the same song?
    I ask because I primarily use my work laptop which has limited space so I usually convert my purchases to 160k from 256k in order to save space. I want to sign up for iTunes Match but I'd like to know before I do so I can understand how I will have to set up my library.

    crichton007 wrote:
    What I may do is start a brand new library there, copy my tracks from my work laptop using Home Share and then the script to get things in sync before starting over again there too.
    Why create a new library? Just add the tracks from the laptop to the existing library on the Mac.
    crichton007 wrote:
    I was just hoping to hear definitively whether or not there was some sort of intelligence built into iTunes Match that would match these up...
    How do you mean? If you down-convert purchased tracks you've fundamentally changed the files so iTunes can no longer recoginize them as "purchased." And, indeed, they no longer are since they are brand new files. Of course these new files will only be "matched" or "uploaded."

  • What happens if I make a picture album on my ipad or iPhone and then sync with my Mac? Will it add a new album to iPhoto on my Mac? Also, what will happen if I add pictures on my ipad to existing albums that I made in iPhoto on my Mac?

    What happens if I make a picture album on my ipad or iPhone and then sync with my Mac? Will it add a new album to iPhoto on my Mac? Also, what will happen if I add pictures on my ipad to existing albums that I made in iPhoto on my Mac?

    ubercoder wrote:
    So what I have gleemed from this thread - is that Apple will not help me if an iPad mini is dropped and the screen breaks.  I would have lived without the insurance if I could have simply bought a new screen and then had it replaced by Apple.
    On something so fragile I would have expected a piece of glass to be a replacement part. But I am glad I made this post because now I no for sure if I break the screen there is no way to have it fixed by Apple and keep it in Warranty.
    Yup, kind of like anything else you accidentally break that is more cost effective to replace than to repair. Keep that iPad away from the toddler

  • What will happen if I don't use apple's hdd?

    My HDD is passed away.
    I'm using Macbook Unibody(A1342) and I will replace the HDD.
    I heard that Apple's HDD has a temperature sensor.
    So that If I don't use that, it will be a problem, as I heard.
    What will happen if I don't use the Apple's HDD?

    The tempeture sensor is on the logic board not the hard drive. Apple doesn't make any hard drives they buy them from other manufacturers.
    For a new hard drive try Newegg.com  
    Regular SATA drives http://www.newegg.com/Store/SubCategory.aspx?SubCategory=380&name=Laptop-Hard-Dr ives&Order=PRICE  Use the list at the left for larger and faster drives.
    SSD drives
    http://www.newegg.com/Internal-SSD/SubCategory/ID-636?Order=PRICE  Use the list at the left for larger and faster drives.
    Or OWC for regular hard drives and SSDs  http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/
    Here are video instructions on replacing the hard drive on the White Unibody http://eshop.macsales.com/installvideos/macbook_13_09_unibody_hd/
    To transfer your current hard drive I like the applications Carbon Copy Cloner or SuperDuper. They make a bootable copy of everything on your hard drive. http://www.bombich.com/index.html or http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html 
    You'll need a cheap SATA external hard drive case. Put the new drive in the case then format and partition the new drive and clone your old drive to the new one. Check that it's set up right by booting up from the external drive. Then replace your old hard drive with the new one and put your old one in the external case.
    Here's a cheap SATA external hard drive case on Amazon http://www.amazon.com/Vantec-NexStar-2-5-Inch-External-Enclosure/dp/B002JQNXZC/r ef=pd_cp_pc_0
    If you don’t have the tools to open up the MacBook OWC has a set for $5
    http://eshop.macsales.com/item/OWC/TOOLKITMHD/

  • What will happen if I return refurbished iPod?

    I made a stupid mistake when I recently ordered a refurbished iPod Nano for my girlfriend for Christmas.
    I just didn't realize that the refurbished unit was a 1st generation iPod; I thought I was buying her a 2nd generation unit.
    So, what will happen if I return the iPod? The box has been opened and she has used it for a couple of days. Will there be a restocking fee or anything of that sort?

    Thanks for the reply and link.
    Looks like I might be in trouble since I threw the box away.
    I wonder if their "All products must be packed in the original, unmarked packaging" applies to refurbished products that just come in a plain brown box?

  • What will happen if i install lollipop from another region ?

    Hello guys,
    I have Z2 and it seems that sony has released lollipop for nordic regions (http://forum.xda-developers.com/xperia-z2/general/lollipop-690-z2-z3-z3c-t3056997)
    but mine is UK version. (not carrier locked or something)
    I wana know if its safe to install this version on my phone. And What will happen if i install it ?

    There are different model number and these are what let us know where in the world or area you are and what bands or networks frequency's your phone will work on so Flashing a EU firmware onto a US device may make your phone stop working ie:receiving a network signal you may also notice that a Z3 for example has different model numbers like D6603, D6643, D6653 and D6616 so flashing a D6653 firmware onto a D6603 could make your device what's known as a brick
    For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled.   Richard P. Feynman

Maybe you are looking for

  • Query related to Authorization profile.

    Hi Professionals, Please help me out as I'm not a BASIS consultant but PP..... We've created Users profile and assigned them profiles that contain a particular bunch of Transaction codes module wise. Now we want to to create and assign such a Authori

  • Lightning male to male cable?

    Hi guys, I am upgrading sound/video in my car to be compatible with an iphone 5s and am in need of a lightning male to male cable.  Let me explain... Inside the dash, I'll be installing an hdmi to composite video adaptor.  That will be fed by the app

  • Problems when doing a mirrored display

    Hello there. I recently got a KVM switch to use for an iMac g3 and an intel mini. The intel mini works perfectly with it, and the imac does kinda. It should be noted that the iMac is running Mac OS9.2.2. I have both computers hooked up to a 17in lcd

  • Microphone problem, N86

    Hi! I have experienced 5 times that the person im' calling on the other line can't hear what im saying.. Have the 21.006 FW. Microphone problems? Restarted the phone, and the problem is still there.. N8 FW: 022.014 -- Please separate Artist & Albums!

  • Upgrading OWB from 10.1.0.4 to 11.2

    Hi, We have plans to upgrade OWB in our environment. OWB - 10.1.0.4 DB instance - 10.2.0.4 OWF - 2.6.4 Planned OWB upgrade -> 10.1.0.4 to 11.2.0.2 (as most of the bugs were fixed in this version) As far as my study, I have learnt that we got to do an