WAR cant recognize EJB packages

Using netBeans 5.5, I have built an Enterprise application (without an ejb module) and then attempted to add an existing ejb module to the app. I did the following to add the ejb module, but my servlets keep showing errors that the packages from the ejb module are not recognized.
I right clicked on the main enterprise project and selected add Java EE module, then selected the ejb module I want.
I added the ejb jar to the libraries of the Enterprise project and the WAR project
But it still is not recognizing the packages. Is there another step I have missed?

Never mind!

Similar Messages

  • I get an error from iTunes saying it cant recognize the "iPhone"

    I just upgraded to itunes 7.6.0.29, after that got a pop up with a message from iTunes saying it cant recognize the "iPhone" and to detach it and try again.
    Just for verification uninstalled 7.6 and reinstalled 7.5. The problem went away. Then upgraded the iPod Touch software to version 1.1.3
    Thinking that with the new SW version in the iPod maybe the problem went away upgraded again iTunes to 7.6 just to get the same error again.
    Any way to "fix" this? or should I re-install 7.5 and wait for 7.7?
    Any help will be appreciated.

    Hi there,
    follow the following steps below and it shud sort ur problem.
    "THE FIRST AND FOREMOST BLUNDER THAT WE HAVE DONE IS OUR ITUNES VERSION SHOULD BE 7.6 IN ORDER TO UPDATE THE IPOD SOFTWARE/FIRMWARE TO 1.1.3 FROM WHAT EVER OLDER VERSION WE HAVE."
    *MAKE SURE THE ACTUAL EXISTING VERSION OF THE ITUNES ON YOUR
    COMPUTER/LAPTOP
    STEP 1:Friends what I have done is I disconnected my IPOD from my laptop and
    firstly downloaded the ACTUAL (EXISTING OLDER) ITUNES version (7.5) that I
    initially had while i was DOING THE BLUNDER OF UPDATING THE FIRMWARE TO
    1.1.3.
    YOU CAN DOWNLOAD THE OLDER VERSIONS FROM THIS SITE:
    http://www.filehippo.com/download_itunes/?3694
    STEP 2: Once the ITUNES (older version) dump is available on your computer
    uninstall the ITUNES and all the IPOD related stuff from your computer
    from Start>Control panel>ADD/Remove programs.
    Step 3: Restart ur computer and reinstall that older version ITUNES software
    again.
    Open the ITUNES software.
    Step 4: Now connect your IPOD and the ITUNES will prompt you that an IPOD in
    recovery mode is detected. It will ask you if u want to recover it to the
    factory settings by clicking on "restore" under the "summary" tab on
    ITUNES. Before doing this the very important step we need to do is to
    UPDATE THE ITUNES VERSION FROM THE EXISTING OLDER VERSION TO 7.6 WHICH IS
    VERY IMPORTANT.
    STEP 5: To do this click on the HELP menu on the top and click on CHECK FOR
    UPDATES. Thats it the ITUNES will be updated to latest version which will
    allow us to update the IPOD'S FIRMWARE to 1.1.3 as well.
    STEP 6: Now go to the summary tab of the IPOD and click on restore> wait for the
    restoration process to carry on and the IPOD should be running back to
    normal.
    WELL FRIENDS THIS WHAT I HAVE DONE ON MY IPOD AND THE PROBLEM IS SORTED.
    I HOPE THIS SHOULD SORT YOUR PROBLEMS AS WELL.

  • My ipod touch 2g cant open and itunes cant recognize it too

    my ipod touch suddenly blackout after un plugging it to my pc after that it heated up i mean literally it heated up then i try plugging it again but it wont open and the itunes cant recognize it please help me

    Try the remaiing suggestions of the following. If not successful then it is time for an appointment at the Genius Bar of an Apple store.

  • Error:ejb package does not exist

    I seem to be having a problem with recognizing my EJB packages. I tried putting some quick & dirty java code directly into a jsp to see if I can use the EJB correctly. I keep getting compile errors that the package is not there:
    testEJB_jsp.java:8: package com.hs.ejbs does not exist import com.hs.ejbs.*;
    testEJB_jsp.java:66: package com.hs.ejbs does not exist
    com.hs.ejbs.XreviewsLocalHome rv;
    ^
    testEJB_jsp.java:73: package com.hs.ejbs does not exist
    rv = (com.hs.ejbs.XreviewsLocalHome) c.lookup("java:comp/env/ejb/XreviewsBean");
    I have tried putting the jar files in several locations and adding those locations to my class path. Apparently I still do not have the right path there.
    Here is my code:
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@page import= "javax.ejb.*" %>
    <%@page import= "javax.naming.*" %>
    <%@page import= "com.hs.ejbs.*" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>testEJB</title>
        </head>
        <body>
    <%
        SessionContext context;
        com.hs.ejbs.XreviewsLocalHome rv;
        try {
            javax.naming.Context c = new javax.naming.InitialContext();
         rv = (com.hs.ejbs.XreviewsLocalHome) c.lookup("java:comp/env/ejb/XreviewsBean");
        } catch(Exception e){
        out.println("ejb retrieval error e="+e);
        out.println("made it past the ejb retrieval code");
    %>   
        </body>
    </html>Assistance will be greatly appreciated.

    Hi,
    You can get this by putting your jar file in
    YourApp/WEB-INF/lib folderstill if you are not getting then extract the jar file in
    YourApp/WEB-INF/classes folderok
    bye

  • Cant find a package

    I am trying to compile an example i found on web to send snmp traps but I cant find the package it uses.
    where can i find it ?
    regards
    Sami
    package com.sun.content.server.foundation.snmp;
    public class SnmpTrapTest {
    * For unit testing.
    * @param args an array of command-line arguments
    public static void main(String[] args) {
    try {
    System.out.println("Starting...");
    SnmpTrapSender sa = SnmpTrapSender.getInstance();
    // new SnmpTrapSender("172.16.1.38", 162);
    sa.sendTrap(SnmpConstants.SNMP_TRAP_DBCONNECTION_DOWN, "DB Down Test");
    sa.close();
    System.out.println("Done...");
    } catch (Exception e) {
    e.printStackTrace();
    System.exit(0);
    }

    i got this while googling the web
    [http://www.sun.com/software/products/delivery_server/index.xml]
    in the comments at the beginning of file, it said this:
    * Title: Content Delivery Server
    * Description:     Manages sending traps to the specified NMS
    * Version:          1.0
    */i'm not completely sure, but this was what I could find so far
    this link too for the link provided for the license in the comment in the code:
    [https://opencds.dev.java.net/]
    nvm... check out the link just above (opencds)
    also check out their api, here's a link to their doc's page:
    [https://opencds.dev.java.net/pages/documents/index.html]
    Edited by: scphan on Apr 14, 2009 5:44 PM
    Edited by: scphan on Apr 14, 2009 5:47 PM
    Edited by: scphan on Apr 14, 2009 ~5:49 PM

  • Javax.ejb package

    Hi
    I am new to java, i just want to understand this, does the javax.ejb package come with J2EE jar file or must i download an SDK of some sort to have it my environment? I am currently using NetBeans 5.5 and getting package does not exist error.
    Someone please clarify
    thank you

    Actually the javax.ejb package is not present ordinary J2SE.
    It's present in the J2EE v1.4. You can download this from http://java.sun.com/j2ee/1.4/download.html.
    The javax.ejb is present in the j2ee.jar which is present in C:\Sun\AppServer\lib\j2ee.jar (installed in C: drive).
    Before compiling, classpath needs to declared either in environmental variables or in the command prompt.
    classpath: C:\Sun\AppServer\lib\j2ee.jar;C:\Sun\AppServer\bin;
    Then your javax.ejb package will be included.

  • Import EJB packages missing.

    Hi,
    running few examples I noticed that
    when generating code from EJB CMP 2.0 the
    tool doesn't include (in the import section) the EJB packages. And so the code won't compile.
    Am I missing something ?

    Giuseppe,
    I tried a few examples using the 9.0.3 Mapping Workbench, and while the import line wasn't added, all declarations of EJB classes were fully qualified, so an import shouldn't be necessary for compilation.
    Can you give any more details?

  • The nsu cant recognize my n95, i need help

    hi the nsu cant recognize my phone although i reisntall it and the nokia pc suite again and again, and followed the help instructions.
    i need another version of the nsu- older version to try to use it and it may help with the problem.
    does someone has an older version of nsu or can tell me where can i find it?
    thank you in advance
    yuval

    Hi subress
    Unfortunately if you're looking to update N95 to v21.0.016 you have to use latest version v1.4.23en of NSU. As previous poster mentioned any empty or corrupted registry keys from previous installations can prevent NSU from installing correctly.
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • Cant Drop the Package

    Hi,
    I am using Oracle 10G i tried to drop a package in TOAD i used the default option called drop object.
    But I cant Drop the package... Still its showing processing script only......
    I killed the process and tried again its give the same problem.
    Please give me some inputs to drop the package.
    Cheers,
    Jaya

    Then the package is either being used somewhere or is in dormant state with some process,
    Visit Ask Tom-Ora-04021 and search for SELECT sid||','||serial# username,
    2         status,
    3         MODULE,
    4         osuser,
    5         client_info,
    6         TO_CHAR(logon_time,'DD-MON-YY HH:MI:SSSS') loged_on
    7  FROM v$session*009*

  • Computer cant recognize my ipod

    heres the problem, first i use a pc with xp home edition
    i use two ipods on my computer my first generation and my brothers fourth generation, while i was updating my brothers ipod i tried to safely remove it by clicking the safe to remove button but it didnt work so when it still said do not disconnect i disconnected it now that ipod wasnt able to get the the main menu it had that sad ipod and file icons i seemed to fix that i dont no how i was just messing around with it but now my computer cant seem to recognize either of my ipods, it doesnt open itunes like it should, theres no new hard drives in my computer and no safe to remove ipod button near the clock the updater for restoring them cant recognize either of them as well
    i went to manage of my computer then device managment and i saw it showed the ipod but it had a yellow caution sign on it i've checked everything that i could its enabled and all that
    my computer cant recgonize either ipods
    something seperate i would like to find out thats off that topic is when i update my first generation 5gb ipod i get an unkown error name (-69) whats that about i now how to get through it now i just safely remove it and replug it but its just an anoyance, i have about 2.6gb of space in my itunes but at about 50 songs awy from finishing i get the same error message and repluging it in again doesnt help like it usually does does that been the hard drive can only hold about 2.5 gb instead of 5 like it should

    hiya!
    i'll have a go at this one:
    something seperate i would like to find out thats off that topic is when i update my first generation 5gb ipod i get an unkown error name (-69)
    here's the best place to start with a -69:
    iTunes displays a -69 error when syncing iPod
    love, b

  • My Iphone doesnt turn on after updating. It keeps on blinking the apple logo, even after seeing the low battery image, i tried to charge the iphone. Then I tried to connect to itunes. But itunes cant recognize the device. What should I do?

    My Iphone doesnt turn on after updating. It keeps on blinking the apple logo, after seeing the low battery image, i tried to charge the iphone. After charging for 30 minutes, it still wont turn on but keeps on blinking the apple logo. It has been blinking for 2 days. Then I tried to connect to itunes, but itunes cant recognize the device. What should I do?

    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...  Be sure to Follow ALL the Steps..
    But... if the Device has been Modified... this will Not necessarily work.
    Unauthorized modification of iOS  >  http://support.apple.com/kb/HT3743

  • Cant recognize my EJB module

    Using netBeans 5.5, I have built an Enterprise application (without an ejb module) and then attempted to add an existing ejb module to the app. I did the following to add the ejb module, but my servlets keep showing errors that the packages from the ejb module are not recognized.
    I right clicked on the main enterprise project and selected add Java EE module, then selected the ejb module I want.
    I added the ejb jar to the libraries of the Enterprise project and the WAR project
    But it still is not recognizing the packages. Is there another step I have missed?

    Never Mind!

  • Ejb packaging configuration

    Hi, there
    I am new to ejb 3 and struts. I have a question about how to set packaging configuration.
    For example:
    If I set output source directory: /ejbtest/www/WEB-INF/classes
    jar file: /ejbtest/www/WEB-INF/classes
    war file:/ejbtest/www
    and then put them into ear file, I will get class cast error. I figured it out because war file contains class files as well as jar file.
    So if I set output source directory: /ejbtest/build/classes
    jar file: /ejbtest/build/classes
    war file: /ejbtest/www
    then it will work as war file does not contain jar file now.
    The normal structure of a web application has classes folder within WEB-INF folder, and it has all the classes files. How can package my jar and war file properly, so I won't get cast error? Any help will be appreicated.
    Cheers
    Ming

    try to do this in the class where you get class cast exp.
    private static final long serialVersionUID = 1L;and build the war/jar

  • Problem in import ejb package in jsp

    Hi friends
    I am doing one small project with Eclipse Europa,jsp , EJB. with XDoclet, weblogic server
    I first created all my jsp files as one project.Then i created one enterprise application project with XDocklet , after that i imported all the jsp files using import option in eclipse.
    at development time i am not getting any problem.after deployment when i try to run the jsp files i am getting error of
    Compilation of 'C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java' failed:
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:20: package order.headsess does not exist
    probably occurred due to an error in /jspPages/testing.jsp line 8:
    <%@page import = "order.headsess.*" %>
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:51: cannot resolve symbol
    probably occurred due to an error in /jspPages/testing.jsp line 21:
    HeadHome home = null;
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:52: cannot resolve symbol
    probably occurred due to an error in /jspPages/testing.jsp line 22:
    Head remote =null;
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:226: cannot resolve symbol
    probably occurred due to an error in /jspPages/testing.jsp line 96:
    home =HeadUtil.getHome(env);
    Full compiler error(s):
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:20: package order.headsess does not exist
    import order.headsess.*; //[ /jspPages/testing.jsp; Line: 8]
    ^
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:51: cannot resolve symbol
    symbol : class HeadHome
    location: class jsp_servlet._jsppages.__testing
    HeadHome home = null; //[ /jspPages/testing.jsp; Line: 21]
    ^
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:52: cannot resolve symbol
    symbol : class Head
    location: class jsp_servlet._jsppages.__testing
    Head remote =null; //[ /jspPages/testing.jsp; Line: 22]
    ^
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:226: cannot resolve symbol
    symbol : variable HeadUtil
    location: class jsp_servlet._jsppages.__testing
    home =HeadUtil.getHome(env); //[ /jspPages/testing.jsp; Line: 96]
    ^
    4 errors
    Fri Oct 26 01:40:14 GMT+08:00 2007

    Hi friends
    I am doing one small project with Eclipse Europa,jsp , EJB. with XDoclet, weblogic server
    I first created all my jsp files as one project.Then i created one enterprise application project with XDocklet , after that i imported all the jsp files using import option in eclipse.
    at development time i am not getting any problem.after deployment when i try to run the jsp files i am getting error of
    Compilation of 'C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java' failed:
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:20: package order.headsess does not exist
    probably occurred due to an error in /jspPages/testing.jsp line 8:
    <%@page import = "order.headsess.*" %>
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:51: cannot resolve symbol
    probably occurred due to an error in /jspPages/testing.jsp line 21:
    HeadHome home = null;
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:52: cannot resolve symbol
    probably occurred due to an error in /jspPages/testing.jsp line 22:
    Head remote =null;
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:226: cannot resolve symbol
    probably occurred due to an error in /jspPages/testing.jsp line 96:
    home =HeadUtil.getHome(env);
    Full compiler error(s):
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:20: package order.headsess does not exist
    import order.headsess.*; //[ /jspPages/testing.jsp; Line: 8]
    ^
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:51: cannot resolve symbol
    symbol : class HeadHome
    location: class jsp_servlet._jsppages.__testing
    HeadHome home = null; //[ /jspPages/testing.jsp; Line: 21]
    ^
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:52: cannot resolve symbol
    symbol : class Head
    location: class jsp_servlet._jsppages.__testing
    Head remote =null; //[ /jspPages/testing.jsp; Line: 22]
    ^
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:226: cannot resolve symbol
    symbol : variable HeadUtil
    location: class jsp_servlet._jsppages.__testing
    home =HeadUtil.getHome(env); //[ /jspPages/testing.jsp; Line: 96]
    ^
    4 errors
    Fri Oct 26 01:40:14 GMT+08:00 2007

  • Accessing war classes from ejb-jar

    Hi,
    I've a.ear with b.war and c.jar. c.jar contains ejbs.
    I've some classes in b.war which i need to access from the ejbs.
    How may I achieve it? what do i need to configure in the app server or the ejb deployment descriptor?
    tx in adv
    Kejal

    are you absolute sure that the needed jar / class is
    in the classpath?Yes, there is no question about that. Because I can run the same app (unjarred version) with a command such as
    java MyApp
    without specifying classpath explicitly. And I also double checked that the postgresql.jar is listed in the CLASSPATH of my Windows box.
    Is the Class.forName the line where the ClassNotFound
    Exception is thrown?Yes, I caught the exception exactly at that line.
    I use the same for cloudscape�
    Object driver =
    Class.forName("com.ibm.db2.jcc.DB2Driver").newInstance
    ();and it works fine!Probably your app is not a jarred one, or is it?
    By the way, I have written JDBC codes hundreds of times, each time without any trouble. This is my first time I happened to run a JDBC app as an executable jar. And it failed. So I guess there must be other ways to load the class in this case.

Maybe you are looking for

  • HT201303 FaceTime is now using my Apple ID for an iPhone I don't have.

    I just got a message on my iPhone 5 and iPad 3, that "iPhone" is now using my Apple ID for FaceTime. The problem  is, that I don't have a device named "iPhone" (other than my original iPhone, which doesn't have FaceTime) and I didn't initiate anythin

  • Gmail dates out of order

    I recented moved from an exchange server to Gmail utilizing IMAP. The problem is that my emails are not in date order on my iphone 5s 7.1 (problem still existed under 7.0.6), but they appear perfectly in Gmail via web, Outlook, and Apple Mail. I can'

  • Showing page footer or showing page no. at every drilled level

    Hi Friends, Tool - Crystal Reports XI R2 I have 5 groups in reports which are perfect in drilling. Now the I am required to show page footer on every drilled level containing a thin line and a Page N of M. I tried and added line, page no. in group fo

  • Download PrintWork Bench Output on Application Server

    Hi Experts, My requirement goes like this. I have to download the output of the form IS_U_METER_READING_DOWNLOAD into .txt files on application server. and Also, these files should be named as "CCYYMMCitycodePORTIONMRUD.txt" How do I do it? Even a sm

  • HELP: Burning double layer DVD does not work as expected by project info

    Hi, I have the following problem: I created an new project in iDVD and choose the following settings in the project info: Video-Modus=PAL, Coding=HighQuality, Format=16:9 and DVD-Typ=DoubleLayer. When I saved the project and open it again the project