Application of JAX - RS not deployed when a part of the EAR

I have a WAR file that contains a JAX - RS application. In the stand-alone deployment, I can access different resources. When instead this WAR file is deployed as part of an EAR, and then the JAX - RS application is not recognized by WebLogic and none of the JAX - RS are available.

My JAX - RS application is very simple:

MyApplication.java

package company.rest;


@ApplicationPath("/")
public class MyApplication extends Application {
    @Override
    public Set<Class<?>> getClasses() {
        HashSet<Class<?>> classes = new HashSet<>();
        classes.add(MyResource.class);
        return classes;
    }
}

MyResource.java

package company.rest;

@Path("/foo")
public class MyResource {
    @Produces(MediaType.APPLICATION_JSON)
    @Path("/")
    public String list() {
return "[1,2,3]";
}
}



I have a weblogic.xml:

<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app">
  <context-root>my/api/1/rest</context-root>
</weblogic-web-app>

Then application.xml for ear is empty.

(Incidentally, I don't understand why the weblogic.xml is necessary. I tried to put the path of the context everything in the @ApplicationPath of the MyApplication but who was honored not...)

When I deploy, I see in weblogic is that war MyApplication is deployed as a type of Web Application of 'Module' under the EAR. There is however no listed Web service. Also, if I click on the war MyApplication then look under surveillance, both tabs Web Applications and applications of JAX - RS show no entry.

What I am doing wrong?

In the greatest demand, I started to disable some wars / RPG are included in the ear and then he started to work identical to the minimal example. Somewhere, there is a conflict with the libraries in the ear / various wars, but I do not get any type of output in the paper, etc. It is not simply recognize the war as file containing resources of JAX - RS.

Tags: Fusion Middleware

Similar Questions

  • I realized that I had a message to update for a while then when I checked, I found that the app CC was missing. I downloaded and installed the application, but it will not update of software. In the creative cloud Panel, the only options I get are the Hom

    I realized that I had a message to update for a while then when I checked, I found that the app CC was missing. I downloaded and installed the application, but it will not update of software. In the creative cloud Panel, the only options I get are the Home tab to check the activity and the Stock tab. The applications tab is missing. How can I get that back so I can update photoshop and lightroom?

    Please, try the steps mentioned here https://helpx.adobe.com/creative-cloud/kb/apps-panel-reflect-creative-cloud.html

    Let me know if it works!

  • I downloaded bridge in my application, but it will not start when I click the icon

    I downloaded bridge in my application, but it will not start when I click the icon

    Hello

    Did you try to unsintall and reinstall the application?

    Kind regards

    Sheena

  • button refresh Foxfire did not work when clicked on for the past two weeks

    button refresh Foxfire did not work when clicked on for the past two weeks

    Hi, see controls customize Firefox, buttons and toolbarsand click on restore default settings.

    If this does not help, Try Firefox Safe Mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    If Firefox does not work, you can start Firefox in Mode safe as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • My DVD player does not open when I click on the button

    Hello

    I hope someone can help me.
    My DVD player does not open when I click on the button.

    I tried clicking on eject on the DVD drive icon in my computer and it comes up with an error message.
    I think I deleted the cookies the other day. Who would have something to do with the problem?

    Any help would be greatly appreciated that I really don't want to send my phone to a technician.

    Hello

    Try to manually open the CD/DVD drive.
    Near the eject button, you will find a small hole.

    You can use a small object like staple and could push gently into this hole.

    Usually, this should help to open the drive manually.

  • the Task Manager does not appear when right-clicking on the taskbar

    The Task Manager does not appear when right-clicking on the taskbar

    Hello

    It appears when you press ctrl + shift + ESC? It seemed before? You are an administrator on this computer or is it a corporate system?

    If he has suddenly ceased to be available, it's a good sign that you have picked up a virus or some kind of malware. Formal analysis in safe mode is your first line of defense.

    Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • HP Pavilion G6 computer 1093SA laptop does not charge when I plug in the power adapter

    HP Pavilion G6 computer 1093SA laptop does not charge when I plug in the power adapter

    The battery is dead. When I try to turn on the laptop by plugging the AC adapter does not charge or led power LED does not turn on. But when I press the power button, the power, the indicator flashes and turns off (when power adapter connected).

    (1) I tried the press and holding the power button for 30 seconds after removing the battery & AC adapter / CC.

    (2) I tried to change the power adapter too.

    The problem is that it is.

    Your advice is very much appreciated.

    Thank you best regards &,.

    Zia

    Dear customer,

    Welcome and thanks for posting your question on the Forum of Support HP

    It seems that you are not able to turn on the laptop and tried to solve the problem

    Please perform steps listed to find out if it is a hardware or software problem below:

    1. remove all cables and devices, disconnect them and try to turn on the device

    2. check the LED light situation and ensure the action of the spring button / stop is normal

    3 Exchange with a well known power cord and the AC adapter

    4 Pack no adapters are available, check if the power adaptor is slightly warm

    Note: This will give us an indication that the power adapter could be good

    5. do you know if the laptop was in battery or power adapter when you used the last time

    Note: Make sure that there is no spill of liquid or cutting

    6. check if the Port of the AC adaptor is loose/broken

    Note: If the laptop is not on even with a power adapter well known, this confirms the hardware failure with the system board or power DC Circuit

    Hope this helps for other queries to answer the post and feel free to join us again

    * Click on the star of CONGRATULATIONS on the left to say thank you *.

    Make it easier for others to find solutions by checking a response "Accept as Solution" if it solves your problem.

    Thank you

    K N R K

    I work on behalf of HP

  • Error when sending to recipients CC: your message did not reach all or part of the recipeints

    When I send emails to recipients CC or BCC recipients, I get a message that says:

    Your message did not reach all or part of the recipeints

    The following recipients could not be reached:

    BUT IT DOES NOT LIST WHO DID NOT GET THE EMAIL. HELP PLEASE

    Hello Joanmary,

    Thanks for posting in the Microsoft Answers forum! In order to help us help you with your problem, please post back to let us know what e-mail client and web browser that you use.

    If you use Windows Live Mail, you can post in the forum below for more specialized assistance:

    http://windowslivehelp.com/

    Please let me know if this helps J

    Adam
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • My wireless router does not appear when I shoot to the top of my devices. It shows my fax, modem, scanner and a few others. But not my belkin wireless.

    My wireless router does not appear when I shoot to the top of my devices. It shows my fax, modem, scanner and a few others. But not my belkin wireless. And when I try to add it, the system can't find it. Please help

    Belkin support for your model, for installation instructions.

    Your router will not appear in the devices

  • I have photoshop cc 2015. For the last 2 days it does not open when I double click the icon. What should I do?

    I have photoshop cc 2015. For the last 2 days it does not open when I double-click the icon. What can I do to fix this?

    OK completely reboot Windows 7. When he started to look in the Task Manager under process for photoshop.exe it shouldn't be there. If it is highlighted and press the button end process. Now right-click the Photoshop icon and select run as administrator. Photoshop starts, you should see photoshop.exe in the list of running processes. When you close Photoshop it should disappear from the list.

  • I have problems with the shopify widget in Muse. I have configured my shopify store, but when I placed the button 'buy' is didn't tell the product no availabe longer and does not appear when I'm writing the site.

    I have problems with the shopify widget in Muse. I have configured my shopify store, but when I placed the button 'buy' is didn't tell the product no availabe longer and does not appear when I'm writing the site.

    Please contact the original publisher of the widget.

    Thank you

    Sanjit

  • SVG to work when it is run animate(ctrl enter) dashboard but not on when I open just the html file

    Hello

    I make a game AB = nimate and I have a character of svg that can be custom colored. It works fine when I run the code of edge animate(ctrl enter) but not on when I open just the html file

    I get this error:

    Uncaught SecurityError: cannot run "getSVGDocument' on 'HTMLEmbedElement': blocked a frame with original 'null' to access a setting with original 'null '. Must correspond to areas and ports, protocols,.

    EdgeCommons.js:130

    and click in the interactive svg part is not recognized...

    Someone at - it anidea how to fix? I don't think it's my code because it works without problems during the preview in the browser host. BTW, I use chrome browser locally.

    any help appreciated.

    Thank you

    It is a security error Chrome because of its policy of origin even on local files.

    If you run it on a server (like when you watch of animate) you will not face this error.

    I don't know if there is a way around this.

    See for more information, see if any of the solutions provided you should be http://stackoverflow.com/questions/3076414/ways-to-circumvent-the-same-origin-policy

  • Annoying Message "not connected" when TV goes to the Source of ATV4

    I use my Apple TV 4 as one of the three input sources for my new 65 ' 4 K Samsung TV. TV uses its system Anynet + (HDMI-CEC) to control the switching and control of the three entrances (the other two are cable box and a Blu Ray player).  This works perfectly except when I turn to the Apple TV 4 as a source. The screen then displays a message saying "Anynet + source not connected, please check the connections" for a minute. Otherwise, everything works correctly with picture, sound and control. The message disappears after a minute, but is a gene in a good state of market system.

    This moved not with my previous 3 ATV. Just, works and worked seamlessly. Only started happening when I replaced the 3 ATV with ATV 4. View from my layman, is that there is an oddity in Apple's application of the standard "HDMI-CEC' to the new ATV 4. One reason more why I'm not particularly excited by the 4 on the 3 ATV ATV.

    Has anyone seen elsewhere this sort of thing, and you have a recommended fix?

    If I don't get any input here suggesting a solution for me, I also wrote this up as a problem that need correction, on the Apple site.

    I have a Samsung TV and ATV 4.  I found what TV is off and ATV is off, then I turn on ATV TV source and changes of starts for himself.  Your problems is maybe because you change the source yourself?

  • SkillBuilders modal Page not opening when click on change the link in a manual Tabulo

    Hello

    This thread is related to a recent thread I created (I'm using Apex 4.1.1.00.27, Oracle DB 10.2.0.5.0column link does not work on a manual tabular form .

    In summary, I have a collection that retrieves the information from the EMP table, a manual tabular presentation based on this collection, as well as a link in the DEPTNO field this branch to another page with a form based on the DEPT table.

    What I want to accomplish is to call the DEPT form in modal form of page which opened from my EMP Page.

    What I've done so far:
    1 DEPT Page uses the popup template and creates a branch to itself.
    2. the attribute of the link to the link column (DEPTNO): onclick = * "return false;" *
    3. I created a DA using jQuery Selector: * td [headers = 'LINK'] a *. Action: SkillBuilders Page modal plugin. Location of the URL: attribute of the triggering element. Name of the attribute: href. Scope of the event: live (dynamic Apex 4.2).
    4 changed the Security Application allow to stir in frames.

    My problem is that when I click on the DEPTNO column, if he opens not modal Page.

    I created an example on apex.oracle.com in case some of you want to look at the question:
    Workspace: EDIAZJORGE
    User name: test
    Password: test123
    Name of the application: sample application
    Number of App: 12231

    I appreciate all help.

    Thank you

    Erick

    Whether you use a wrong jQuery selector. There are no columns with headers "LINK." Obviously, you want the modal to open by clicking on the icon in the column 'DEPTNO', so all that is needed is to change the selector on

    td[headers="DEPTNO"] a
    

    You can always easily test your selectors when you use a tool like Firebug. Just launch the selector in the console, and it will show you any selected objects. In your case, the execution

    $('td[headers="LINK"] a')
    

    revealed nothing. Drop still 'one' did not. At that point, I was pretty sure that there are no columns with a header...

  • My speakers does not work when I talk on the phone but when I have my headphones or have the phone up to my ear people hear me perfectly fine, please help.

    My iphone does not work on audio speaker and everything is perfectly fine, but when I'm on the phone and put my phone on speaker, no one can hear me not at all, but when I have the phone to my ear, or have headphones in people can hear me very well. I don't think it's a software problem, that my phone is updated with ios 9.3.5. Can someone help me please on this issue.

    Force restart the phone now sleep and home for 10 seconds, button until the Apple logo comes back again. You won't lose data.

    Have you tried plugging the headphones into an output a few times?

    Does say "headphones" when you toggle the volume and no headphones attached?

    More tips here:

    If you hear no sound or distorted sound from your iPhone, iPad or iPod touch speaker - Apple Support

Maybe you are looking for