Using ejbc command

hi, am pretty new to EJBs and am using weblogic 7.1 i had compiled my java files and created jar file now when i run the command ejbc from my dos prompt it says
'ejbc' is not recognized as an internal or external command,
operable program or batch file.
i had set my classpath to my class files directory and aslo to weblogic.jar file
Can some body get me out of this.
Thanks in advance.

Hi,
ejbc is part of the Weblogic 6.1's batch file for compiling and creating a jar file from the xml and java classes provided.
ejbc looks for a particular weblogic_sp.jar file if u have installed weblogic on an NT platform.
So check for this additional weblogic_sp.jar file which is required for creating a jar file before deploying it on ur console.
Seetesh

Similar Messages

  • Error while using "ejbc" command....

    Hi,
    I got the following errors when I use the ejbc Command in weblogic6.1 using ant tool to run a Bean Managed Entity Beans.I've also attached the two descriptor files(ejb-jar.xml and weblogic-ejb-jar.xml) and make file build.xml.
    ejbc:
    [java]
    [java] ERROR: Error from ejbc: In EJB AccountBean, the primary key class must implement the method boolean equals(Object other).
    [java] ERROR: Error from ejbc: In EJB AccountBean, the primary key class must implement the method public int hashCode().
    [java] ERROR: ejbc found errors
    [java] Java Result: 1
    ejb-jar.xml
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar PUBLIC
    '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN'
    'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
    <ejb-jar>
    <enterprise-beans>
    <entity>
    <ejb-name>AccountBean</ejb-name>
    <home>com.testejb.AccountHome</home>
    <remote>com.testejb.Account</remote>
    <ejb-class>com.testejb.AccountBean</ejb-class>
    <persistence-type>Bean</persistence-type>
    <prim-key-class>com.testejb.AccountPK</prim-key-class>
    <reentrant>False</reentrant>
    </entity>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>AccountBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    weblogic-ejb-jar.xml
    <?xml version="1.0"?>
    <!DOCTYPE weblogic-ejb-jar PUBLIC
    '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN'
    'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'>
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>AccountBean</ejb-name>
    <jndi-name>AccountHome</jndi-name>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    build.xml
    project name="beanManaged" default="all" basedir=".">
    <!-- set global properties for this build -->
    <property environment="env"/>
    <property file="../../../../examples.properties"/>
    <property name="source" value="."/>
    <property name="build" value="${source}/build"/>
    <property name="dist" value="${source}/dist"/>
    <target name="all" depends="clean, init, compile_ejb, jar_ejb, ejbc "/>
    <target name="init">
    <!-- Create the time stamp -->
    <tstamp/>
    <!-- Create the build directory structure used by compile
    and copy the deployment descriptors into it-->
    <mkdir dir="${build}"/>
    <mkdir dir="${build}/META-INF"/>
    <mkdir dir="${dist}"/>
    <copy todir="${build}/META-INF">
    <fileset dir="${source}">
    <include name="*.xml"/>
    <exclude name="build.xml"/>
    </fileset>
    </copy>
    </target>
    <!-- Compile ejb classes into the build directory (jar preparation) -->
    <target name="compile_ejb">
    <javac srcdir="${source}" destdir="${build}"
    includes="Account.java, AccountHome.java, AccountException.java, AccountPK.java, AccountBean.java"/>
    </target>
    <!-- Make a standard ejb jar file, including XML deployment descriptors -->
    <target name="jar_ejb" depends="compile_ejb">
    <jar jarfile="${dist}/src.jar"
    basedir="${build}">
    </jar>
    </target>
    <!-- Run ejbc to create the deployable jar file -->
    <target name="ejbc" depends="jar_ejb">
    <java classname="weblogic.ejbc" fork="yes">
    <sysproperty key="weblogic.home" value="${WL_HOME}"/>
    <arg line="-compiler javac ${dist}/src.jar d:/bea/wlserver6.1/config/mydomain/applications/AbeanManaged.jar"/>
    <classpath>
    <pathelement path="${WL_HOME}/lib/weblogic_sp.jar;${WL_HOME}/lib/weblogic.jar"/>
    </classpath>
    </java>
    </target>
    <target name="clean">
    <delete dir="${build}"/>
    <delete dir="${dist}"/>
    </target>
    </project>
    Expecting your reply
    Thanks & Regards
    Venkatesh

    Gee, this is just a guess but how about defining methods equals() and hashCode() in your pk class?
    ps
    The color of George Washington's white horse was white.

  • How to capture errors in file compilation using ejbc

              Hi all,
              I am trying to compile all the jsp files using ejbc. I want to
              make a report for all the jsp files that could not be compiled
              becoz of some error. Can anyone help me out how to do this. Is
              there any option that can be used to generate this info. I am using
              "java weblogic.ejbc ...." from the command prompt.
              Thanx,
              Prabhat Dalmia
              

              sorry.. i meant jspc
              "Prabhat Dalmia" <[email protected]> wrote:
              >
              >Hi all,
              >I am trying to compile all the jsp files using ejbc. I
              >want to
              >make a report for all the jsp files that could not be
              >compiled
              >becoz of some error. Can anyone help me out how to do
              >this. Is
              >there any option that can be used to generate this info.
              >I am using
              >"java weblogic.ejbc ...." from the command prompt.
              >
              >Thanx,
              >Prabhat Dalmia
              

  • Unable to run ejbc command!!!

    I am compiling my ejbs and after jarring the classes and META-INF when i run the ejbc <jarfilename> <outjarname> thit says
    'ejbc' is not recognized as an internal or external command,
    operable program or batch file.
    how do i set the classpath and path to run the ejbc command......am using weblogic 8.1 version and jdk1.3

    Add the weblogic server's bin directory to your PATH. You will need to a couple of WLS jars to the CLASSPATH. There might be something in the installation/setup documentation that tells you all this. I have only used WLS 5.1 and 7.0.

  • About the ejbc command(repost, more detail info)

    Hi all,
    I have posted the problem before and still didn't resolved.
    The problem is:
    One stateless session ejb deployed on the iAS server,running ok. After added
    a method, I used the ejbc -iiop -sl <home> <remote> <bean class> to compile
    it, but it always said: (where the getErrMsg() was the newly added method,no
    special setting(such as transaction etc.) required for it,just a simple
    business method)
    ejb_stub_MessageLogger.java:7: class
    com.iaspec.bmx.hub.ejb.msglogger.ejb_stub_MessageLogger must be declared
    abstract. It does not define java.util.HashMap getErrMsg() from interface
    com.iaspec.bmx.hub.ejb.msglogger.MessageLogger.
    But after I use iAS deploytool to reconstruct the ejb from scratch and
    deployed it to iAS, I run the ejbc command again, it's ok now!!! Why?
    Does anyone have experience of it?
    plus: I don't want to use iAS deploytool any more, it's so cumbersome:(
    Johnson Lee

    Hi all,
    The problem has been resovled. But it's still very strange!
    After I copied these modified classes to the location in iAS where I
    deployed the ejb to, or delete the ejb from iAS, the ejbc command run OK.
    Is this an ejbc bug?
    Johnson Lee
    "Johnson Lee" <[email protected]> wrote in message
    news:9hf3ja$[email protected]..
    Hi all,
    I have posted the problem before and still didn't resolved.
    The problem is:
    One stateless session ejb deployed on the iAS server,running ok. Afteradded
    a method, I used the ejbc -iiop -sl <home> <remote> <bean class> tocompile
    it, but it always said: (where the getErrMsg() was the newly addedmethod,no
    special setting(such as transaction etc.) required for it,just a simple
    business method)
    ejb_stub_MessageLogger.java:7: class
    com.iaspec.bmx.hub.ejb.msglogger.ejb_stub_MessageLogger must be declared
    abstract. It does not define java.util.HashMap getErrMsg() from interface
    com.iaspec.bmx.hub.ejb.msglogger.MessageLogger.
    But after I use iAS deploytool to reconstruct the ejb from scratch and
    deployed it to iAS, I run the ejbc command again, it's ok now!!! Why?
    Does anyone have experience of it?
    plus: I don't want to use iAS deploytool any more, it's so cumbersome:(
    Johnson Lee

  • Using Shell commands in AWK

    Hi, i want to use tr command in awk. Please guide me. Also, how to use shell variables in awk?

    please help

  • Exchange 2013 CU5 , Exchange Power Shell very very very slow reasponse when using get command.

    Exchange 2013 CU5 , Exchange Power Shell very very very slow reasponse when using get command.
    First my organize has Exchange on 2 site like
    site A (internet facing) : 2CAS 2 MB all are Services pack1
    site B (DR Site , no user active on this site) : 2CAS 2MB all are Services pack 1
    so today I upgrade Exchange 2013 from SP1 to CU5 start on "site B" and I found this issue and the details is....
    When I open EMS on any CU5 for query something (like get-mailboxdatabasecopystatus) the response return very slow and some query will not return at all (like get-owavirtualdirectory).
    But If I using EMS on SP1. Everything is ok then I try to use EMS on SP1 connect to CU5 and try to query something. the result is
    some query command cannot return for any result that are server on siteB (just some query command)
    Problem
    EMS on CU5 return very slow result.
    EMS on SP1 still ok.
    Does anyone face this problem before for CU5??? Please help me figure this out. Thank you
    reply from Social.technet

    Hi,
    Have you used the above cmdlets to check your Exchange server health?
    "all other command that I ran on EMS didn't logged on event viewer.", my environment is the same with you. I use Exchange 2013, only errors will be displayed in MSExchange Management. Actually, it is not related to slow EMS response.
    Hope it helps.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Unable to delete files from encrypted external SD Card using File Commander

    I've run into some trouble trying to delete the directory com.spotify.music from my external SD Card (encrypted) after a hard reboot using the reset button next to the sim card.
    I need to do this for the Spotify app to work (FC on starting it) and I'm currently unable to delete the folder and its contents from Sony provided file explorer(FC File Commander).
    Is there a way to delete this app from adb or other command line tool or how should I go about this? Developer options are enabled because I'm learning to develop apps. Not particularly keen on rooting or otherwise format my SD Card but it's an option if there are no other ways to do it. 
    I can see the contents of my card using File Commander just fine. Spotify app is uninstalled, I tried remove cache and data before uninstall also.

    Thommo wrote:
    Are you able to delete files via your Pc or are you able to remove the card from your phone and connect it to a Pc for file deletion - There is a free program called Unlocker currently on version 1.9.2 which is excellent at deleting files that don't want to be deleted - You would install the program then right click the file and choose Unlocker and then when the program starts choose delete
    I guess he will not be able to move the SD card to the computer since it's encrypted and is working only with that particular device, but he should be able to access it via PC.
    If you can try to uninstall Spotify from your phone. I assume Spotify is not working due to some rubbish inside it's directory, but on the other hand you can't delete the folder because it may be used by Spotify. If you uninstall app folder may be unlocked.
    Best regards,
    Sergio PL
    Xperia Z1 / Nexus 7 (2012)

  • Not able to extract performance data from .ETL file using xperf commands. getting error "Events were lost in this trace. Data may be unreliable ..."

    Not able to extract  performance data from .ETL file using xperf commands.
    Xperf Commands:
    xperf –i C:\TempFolder\Test.etl -o C:\TempFolder\BootData.csv  –a process
    Getting following error after executing above command:
    "33288636 Events were lost
    in this trace. 
    Data may be unreliable
    This is usually caused
    by insufficient disk bandwidth for ETW lo
    gging.
    Please try increasing the minimum
    and maximum number of buffers
    and/or
                    the buffer size. 
    Doubling these values would be a good first at
    tempt.
    Please note, though, that
    this action increases the amount of me
    mory
                    reserved
    for ETW buffers, increasing memory pressure on your sce
    nario.
    See "xperf -help start"
    for the associated command line options."
    I changed page size file but its does not work for me.
    Any one have idea, how to solve this problem and extract ETL file data.

    I want to mention one point here. I have total 4 machines out of these 3 machines above
    commands working properly. Only one machine has this problem.<o:p></o:p>
    Hi,
    I consider that you can try to use xperf to collect the trace etl file and see if it can be extracted on this computer:
    Refer to following articles:
    start
    http://msdn.microsoft.com/en-us/library/windows/hardware/hh162977.aspx
    Using Xperf to take a Trace (updated)
    http://blogs.msdn.com/b/pigscanfly/archive/2008/02/16/using-xperf-to-take-a-trace.aspx
    Kate Li
    TechNet Community Support

  • How can I use unix commands from oracle report

    I have to use the following command from oracle reports.
    In oracle forms we can use the HOST command but what about oracle reports2.5.
    I have to email the attached file 100245.pdf from oracle reports to the given email id
    uuencode 100245.pdf 100245.pdf | mailx -s "test" [email protected]

    Hi,
    It's because .bat (or .cmd) files are scripts and not executables and are interpreted using the command line executable - which is normally cmd.exe (although you can buy others).
    So you need to call cmd.exe passing the bat file name as a parameter, something like
    cmd.exe /c batchfilename
    Without the /c you will never get a response.
    However, this brings us to the bizarre conclusion that you are going to:
    call cmd.exe (a shell interpreter)
    to launch a batch file
    that calls cygwin (another shell interpreter)
    which then runs ls
    When shouldn't that just be:
    call cmd.exe to run the dir command
    Or better yet, If you are just after a file name listing and you seem to understand Java stored procs, why not just write a JSP to list the contents of a directory? No problems with OS dependant commands, scripts and 3rd party interpreters. Plenty of examples of that out on the internet as well.
    HTH
    Chris

  • How to use Filter commands in WAD?

    Hello community,
    I am desperately trying to use the command wizzard in order to set a Filter to a chrarcateristic in an 7.0 web template:
    I have been trying these commands so far but it simply doesnt work:
    SET_SELECTION_STATE_SIMPLE
    SET_SELECTION_STATE
    My problem is: When I select the charcateristic which I want to Filter, I get always the Error message, that the characteristic is not a valied characteristic or structure of the Query. But this is not true, the Characteristic is in the query. I have tried for hours now but no success.
    Thanks for any help or advice.
    Carl

    Hi Carl,
    I had the same situation. All you have to do is to update your support package. After that it will work properly.
    I have - Support Package 7, Revision 571
    Regards
    Erwin
    Edited by: Erwin  Buda on Dec 5, 2008 9:47 PM

  • How can i install snow leopard on my mac G5 using a command line and booting from an external usb rom, since my disk i have is not a bootable media

    How can i install snow leopard on my mac G5 using a command line and booting from an external usb rom, since my disk i have is not a bootable media

    Hi.
    You simply can't. Snow Leopard is compiled in Intel binary only.
    Good Luck.

  • How to delete the items in the recycle bin permanently from the windows using Diruse command

    How to delete the items in the recycle bin permanently from the windows  using Diruse command.
    Because most of the time we get out of disk space issues.
    Can somebody help me in giving with an example

    You can right-click Recycle Bin|Properties and choose radio button for
    Don't move files ....
     This one may also help.
    http://technet.microsoft.com/en-us/library/cc784980(v=ws.10).aspx
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Preserve a single space at the end of line using spool command

    Hi,
    Can you please help me to write the result of an sql query into a file with the last column of the row ending with a single space?
    For example:
    COL1DATA|COL2DATA|COL3DATA<space1>
    As mentioned in the example the col3 value in the file should end with a single space. And there should not be any delimiters at the end of the row.
    I tried with set trimspool on/off. But, it didn't work. When I say trimspool on - it is trimming all the trailing spaces.
    When I say trimspool off - it is retaining all the trailing spaces to the size of the line.
    But, I do not wish to modify the file through shell commands once it is written thru spool. I mean I do not wish to append spaces to the end of a line using shell script or any other method.
    I do not wish to use other methods like UTL_FILE also.
    Please help me how to do it using spool command?
    Thank you.
    Ramana

    My requirement is that all the trailing spaces should be truncated except the last one in the row.Why?
    As you have discovered a single column in sqlplus, is always a fixed length regardless of the size of the data, if the length of the data varies the output is padded to the maximum or line size with spaces. The trim and trimpsool commands are there to remove all the spaces from the end of a line if there are any. There are no commands to trim all the spaces except one, or even to trim all the spaces except two, or three even.
    If you want such custom processing you should post process the file in the OS using sed, awk or perl or something designed for such things.

  • How to get IMEI number of ME using proactive command

    Can anyone send me a sample code to get IMEI number of mobile equipment using proactive commands....

    Hi,
    I hope its can help you.
    private static final byte TAG_IMEI = (byte) 0x14;
    byte result=0;
    short IMEI_LEN;
    byte[] imei_buf;
    ProactiveHandler ProHdlr;
    ProactiveResponseHandler ProRespHdlr;
    ProHdlr = ProactiveHandler.getTheHandler();
    ProHdlr.init(PRO_CMD_PROVIDE_LOCAL_INFORMATION, (byte) 0x01, DEV_ID_ME);
    result = ProHdlr.send();
    if (result < RES_CMD_PERF_SESSION_TERM_USER) {
    ProRespHdlr = ProactiveResponseHandler.getTheHandler();
    IMEI_LEN = ProRespHdlr.findAndCopyValue((byte) TAG_IMEI, imei_buf, (short) 0);
    Cheers,
    Asep

Maybe you are looking for

  • How to export an imail message to a text file

    I want to edit a long string of emails (over 2000).  is there any way to get those mail messages (no attachments) into a single text file?

  • BOS: Triggering Execution Services, Transaction Code: BOSMM

    Hi, Triggering Execution Services: In the transaction code 'BOSMM - Subcontractor/Vendor Processing'.  The screen is displayed as shown below. 1. Show/Hide Work Lists 2. Show Execution Services 3. Execution of Services (Post) 4. Object to be Planned

  • SAP SSO using CUA for Transport Express implementation

    I am implementing Transport Express application as part of a larger project on a Dual Track environment. The business want TE to be integrated into the SSO landscape. This is where I am having difficulties. I need advice from anyone having implemente

  • Retina MBP Kernel Panic

    Every time i try to play a game on steam or something, my laptop just shuts down. When I run Disk Utility, it says that everything is fine. This was the latest problem report Anonymous UUID:       3BCB1ACD-83A0-20A1-6604-37DA8068FD1E Sat May 24 02:26

  • Iphoto on iPad and deleting journals only locally!

    Hello, I love the journal function in iphoto ipad version. (unfortunately iphoto on mac does not support it yet...) As i already run out of capacity is there a way to delete the photos locally when published to the cloud as journal? Otherwise i wnt b