How to launch my RESTful TEST with JAVA EE application in NetBeans 6.5

Hi, I want to TEST my RESTful WebService in my JAVA Enterprise Application.
I have a bit database in my EJB Module. Resuming, I have two modules (EJB + WAR) and Enterprise Application (JAVA EE that contains the before modules). Appears two kind of errors:
1) When I only deploy JAVA Enterprise Project an then I run my TEST Restful, appears an error that says: "Another module has been deployed" . This error is about JAVA Enterprise Application has been deploy before.
2) If I only deploy TEST Restful, this doesn't find Facaderemote class of my EJB Module, because WAR Project hasn't the EJB references.
Thanks a lot.

VM7, welcome to the forum. Please don't post in threads that are long dead and don't hijack other threads. When you have a question, start your own topic. Feel free to provide a link to an old post that may be relevant to your problem.
I'm locking this thread now.
db

Similar Messages

  • How to launch an Internet navigator with Java

    In my java interface I would like to make a button which, when we clicked it, launch an internet navigator.
    Is there a function which allows that?
    Is this function platform-dependant?

    hi,
    if you mean in windows you could detect if it is NT (NT meaning NT, 2000 and XP) or not (98, 95, ME):
    try {
         Properties systemProps = System.getProperties();
         String osVersion = systemProps.getProperty("os.name");
             if (osVersion.equals("Windows 98"))     {               
              Runtime.getRuntime().exec("start helpFiles/help.html");
         else {
              Runtime.getRuntime().exec("cmd.exe /c start helpFiles/help.html");
    }catch(IOException err) {
         JOptionPane.showMessageDialog((Component)e.getSource(), "Help File Not Found!", "ERROR!", JOptionPane.ERROR_MESSAGE, new ImageIcon("questionmark.gif"));
    }

  • How to launch a browser from a java/MAC application

    I know, this topic has been brought up over, and over, however I couldn't find info regarding MAC environments. I don't have any former experience with MAC, but now I'm getting desperate for a solution. I need to be able to launch the default browser showing a certain URL on MAC/OS. Any clue would be appreciated.
    thanks,
    m. berdan

    I wrote libraies that will do this:
    http://ostermiller.org/utils/Browser.html
    I also keep a list of other resources to help you out:
    http://dmoz.org/Bookmarks/D/deadsea/Java_Help/Web_Browser/
    Stephen

  • How to use a progress bar with java mail?

    Hi, i'm new here.
    I want if someone can recommend me how to show a progress bar with java mail.
    Because, i send a message but the screen freeze, and the progress bar never appear, after the send progress finish.
    Thanks

    So why would the code we post be any different than the code in the tutorial? Why do you think our code would be easier to understand? The tutorial contains explanations about the code.
    Did you download the code and execute it? Did it work? Then customize the code to suit your situation. We can't give you the code because we don't know exactly what you are attempting to do. We don't know how you have changed to demo code so that it no longer works. Its up to you to compare your code with the demo code to see what the difference is.

  • How do I compress a string with  java.util.zip - not a file ?

    How do I compress a string with java.util.zip?
    Is possible to compress something else except a file?

    Of course, compression works on bytes, not some higher level constructs like Strings or files.
    You can use the ZipOutputStream or DeflaterOutputStream for compression.
    And the javadoc for Deflater even has a code example of compressing a String.
    Edited by: Kayaman on May 22, 2011 5:04 PM

  • How to launch Apple Hardware Test from a USB optical drive?

    Hi all!
    First off, and before you guys starting proposing solutions I can't implement, I don't, repeat DON'T have a Firewire optical drive, nor am I going to buy one: I recently had to buy a USB LG optical drive to compensate for my SuperDrive going AWOL on me. I used said drive to reinstall OSX about a month ago, so this LG drive works just fine, thank you.
    The thing is, I'd like to conduct an Apple Hardware Test, and I know you have to boot from OSX CD n°1 (in my case) to do that. Alas, since I can't boot from the CD in my SuperDrive by keeping the D key down, all I have is this LG thingy, and I wonder how I can conduct my hardware test with a USB optical drive.
    I'll sum it up for you:
    1) My SuperDrive isn't working, stopped working about the same time I installed this EFIng (guffaw, guffaw) Security Update 2009-001;
    2) I don't have a Firewire optical drive;
    3) All I have is a USB optical drive and MacOS X CDs.
    4) Booting with the OSX CD in my USB optical drive and keeping D, C or alt keys didn't help.
    I read in another forum that you could somehow copy the content of the OSX CD on a flash drive, then boot from the flash drive and conduct an AHT, but I'm not sure how it can be done.

    Hi!
    Looks like we posted at exactly the same time, Glynn! LOL
    Anyway, I did just what you said, drag'n'drop and all. The problem is, when I boot from the USB hard drive, it's exactly as if I were booting from the CD: first I'm asked to choose a language, then the install screen appears, and I can either reinstall on my startup disk from the USB hard drive (that's kinda cool, but I don't think I leave in on my USB hard drive, which can only content 40Gb, because I've almost 25Gb worth of data to retransfer soon...
    So, in a nutshell, I couldn't find Apple Hardware Test anywhere. I even explored the CD content, but there are so many files...
    What's my best option now? Could AppleJack help me here? Can I install AHT on my startup disk and boot on it using a special set of keys?
    Almost time to go to work. A 5 minute walk, though...

  • How to create a SAS Dataset with Java

    Hello All,
    The subject line says it all. Does anyone out there know how to create a SAS Dataset using Java? I Googled it and searched here with no luck.
    Thanks
    KP

    Some parts of SAS appear to have been exposed via a Java API through this product:
    http://support.sas.com/rnd/app/da/workshop/faq.html
    Hope that helps
    Lee

  • How to launch pdf javascript controls in java

    Hello,
    Here is my problem.
    We have a pdf (acroform) with controls in javascript on many fields.
    We have an xml with data to fill in the acroform.
    We made a java program, with the iText lib, to fill the pdf acroform with the xml. It's working fine, except that the javascript control are not launched. So if there is a problem in the xml, the pdf is wronlgy filled in.
    Is there a way, to launch the javascript controls in java? What library to use??
    Thank you, (sorry if my english is not good).

    Yes, it's server-side pb. The thing is, I don't really know what technology / library we can use to deal with this problem.
    If you have any idea that coul guide me...

  • C++ can send a "struct" over TCP.How to do the same fuction with JAVA?

    as Title~
    C++ send a struct like the following...
    NEO_MSG neo_msg;
    struct NEO_MSG
    int iPortRecv; // port for recv data of client
    char verify;
    ////After create a TCP connection....
    send(ServerSock, (char*)&neo_msg, sizeof(neo_msg), 0);
    How to rewrite it with JAVA?

    If you are trying to do it in a way that is compatible with C++, then you'll need to write the bytes to the socket. You can do this by wrapping the socket's output stream with a DataOutputStream, then writing each value in order.
    Remember that a C++ struct is just a convention of accessing a linear array of bytes, so the above is equivalent.
    If you are just trying to send an Object's data over a socket (to another Java app), then you can wrap the socket's output stream with an ObjectOutputStream, then just write the object to it.
    - K

  • How to create a school test with Keynote?

    I would like to create a school test with Keynote.
    I've been able to do everything but one last very important thing: RESULTS!
    I have slides with multiple choices questions that link to other slides, but how to have a resumé of the student answers? Something like a report of every click...
    Thoughts?
    Thanks a lot in advance
    M.

    Open the Sharing pane of System Preferences and enable Internet Sharing over AirPort.
    (59391)

  • How to call a C method with Java

    Hi all,
    is it possible calling a C method with Java?? And how to...?
    thx for helping
    Cobol1

    is it possible calling a C method with Java?? And how to...?Not in general no.
    You can use JNI which will call another C function (which you write) and which then calls your C method.
    If the method is of a specific type (like OLE, Corba) then there are packages available which can allow you to access it. They still use JNI underneath, but hide that functionality from you.

  • How to use the Rc4DLL.dll with java (jre1.4 )

    I am not able to use Rc4DLL.dll with java, there are some characters (encrypted using Rc4DLL.dll) that java is not able to identify. So while decrypting in java using Rc4DLL I am not getting the desired output (as some character java tries to decrypt are not supported with java). Could some one give a solution of using Rc4DLL with java jre 1.4

    RC4 cipher is supported by 1.4.
    And surely you can turn a link to the 1.5.0 JCE Reference Guide into a link to the 1.4.2 Reference Guide? I did. Took me 5 seconds to check that. As opposed to wasting a day and a half in forums like you just did.

  • How to validate the Xml File With Java

    Hi,
    Can pls tell me. I want to validate the XML File for the Some Mandartory TAG. if that if Tag null i want to generate error xml file with error and i want move another folder with java. pls help me as soon as possible

    Use a validating parser (any recent Xerces, for one) and switch on the validation feature. Very much vendor-specific, so look at the docs of your parser. Oh, you do have a schema for these documents, don't you?

  • Apple IIGS RGB Monitor How ot Hook up to test with a PC

    Hi,
    I'm hoping I came to thr right place. I have a Apple IIGS RGB monitor I have no way to test it. I no longer have my old IIGS to test this with. I came across this from someone tossing it out. I was hoping to make a RGB to VGA cable but was wondering if anyone has tried this and if tis possible, what did they test with an old pc? Or do you have a better alternative. THe best way it to get a IIGS but that isn't possible at this point. Any and all help would be really apprecaited. I would like to check the monitor and see if it works.
    Thanks in advance,
    Nick

    Many Apple displays of about that timeframe used a DB-15 (two rows of pins) connector. Adapters to VGA (three rows of pins) are readily available from multiple sources that deal in older Mac equipment. The adapters shuffle the five crucial signals (Red, Green+Intensity, Blue, Horizontal-Sync, and Vertical-Sync) so that they line up on the correct pins for VGA. There is only ONE way to connect the five key signals that will produce a picture, and every adapter (that is not defective) will connect those signals correctly.
    You must be careful to get an adapter that has the right male and female connectors. There are two main types, one intended to adapt Mac displays to VGA computers, and the other intended to adapt older Mac computers to VGA displays.
    Mac adapters also provide a code on pins 4, 7, and 10 that tells the older Mac what class of displays is attached, If you plan on using this with a Mac later, you will need the right adapter, or one with tiny switches. The various adapters differ ONLY in the ID bits on pins 4, 7, and 10, not in the basic connection of the Video signals.

  • I can't get firefox to launch I'm getting a java script application - bbyln is nt defined

    I can't get firefox to launch. I'm getting an error report:
    java script application - bbyln is not defined

    [ I've solve ] Well, I was too upset from the errors of babylon, sometimes it didn't allowed me to browse internet and oftentimes it ruined my new(default) tab opening parameters, so finally after damn research i figured it out how to get rid from these errors.; these files (software /errors) weren't visible anywhere e.g. control panel, system32 etc. i got em from C:\......, then i deleted em and got a complete calm. so here you go and remove both things;
    C:\Program Files\Mozilla Firefox\searchplugins (bbyln.dll).
    C:\Program Files\Mozilla Firefox\extensions (bbyln folder)
    after to remove (babylon) relevant files restart your Mozilla firefox. WAIT. WAIT. don't forget to complement me...just say loudly....Well done dude, You're Genius ....O_o....!!!!
    Sure, it'd be helpful because its not me its my experience talking to you.

Maybe you are looking for