Why the ejb can not pass the complie?

I just use the work shop to create a simple ejb(SampleEJB.ejb) like:
package SampleEJB;
import javax.ejb.*;
import weblogic.ejb.*;
* @ejbgen:session
* ejb-name = "Sample"
* @ejbgen:jndi-name
* remote = "ejb.SampleRemoteHome"
* @ejbgen:file-generation remote-class = "true" remote-class-name = "Sample"
remote-home = "true" remote-home-name = "SampleHome" local-class = "false" local-class-name
= "SampleLocal" local-home = "false" local-home-name = "SampleLocalHome"
public class SampleEJB
extends GenericSessionBean
implements SessionBean
public void ejbCreate() {
// Your code here
* @ejbgen:remote-method
public void Hello(){
          System.out.println("Hello");
* @ejbgen:remote-method
public void Hello2(){
          System.out.println("Hello2");
but when i build it. The compiler give me error:
¾¯¸æ: SampleEJB.java:14: ÕÒ²»µ½ JNDI Ãû³Æ¡£
[Info:] Creating D:\DOCUME~1\Yong\LOCALS~1\Temp\/wlw_SampleEJB_build\SampleEJB\SampleHome.java
[Info:] Creating D:\DOCUME~1\Yong\LOCALS~1\Temp\/wlw_SampleEJB_build\SampleEJB\Sample.java
[Info:] Creating D:\DOCUME~1\Yong\LOCALS~1\Temp\/wlw_SampleEJB_build\META-INF\ejb-jar.xml
[Info:] null [Bean] MAKE CLASS NAME G:SampleHome P:SampleEJB N:SampleHome
[Info:] null [Bean] MAKE CLASS NAME G:Sample P:SampleEJB N:Sample
[Info:] Creating D:\DOCUME~1\Yong\LOCALS~1\Temp\/wlw_SampleEJB_build\META-INF\weblogic-ejb-jar.xml
[Info:] Creating D:\DOCUME~1\Yong\LOCALS~1\Temp\/wlw_SampleEJB_build\ejbgen-build.xml
SourceLoader roots: 10
post-ejbgen:
¾¯¸æ: EJBGen ok. Compiling...
Compiling 3 source files to D:\DOCUME~1\Yong\LOCALS~1\Temp\wlw_SampleEJB_build
¾¯¸æ: All files compiled. Running ejbc...
<2004-5-3 ÏÂÎç16ʱ20·Ö17Ãë CST> <Warning> <EJB> <BEA-010212> <The EJB 'Sample(Jar:
D:\DOCUME~1\Yong\LOCALS~1\Temp\wlw_SampleEJB_build)' contains at least one method
without an explicit transaction attribute setting. The default transaction attribute
of Supports will be used for the following methods: remote[Hello2(), Hello()]
>
SourceLoader roots: 60
D:\DOCUME~1\Yong\LOCALS~1\Temp\wlw_SampleEJB_build\SampleEJB\Sample_vngkt3_HomeImpl.java:13:
cannot resolve symbol
symbol : class SampleHome
location: class SampleEJB.SampleEJB
implements SampleEJB.SampleHome, weblogic.utils.PlatformConstants
^
D:\DOCUME~1\Yong\LOCALS~1\Temp\wlw_SampleEJB_build\SampleEJB\Sample_vngkt3_HomeImpl.java:69:
cannot resolve symbol
symbol : class Sample
location: class SampleEJB.SampleEJB
public SampleEJB.Sample create ()
^
D:\DOCUME~1\Yong\LOCALS~1\Temp\wlw_SampleEJB_build\SampleEJB\Sample_vngkt3_EOImpl.java:15:
cannot resolve symbol
symbol : class Sample
location: class SampleEJB.SampleEJB
implements SampleEJB.Sample, weblogic.utils.PlatformConstants
^
D:\DOCUME~1\Yong\LOCALS~1\Temp\wlw_SampleEJB_build\SampleEJB\Sample_vngkt3_HomeImpl.java:73:
cannot resolve symbol
symbol : class Sample
location: class SampleEJB.SampleEJB
return (SampleEJB.Sample) super.create(md_ejbCreate);
^
4 errors
´íÎó: ERROR: Error from ejbc: Compiler failed executable.exec
´íÎó: ERROR: ejbc couldn't invoke compiler
BUILD FAILED
´íÎó: ERROR: Error from ejbc: Compiler failed executable.exec
´íÎó: ERROR: ejbc couldn't invoke compiler
Why? who can give me a hand

I met the same problem. I am a newbie, but why weblogic even can not build a simple startup ejb project?

Similar Messages

  • Why my computer can not adjust the volume up and down althought i have had repair once time in a near day . i must waitting for 15days now it's continue

    why my computer can not adjust the volume up and down althought i have had repair once time in a near day . i must waitting for 15days now it's continue

    1. Remove the headphone.
        If you see red light in the headphone port, plug the headphone
        in and out of the port 5 or 6 times to flip the microswitch inside.
        Sound output may be stuck in the digital mode.
    2. Reset PRAM.  http://support.apple.com/kb/PH4405
    3. Reset SMC.     http://support.apple.com/kb/HT3964
        Choose the method for:
        "Resetting SMC on portables with a battery you should not remove on your own".

  • HT204406 my iTunes match can not pass the step 2, it keeps repeat again and again. Pls advise. Thank you.

    my iTunes Match can not pass the step 2, it keeps repeat again and again. Pls advise. Thank you.

    Very strange.  Two items to try:
    a.  Enable iCloud Status and iCloud Download fields in Song view, sort on status and look for any 'waiting' or 'error';
    b.  If (a) looks good, establish a new user account, create an empty library and enable iTunes Match, confirm that this provides access to all Songs and is working well.
    These are seeking to ensure both no bad Songs or local Library corruption - both are relatively quick.

  • I can not pass the language settings menu

    Hello,
    Since I have tried to get the latest build of Apple TV, my apple TV can not pass the language settings menu. I choose my language and then it loops back to language settings menu.
    I have restored twice from iTunes, plug and unplug from the tv, the electric network, and so on, but it does the same loop.
    Anybody has solved this problem ?
    Regards,
    F

    If you can't get past the lock screen when you slide to unlock, try rebooting your iPad and then try again.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • I can not pass the lock screen

    I can not pass the lock screen, when I slide to unlock

    If you can't get past the lock screen when you slide to unlock, try rebooting your iPad and then try again.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Why do I can not hear the siri's voice on my iphone speaker anymore, why do I can not hear the siri's voice on my iphone speaker anymore

    why do I can not hear the siri's voice on my iphone speaker anymore, why do I can not hear the siri's voice on my iphone speaker anymore

    All apps - all paid and free apps include DRM protection that is tied to the iTunes that was used to download the apps. This means you have apps on your iPhone that were downloaded with your daughter's iTunes account. Apps cannot be transferred or merged with another iTunes account.
    Delete the apps from your iPhone that were downloaded with your daughter's iTunes account to prevent being prompted for the account's password when there are app updates for the apps downloaded with the account. An iTunes account cannot be deleted.

  • Why my ipad can not update the ios7.1.1

    why my ipad can not update the ios 7.1.1

    Hello there, crivera350.
    The following Knowledge Base article offers up some great steps for if you are unable to update your iOS device:
    If you can't update or restore your iOS device
    http://support.apple.com/kb/ht1808
    Recovery mode erases your device and restores it, which should resolve the issue. If you previously synced with iTunes or iCloud, you may be able to restore from your backup after recovery.
    Turn off your device. If you can't turn it off, press and hold the Sleep/Wake and Home buttons at the same time and wait a few seconds for it to turn off.
    Plug the device's USB cable into your computer only.
    Hold down the device's Home button as you connect the USB cable to it.
    When you see the Connect to iTunes screen, release the Home button. If you don't see this screen, try steps 1 through 3 one more time.
    iTunes should open and display a message such as: "iTunes has detected an iPhone in recovery mode. You must restore this iPhone before it can be used with iTunes."
    Use iTunes to restore your device.
    If you don't see your device in iTunes, follow these steps for Mac or these for Windows.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • [TECHNOTE ANNOUNCE]  Error installing Flash Player "The download did not pass the integrity check (16236.304.443)

    All,
    I've published a new technote for folks who are having trouble with the Adobe Download Manager and Flash Player.
    Error installing Flash Player "The download did not pass the integrity check (16236.304.443)
    http://kb2.adobe.com/cps/512/cpsid_51258.html
    Essentially this technote links to the Windows troubleshooting technote here:
    http://www.adobe.com/go/tn_19166
    However, before today the Windows troubleshooting technote only had an EXE install for the ActiveX version of Flash Player 10.  I have now added a link to download the EXE version of the Flash Player Plugin installer as well.
    Please point other users with integrity check errors to the first technote.

    Thank you for the update & Tech Note Announcement. I do have a couple of questions, if you could please respond.
    After uninstalling and ready to download; reading from the link you provided on 9/4/09, Should we follow the normal download instructions
    per #2. "Flash  Player download Center" and if a successful installation is not accomplished, THEN, go to "download and unzip install_Flash_Player_10_Plugin (all other windows browsers) ? Or should the latter step be done in lieu of #2 mentioned. I am assuming the download from F.P. D.L. Center would be done first and then troubleshoot by running the EXE. version of the F.P. Plugin installer.
    Experience has taught me not to assume much, and if you don't know, ask!
    Thanks for your hard work, but you have to admit, for the technically deprived, it is frustrating and confusing.

  • HT4796 on my windows XP pro PC i opened windows migration assistant and the first message is: "Cannot start Outlook Express. The application can not initialize the storage. The computer doesn't have enough memory or your disk is full. (0x80007114)"

    on my windows XP pro PC i opened windows migration assistant and the first message is: "Cannot start Outlook Express. The application can not initialize the storage. The computer doesn't have enough memory or your disk is full. (0x80007114)"
    On my windows PC outlook express is NOT running and as far as i know, NOT installed.
    How do I install Outlook Express??
    I want to use my new Imac.....    

    Disk storage issues frequently happen if the hard disc is over 85% full.    Make sure your trash can is emptied after backing up any files you want to keep elsewhere.

  • My macpro buckled and broke up a year ago. A month ago got wet and I dried it near a heater. It froze and the mouse can not click the connection through. After three weeks I plugged in readjusted the date and it worked for about 20 minutes.. any idea?

    My laptop macbook pro fell with me out of a truck and buckled last June 2012. It still worked although bent and open. A month ago it got wet and stop working and I dried it near a heater and it worked. The battery is dead. Then it froze on the screen the mouse can not grab the attention of the screen when it clicks. The track pad no longer responds and has buckled more. Then after three weeks of not touching it I plugged it in reset the date and connected and it worked. I began to back up my material and then it froze again.

    Though the MBP may be disfigured, there is a real possibility that the HDD is still functional.  Take it out of the MBP and place it in an enclosure and connect it to another Mac.  You may be able to recover all of your data.
    Ciao.

  • The Facetime can not process the registration of my Apple ID, I've tied several times, and it always says " The server encountered an error processing registration."

    The Facetime can not process the registration of my Apple ID, I've tied several times, and it always says " The server encountered an error processing registration."

    I had this problem and also was unable to directly access the App store and could not get iMessage to work. I disabled the firewall protection on my third party virus protection software, rebooted and was good to go. iMessage also works and I can directly access the App store, rather than enter via iTunes.

  • My keyboard failed to put accents spelling.  Through the system can not recognize the keyboard. This keyboard has one year and has always worked well and suddenly became this way, what to do

    My keyboard failed to put accents spelling.
    Through the system can not recognize the keyboard. This keyboard has one year and has always worked well and suddenly became this way, what to do

    Hi ,
    Do you remember if you  have installed some software prior to this issue?
    Delete programs you never use.
    If the issue reoccurs in Clean Boot, but works fine in Safe Mode, the cause may be the disabled hardware drivers. You may narrow down the
    causes in Device Clean Boot.
    Device Clean Boot
    =================
    1. Click Start, type "devmgmt.msc" (without quotation marks) in the Search bar and press Enter.
    2. Expand "Sound, video and game controllers".
    3. Right click on your sound card and then click "Properties.
    4. In the dropdown menu of Device Usage, please choose "Do not use this device (disable)" and click OK.
    5. Please use the same method to disable other dubious hardware such as: internal modem, network card and CD-R drive. Please note some devices
    such as video adapter are not available to be disabled.
    Tracy Cai
    TechNet Community Support

  • Http to RFC [http adapter issue] - The system can not locate the resource.

    Hi,
    When I post the message with http client, I am getting the below error.
    Line 33: The system can not locate the resource specified.
    i.e --> xhttp.send (payload);
    It is a java script error.
    Result URL:
    http://xxx.xxx.xxx.xxx:8000/sap/xi/adapter_plain?namespace=http%3A//www.cisco.com/httptobapi&interface=MI_request_response_cisco&service=BS_HTTP_CISCO&party=&agency=&scheme=&QOS=BE&sap-user=xxxxX&sap-password=xxxx&sap-client=500&sap-language=EN
    Any idea what went wrong?
    Thanks
    Balaji

    hi,
    I have given all the details correct.
    Server Host,Port, Client, Sender Service, Interface and namespace and then payload.
    It looks like problem is with http client. It is not posting the data correctly.
    I tried on 2 different systems.
    On one system it gave a problem at line 33 which i mentioned at the first post.
    And second system gave line: 27 Permission denied.
    Line 27 :  xhttp.open ("POST", reqString, false);
    Payload:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_request_sales_cisco xmlns:ns0="http://www.cisco.com/httptobapi">
      <Customer_Number>1002</Customer_Number>
      <Sales_Organization>1000</Sales_Organization>
    </ns0:MT_request_sales_cisco>
    Thanks
    Balaji

  • I can not pass the activation of i cloud?

    i have mini i pad and i forget the password so i do recovery then when i open again he ask activation of i cloud and i put the apple ID and he could not pass and the i pad still i can not use it closed and he need activation what should i do please help me?

    my problem only the activation of i cloud why not open i put the ID and password and still not pass the activation

  • Why my JSP can not recogonize the JSTL tag??

    My hello.jsp code is like follows:
    <%@ include file="/WEB-INF/jsp/include.jsp" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
    <html>
    <head>
    <title><fmt:message key="title"/></title>
    </head>
    <body>
    <h1><fmt:message key="heading"/></h1>
    <p><fmt:message key="greeting"/> <c:out value="${model.now}"/></p>
    <h3>Products</h3>
    <c:forEach items="${model.products}" var="prod">
    <c:out value="${prod.description}"/> <i>$<c:out value="${prod.price}"/></i><br><br>
    </c:forEach>
    </body>
    </html>
    When I start the tomcat server and run my application ,the tomcat shows the error message:
    org.apache.jasper.JasperException: /WEB-INF/jsp/hello.jsp(5,17) No tag "" defined in tag library imported with prefix "fmt"
    But I do import the tag library, why it still show the error that No tag "" defined in tag library ???
    Message was edited by:
    Mellon
    Message was edited by:
    Mellon
    Message was edited by:
    Mellon
    Message was edited by:
    Mellon
    Message was edited by:
    Mellon
    Message was edited by:
    Mellon
    Message was edited by:
    Mellon

    Ok, now I have specify the <taglib> in my web.xml file and I have paste the fmt.ltd under WEB-INF/ like this:
    <taglib>
    <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
    <taglib-location>/WEB-INF/fmt.tld</taglib-location>
    </taglib>
    <taglib>
         <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
         <taglib-location>/WEB-INF/c.tld</taglib-location>
    </taglib>
    When I re-deploy my application and start the tomcat server, the error message now is still :
    jsp/hello.jsp(6,17) No tag "" defined in tag library imported with prefix "fmt"
    My include.jsp is used to import all the libraries that needed,like follows:
    <%@ page session="false"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
    My hello.jsp is like follows:
    <%@ include file="/WEB-INF/jsp/include.jsp" %>
    <html>
    <head>
    <title><fmt:message key="title"/></title>
    </head>
    <body>
    <h1><fmt:message key="heading"/></h1>
    <p><fmt:message key="greeting"/> <c:out value="${model.now}"/></p>
         <h3>Products</h3>
    <c:forEach items="${model.products}" var="prod">
    <c:out value="${prod.description}"/> <i>$<c:out value="${prod.price}"/></i><br><br>
    </c:forEach>
    </body>
    </html>
    Why? I just import the fmt.ltd, everything seems correct, why this error? It seems that tomcat can not find the "fmt" prefix in tag library.
    Please Help:(
    Message was edited by:
    Mellon
    Message was edited by:
    Mellon

Maybe you are looking for

  • Table for G/L account balances

    Hi , Can any one tell me the table through which i can see G/L account balances total period wise.

  • Next release date for C++ Parser- URGENT-

    What is the next release date for the C++ Parser?? The bug in 2.0.3.0.0 regarding broken DOS filenames is preventing us from shipping a build to Apps that is required next week. Otherwise what is the most recent C++ build that offers: a) A fix for en

  • LDAP admin group.

    Hi, I am using Weblogic version 6 with sp1. When setting up a LDAP realm for authentication, are you forced to define your users in a LDAP "admin" static group so that the members will be listed in the console and authentication will work? I could no

  • Help -- wls8.1 removes the applications in config.xml

    We deployed three web applications to weblogic 8.1 express. After running fine for about 4 days, there's an error logged, and weblogic 8.1 removed the applications we configured in config.xml. When we started weblogic 8.1 again, the applications are

  • Download pricing/counts

    When creating a multiple issue app. You pay Adobe for downloads Does the download of the App (container) count as a download in Adobes terms Or is it only when content for the App is downloaded, it counts as a download? Also does updates of content c