Has more details? The stack trace, as example?

Richter

  ----- Original Message ----- 
  From: Muhammad Aamir 
  To: OJB Users List 
  Sent: Monday, January 12, 2004 10:28 AM
  Subject: RE: FW: NetBeans and OJB


  Yes Edson you are right and I've already done it and in this way
  OJB.properties is found but it give ExceptionInitilizer.. something
  exception.

  I want to know about netbeans-style referencing ?

  Aamir
  -----Original Message-----
  From: Edson Carlos Ericksson Richter
  [mailto:[EMAIL PROTECTED] 
  Sent: Monday, January 12, 2004 7:22 PM
  To: OJB Users List
  Subject: Re: FW: NetBeans and OJB

  You can try to put OJB .jar files in nb-home/lib/ext, as the JDBC
  driver. I think this because the DatabaseExplorer, as sample, allow you
  to work with some driver only if it is in ./lib/ext of netbeans.

  Try to put OJB.properties in nb-home/bin directory...

  Best regards,

  Edson Richter
    ----- Original Message ----- 
    From: Muhammad Aamir 
    To: OJB Users List 
    Sent: Monday, January 12, 2004 9:39 AM
    Subject: RE: FW: NetBeans and OJB


    No Success! :(  I've mounted a directory c:\work\test and
  OJB.properties
    is in it. What should I type after nz/.... ?

    What about repository.dtd ? How should I reference it from
    repository.xml ? using file:///c://... ?

    Should I also put jdbc driver jar in nb-home/lib/ext ?

    Sould I also put my own application classes ?

    Thank you v. much.
    Aamir

    -----Original Message-----
    From: Coup, Robert Muir [mailto:[EMAIL PROTECTED] 
    Sent: Monday, January 12, 2004 1:28 AM
    To: OJB Users List
    Subject: RE: FW: NetBeans and OJB

    Hello,

    Sorry about the late reply.
    We're using Netbeans to develop an app which also uses OJB, so I've
  been
    there and done this :)

    Before initialisation (ie. Any ojb-calls )
    ...
    System.setProperty("OJB.Properties",
    "nz/ac/auckland/markit/ojb/OJB.properties")
    ...
    ie. Using the netbeans-style resource referencing...
    I also found if you wanted to set spy.properties/log4j.properties then
    you needed to do the same thing

    In OJB.properties
    ...
    repositoryFile=nz/ac/auckland/markit/ojb/respository.xml
    ...

    Now, here's the trick.
    You need the ojb libraries in your classpath. This either means - 
     - make a module, declare dependencies and install the libs in
    netbeans-dir/modules/ext
     - do it the nasty way and install in netbeans-dir/lib/ext

    Good luck.

    Rob :)

    > -----Original Message-----
    > From: Muhammad Aamir [mailto:[EMAIL PROTECTED] 
    > Sent: Saturday, 10 January 2004 3:04 a.m.
    > To: OJB Users List
    > Subject: RE: FW: NetBeans and OJB
    > 
    > 
    > Edson,
    > 
    > Although I had tried to set complete path of OJB.properties 
    > (by System.setProperty("OJB.properties", 
    > "C:/work/easy/OJB.properties") ) and repository.xml (I've 
    > changed the repository.xml path in OJB.properties using 
    > file:///c:/work/easy/repository.xml) the problem had not been
  solved.
    > 
    > But I'll try to apply this again. In the mean time I'll be 
    > appreciate if someone could give me a clue for this problem.
    > 
    > Thank you v. much
    > Aamir
    > 
    > -----Original Message-----
    > From: Edson Carlos Ericksson Richter 
    > [mailto:[EMAIL PROTECTED] 
    > Sent: Friday, January 09, 2004 6:47 PM
    > To: OJB Users List
    > Subject: Re: FW: NetBeans and OJB
    > 
    > Hi!
    > 
    > I could answer you question. In NetBeans, go to
    > 
    > Tools -> Options -> Debbuging and Executing -> Execution 
    > Types -> External Execution -> Expert -> Working Directory.
    > 
    > Unfortunately, there is no equivalent option for Internal 
    > Execution (but the default execution for NetBeans apps is 
    > External Execution). In Internal Execution mode, the Working 
    > Directory is the NetBeans bin directory. So, if you need to 
    > use Internal Execution, you should set complete path for 
    > repository/ojb.properties.
    > 
    > I sugest you to use External Execution, and set Working 
    > Directory (to avoid annoiances).
    > 
    > I've collected these info in more than a year working with 
    > OJB inside NetBeans.
    > 
    > 
    > Best regards,
    > 
    > Edson Richter
    > 
    >   ----- Original Message ----- 
    >   From: Muhammad Aamir 
    >   To: OJB Users List 
    >   Sent: Friday, January 09, 2004 9:38 AM
    >   Subject: RE: FW: NetBeans and OJB
    > 
    > 
    >   NetBeans IDE is a wonderful modular application and you can 
    > develop your
    >   own application on top of NetBeans platform. I want to use
  NetBeans
    >   platform and my developed modules to build my application.
    > 
    >   The answer of your question that why I am using internal 
    > execution, is
    >   that I want to do some experiments with Open IDE API (an API to
    >   communicate with NetBeans IDE components). And internal 
    > execution uses
    >   the same virtual machine in which NetBeans IDE is running.
    > 
    >   Aamir
    > 
    >   -----Original Message-----
    >   From: Thomas Dudziak [mailto:[EMAIL PROTECTED] 
    >   Sent: Friday, January 09, 2004 5:20 PM
    >   To: OJB Users List
    >   Subject: RE: FW: NetBeans and OJB
    > 
    >   Well, I'm no expert when it comes to NetBeans (I prefer 
    > Eclipse). What
    >   is
    >   the benefit of internal execution vs. external execution ?
    > 
    >   Tom
    > 
    > 
    > 
    >   
    >
  ---------------------------------------------------------------------
    >   To unsubscribe, e-mail: [EMAIL PROTECTED]
    >   For additional commands, e-mail: [EMAIL PROTECTED]
    > 
    > 
    >   
    >
  ---------------------------------------------------------------------
    >   To unsubscribe, e-mail: [EMAIL PROTECTED]
    >   For additional commands, e-mail: [EMAIL PROTECTED]
    > 
    > 
    > 
    >   ---
    >   Outgoing mail is certified Virus Free.
    >   Checked by AVG anti-virus system (http://www.grisoft.com).
    >   Version: 6.0.558 / Virus Database: 350 - Release Date: 2/1/2004
    > 
    >
  ---------------------------------------------------------------------
    > To unsubscribe, e-mail: [EMAIL PROTECTED]
    > For additional commands, e-mail: [EMAIL PROTECTED]
    > 
    > 

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [EMAIL PROTECTED]
    For additional commands, e-mail: [EMAIL PROTECTED]


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [EMAIL PROTECTED]
    For additional commands, e-mail: [EMAIL PROTECTED]



    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system (http://www.grisoft.com).
    Version: 6.0.560 / Virus Database: 352 - Release Date: 8/1/2004

  ---------------------------------------------------------------------
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]




  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.560 / Virus Database: 352 - Release Date: 8/1/2004

Reply via email to