XDoclet says "No Such EJB Defined"

I'm running XDoclet and whenever I "make" my build.xml file using JBuilder 7, XDoclet always returns to me this error.
This error started to bug me when I added this field in my session bean(Session Facade Implementation).
@ejb.ejb-ref ejb-name="TenderConfigEJB" view-type="local"
It seems XDoclet cannot recognized TenderConfigEJB.By the way TenderConfigEJB is an Entity Bean.
The error log:
[ejbdoclet] Running <deploymentDescriptor/>
[ejbdoclet] Generating EJB deployment descriptor.
[ejbdoclet] Running XDoclet failed.
[ejbdoclet] <<No such EJB defined: TenderConfigEJB>>
[ejbdoclet] 1 error
[ejbdoclet] javadoc: In doclet class xdoclet.DocletTask$DocletMain, method start has thrown an exception java.lang.reflect.InvocationTargetException
Any Ideas?

I suppos that you're refering to a bean in another jar or ear. To this means use another xdoclet tag.
@ejb:ejb-external-ref
functions well.
for more info:
http://xdoclet.sourceforge.net/tags/[email protected]%20(0..*)

Similar Messages

  • So I am trying to copy my hard drive "Macintosh HD" to an external hard drive, i want to use Terminal and have tried many ways. For example cp -r /Volumes/"Macintosh HD" /Volumes/"NO NAME". When i do it says No such file or directory. Ideas?

    So I am trying to copy my hard drive "Macintosh HD" to an external hard drive, i want to use Terminal and have tried many ways. For example cp -r /Volumes/"Macintosh HD" /Volumes/"NO NAME". When i do it says No such file or directory. Ideas?

    The reason that threadjacking is frowned on (as mentioned in the terms use which you can read by clicking the link to the right on this page) is for the most part a practical one:
    By starting your own thread your problem can get individual attention, focussed on your particular set of circumstances.
    By joining somebody else's thread it becomes tricky to answer more than one question at the same time, and can lead to confusion for both parties.
    So if you don't mind the minor inconvenience, please start your own thread (in the correct forum) so we can get to grips with your particular problem!

  • HT5559 says no such file or directory: what does this mean????

    I have a program called powerteacher for work.  After the new update, I am no longer able to access powerteacher on my mac.  I tried to go through the steps on the site to go through the workaround but i am coming up with nothing and this message in the terminal: says no such file or directory.  Please help me get powerteacher back online for my mac.  I need it for work!
    Thanks

    Is the program written in Java? If so then do you know if the version of Jave installed on your computer meets the minimum requirements of the software?
    Still, it's the developer you should contact.

  • Muse crashes everytime I go to publish and says no such Id in the Mapping ?

    When I go to publish a muse site it stops at 41% everytime and says there is no such Id in the mapping .. this is crazy .. please can someone tell me how to fix this..

    This was in the logs :
    Logging in build 2014.1.1.6 started at: Sat Sep 13 01:29:41 2014
    ========================================
    [00:07:55.772] Opening file '/Users/dalebunnett/Desktop/ethanscakery.muse' with status:success size:26247168 mod Date:Sat Sep 13 00:48:55 GMT+0100 2014 highestUID: 3735
    [00:08:12.892] Received 404 response from GET to URL:https://api-ava.worldsecuresystems.com/api/v1/admin/sites/1688135/storage/PHONE?meta responseURL:https://api-ava.worldsecuresystems.com/api/v1/admin/sites/1688135/storage/PHONE?meta
    [00:08:12.892] Header: Access-Control-Allow-Methods: GET, HEAD, POST, PUT, DELETE
    [00:08:12.892] Header: Content-Type: application/json
    [00:08:12.892] Header: Access-Control-Expose-Headers: Location
    [00:08:12.892] Header: Access-Control-Max-Age: 99999
    [00:08:12.892] Header: Date: Sat, 13 Sep 2014 00:38:52 GMT
    [00:08:12.892] Header: Access-Control-Allow-Headers: Authorization, Accept-Language, Content-Type
    [00:08:12.892] Header: Content-Length: 15
    [00:08:12.892] Header: Access-Control-Allow-Origin: *
    [00:08:12.892] Data:
    {"code":104001}
    [00:08:15.643] Received 400 response from GET to URL:https://api-ava.worldsecuresystems.com/api/v1/admin/sites/1688135/storage//muse_manifest.x ml responseURL:https://api-ava.worldsecuresystems.com/api/v1/admin/sites/1688135/storage//muse_manifest.x ml
    [00:08:15.643] Header: Access-Control-Allow-Methods: GET, HEAD, POST, PUT, DELETE
    [00:08:15.643] Header: Content-Type: application/json
    [00:08:15.643] Header: Access-Control-Expose-Headers: Location
    [00:08:15.643] Header: Access-Control-Max-Age: 99999
    [00:08:15.643] Header: Date: Sat, 13 Sep 2014 00:38:55 GMT
    [00:08:15.643] Header: Access-Control-Allow-Headers: Authorization, Accept-Language, Content-Type
    [00:08:15.643] Header: Content-Length: 15
    [00:08:15.643] Header: Access-Control-Allow-Origin: *
    [00:08:15.643] Data:
    {"code":104002}
    [00:08:21.231] Assert: There should not be such ID exists in the mapping-FlatSiteOrganizer/saveImageForPage+SVGPageItemNodeRenderer/render+HTMLNodeRendere rBase/renderNode+HTMLColumnNodeRenderer/render+HTMLNodeRendererBase/renderNode+HTMLColumnN odeRenderer/render+HTMLNodeRendererBase/renderNode+HTMLRootRenderer/render+HTMLGenerator/b uildHTMLHierarchy+HTMLGenerator/generateHTML+SiteExportControllerBase/exportOnePage+SiteEx portControllerBase/doTask+SiteExportControllerREST/doTask+SiteExportControllerBase/execute NextTask+SiteExportControllerBase/nextTask+Timer/_timerDispatch
    [00:08:21.231] AlertAndExit because of: There should not be such ID exists in the mapping

  • Looking for Users but Terminal says No such file or directory

    Hi I'm trying to delete something out of my DVD Studio Pro cache but when I look for the Library it has gone. I've tried calling it up in Terminal with 'chflags nohidden ~/Library' and it comes back with No such file or directory. Has anyone lost their library completely?
    Thanks,
    Des

    Are you entering that command with the quotes? If so remove them. Also, use Go to folder (Cmd-shift-g) and enter just ~/Library. I bet everything is still there.

  • Starting Stream Analtyics says output was not defined in query

    I get the following error when starting my streaming analytics setup:
    Stream Analytics job has validation errors: The output output used in the query was not defined. Activity Id: 'c0d50509-a2a9-4a8c-846d-5bf01b751344-2015-04-18 22:37:42Z'.
    What does this error mean? And more importantly, how can I fix this?
    I found some reference material using the "INTO" statement in the query, however this doesn't work for me and indicated that me query is incorrect. So I guess this function is obsolete?

    The likely cause of this error is that you do not an output with the default name defined for your job.
    If your SQL query does not use a named output, that is it does not use the INTO keyword that it is expected that you have a default output defined for the job (with name "output"). The error message does not tell you that clearly and that is a
    bug we will work on fixing.
    If your SQL query does use the INTO keyword, then you simply need to use the same name of the output as you have defined for your job. If you are running into an issue making that work please let us know.
    Thanks
    Zafar Abbas

  • WLST writeTemplate keeps saying "No such file or directory"

    having trouble writing a template on WLS 10 running under Ubuntu 7.10
              Anyone see what I'm doing wrong?
              weblogic@lappy:~/templates$ pwd
              /home/weblogic/templates
              weblogic@lappy:~/templates$ ls -al
              total 32
              drwxr-xr-x 2 weblogic weblogic    88 2007-11-12 19:03 .
              drwxr-xr-x 4 weblogic weblogic   392 2007-11-12 18:24 ..
              -rwxr-xr-x 1 weblogic weblogic 31364 2007-11-12 19:03 prod_domain-Template.jar
              weblogic@lappy:~/templates$ java weblogic.WLST
              Initializing WebLogic Scripting Tool (WLST) ...
              Welcome to WebLogic Server Administration Scripting Shell
              Type help() for help on available commands
              wls:/offline> readTemplate('/home/weblogic/templates/prod_domain-Template.jar')
              wls:/offline/base_domain>writeTemplate('/home/weblogic/templates/prod_domain-Template.jar')
              Error: writeTemplate() failed. Do dumpStack() to see details.
              wls:/offline/base_domain>dumpStack()
              com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.script.ScriptException: java.io.IOException: No such file or directory
                      at com.bea.plateng.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:51)
                      at com.bea.plateng.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:1468)
                      at com.bea.plateng.domain.script.jython.WLScriptContext.writeTemplate(WLScriptContext.java:830)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:585)
                      at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
                      at org.python.core.PyMethod.__call__(PyMethod.java:96)
                      at org.python.core.PyObject.__call__(PyObject.java:270)
                      at org.python.core.PyInstance.invoke(PyInstance.java:261)
                      at org.python.pycode._pyx5.writeTemplate$15(/tmp/WLSTOfflineIni41011.py:73)
                      at org.python.pycode._pyx5.call_function(/tmp/WLSTOfflineIni41011.py)
                      at org.python.core.PyTableCode.call(PyTableCode.java:208)
                      at org.python.core.PyTableCode.call(PyTableCode.java:267)
                      at org.python.core.PyFunction.__call__(PyFunction.java:172)
                      at org.python.pycode._pyx23.f$0(<console>:1)
                      at org.python.pycode._pyx23.call_function(<console>)
                      at org.python.core.PyTableCode.call(PyTableCode.java:208)
                      at org.python.core.PyCode.call(PyCode.java:14)
                      at org.python.core.Py.runCode(Py.java:1135)
                      at org.python.core.Py.exec(Py.java:1157)
                      at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:148)
                      at org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java:89)
                      at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java:70)
                      at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java:44)
                      at weblogic.management.scripting.WLST.main(WLST.java:157)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:585)
                      at weblogic.WLST.main(WLST.java:29)
              Caused by: com.bea.plateng.domain.script.ScriptException: java.io.IOException: No such file or directory
                      at com.bea.plateng.domain.script.ScriptExecutor.writeTemplate(ScriptExecutor.java:754)
                      at com.bea.plateng.domain.script.jython.WLScriptContext.writeTemplate(WLScriptContext.java:826)
                      ... 29 more
              Caused by: java.io.IOException: No such file or directory
                      at java.io.UnixFileSystem.createFileExclusively(Native Method)
                      at java.io.File.checkAndCreate(File.java:1345)
                      at java.io.File.createTempFile(File.java:1434)
                      at com.bea.plateng.domain.DomainHelper.getTempDirectory(DomainHelper.java:740)
                      at com.bea.plateng.domain.script.ScriptHelper.extractTemplate(ScriptHelper.java:567)
                      at com.bea.plateng.domain.script.ScriptExecutor.writeTemplate(ScriptExecutor.java:696)
                      ... 30 more

    The server is going to look for the file relative to its current directory which is directory in which the jvm was started. You should use the ServletContext gerRealPath method to create an absolute path to the file.
    http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String)

  • I accidentally deleted the web address input bar at the top of the screen as well as the area that says things such as 'File' 'View' 'History' etc... how do I get it back?

    I've tried deleting firefox and redownloading it, but it won't come back. All I have at the top now are bookmarks and open tabs, it's getting really annoying when I want to post or share a web address and I can't because the bar is gone.
    == This happened ==
    Every time Firefox opened
    == I accidentally told it to hide the options

    Hit the '''Alt''' key to show the Menu bar, then open View > Toolbars and select Menu bar, so it has a check-mark.

  • XDoclet @ejb:ejb-ref

    From the documentation...
    @ejb:ejb-ref
    Defines an EJB-reference. Applicable to all EJB types. Attention You have to import the referred class (the ejbdoclet one) even your EJB does not need it.
    Can someone explain this to me?Especially this part "Attention You have to import the referred class (the ejbdoclet one) even your EJB does not need it."
    I have a problem referring to my local entity beans from my session beans...XDoclet complains that "There is no such EJB defined" with regards to my Entity Beans....

    Hi.
    I am using "@ejb.ejb-external-ref" to solve the reference problem.
    I hope this will help you.
    Bye

  • Use of externally-defined/ in weblogic-ejb-jar.xml

    I am trying to use Global Roles defined via the Weblogic console to control access to EJB methods.
    I am using the <externally-defined/> tag in security role assignments, however when I deploy to Weblogic I get the following error :
    <8/09/2004 04:21:42 PM GMT+10:00> <Error> <Deployer> <BEA-149205> <Failed to initialize the application appsdirmars-marketdata_ear due to error weblogic.manag
    ement.ApplicationException: Prepare failed. Task Id = null
    Module Name: ejb-marketdata.jar, Error: [EJB:011024]The XML parser encountered an error in your deployment descriptor. Please ensure that your deployment descriptor corresponds to the format in the DTD. The error was:
    Error parsing file 'META-INF/weblogic-ejb-jar.xml' at line: 51 column: 26. Element type "externally-defined" must be declared..
    at weblogic.j2ee.J2EEApplicationContainer.checkForErrors(J2EEApplication
    Container.java:1612)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
    er.java:1207)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
    er.java:1051)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
    er.java:823)
    at weblogic.management.deploy.slave.SlaveDeployer$Application.prepare(Sl
    aveDeployer.java:2925)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareAllApplications
    (SlaveDeployer.java:967)
    at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.j
    ava:349)
    at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resum
    e(DeploymentManagerServerLifeCycleImpl.java:229)
    at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
    at weblogic.Server.main(Server.java:32)
    I am running Weblogic 8.1 SP3 on Windows XP Pro.
    The XML is valid for the specified DTD according to my XML editor.
    The relevevant fragment from weblogic-ejb-jar.xml is included below.
    Any help much appreciated.
    Gavin.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN" "http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd">
    <weblogic-ejb-jar>
    <security-role-assignment>
    <role-name>MarsAdmin</role-name>
    <externally-defined/>
    </security-role-assignment>
    <security-role-assignment>
    <role-name>MarsViewer</role-name>
    <externally-defined/>
    </security-role-assignment>
    </weblogic-ejb-jar>

    I tried using the <global-role/> tag instead - this does deploy without any errors - but when I call the secure EJB method I get the Security Violation error below.
    The DTD says using the <global-role/> tag is fine, albeit deprecated, but the Weblogic 8.1 manual says this has been replaced by <externally-defined/>, so I'm not sure if this should work or not.
    [EJB:010160]Security Violation: User: 'ghughes' has insufficient permission to access EJB: type=<ejb>, application=_appsdir_mars-marketdata_ear, module=ejb-marketdata.jar, ejb=marketdata.MarketDataManager, method=getEnergyOverview, methodInterface=Remote, signature={java.util.Date}.
    So on the whole I'd prefer to work out why Weblogic isn't recognising <externally-defined/> - I've included the full deployment descriptor below - I'm generating it using the latest snapshot of XDoclet - is the DTD specified correct for Weblogic 8.1 SP3 ? (It matches the one specified in http://e-docs.bea.com/wls/docs81/ejb/DDreference-ejb-jar.html - but I can't think of anything else that could be wrong).
    Any tips much appreciated as I need to enable an administrator to customise these roles at runtime rather than hard-coding the role - group mappings into the deployment descriptors.
    Thanks,
    Gavin.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN" "http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd">
    <weblogic-ejb-jar>
    <description><![CDATA[Generated by XDoclet]]></description>
    <weblogic-enterprise-bean>
    <ejb-name>marketdata.MarketDataManager</ejb-name>
    <stateless-session-descriptor>
    </stateless-session-descriptor>
    <reference-descriptor>
    </reference-descriptor>
    <jndi-name>marketdata.MarketDataManager</jndi-name>
    <local-jndi-name>marketdata.MarketDataManagerLocal</local-jndi-name>
    </weblogic-enterprise-bean>
    <weblogic-enterprise-bean>
    <ejb-name>marketdata.MessageManager</ejb-name>
    <message-driven-descriptor>
    <pool>
    <max-beans-in-free-pool>5</max-beans-in-free-pool>
    <initial-beans-in-free-pool>1</initial-beans-in-free-pool>
    </pool>
    <destination-jndi-name>FileTopic</destination-jndi-name>
    <connection-factory-jndi-name>JMSConnectionFactory</connection-factory-jndi-name>
    <jms-polling-interval-seconds>10</jms-polling-interval-seconds>
    <jms-client-id>1</jms-client-id>
    </message-driven-descriptor>
    <transaction-descriptor>
    <trans-timeout-seconds>10</trans-timeout-seconds>
    </transaction-descriptor>
    <reference-descriptor>
    </reference-descriptor>
    <enable-call-by-reference>True</enable-call-by-reference>
    </weblogic-enterprise-bean>
    <!--
    To add enterprise beans that you have deployment descriptor info for, add
    a file to your XDoclet merge directory called weblogic-enterprise-beans.xml that contains
    the <weblogic-enterprise-bean></weblogic-enterprise-bean> markup for those beans.
    -->
    <!-- xdoclet merge file -> weblogic-ejb-jar.xml -->
    <security-role-assignment>
    <role-name>MarsAdmin</role-name>
    <externally-defined/>
    </security-role-assignment>
    <security-role-assignment>
    <role-name>MarsViewer</role-name>
    <externally-defined/>
    </security-role-assignment>
    <idempotent-methods>
    </idempotent-methods>
    </weblogic-ejb-jar>
    Message was edited by [email protected] at Sep 8, 2004 8:45 PM

  • Xdoclet for Generate CMR Fileds orion-ejb-jar

    Does anybody try to use xdoclet to generate orion-ejb-jar.xml with ejb relation?
    i tried with @orion.persistence but it's not generate fine.
    thanks for any advice.

    i got this in the orion-ejb-jar.xml
    <entity-deployment name="Invoice_master" data-source="jdbc/OracleDS2" table="INVOICE_MASTER">
    and got this in the data-sources.xml
         <data-source
              class="com.evermind.sql.DriverManagerDataSource"
              name="OracleDS2"
              location="jdbc/OracleCoreDS2"
              pooled-location="jdbc/OraclePooledDS2"
              xa-location="jdbc/xa/OracleXADS2"
              ejb-location="jdbc/OracleDS2"
              connection-driver="oracle.jdbc.driver.OracleDriver"
              username="_x_"
              password="_y_"
              min-connections="3"
              max-connections="20"
              url="jdbc:oracle:thin:@_ip_:1521:devdb"
              inactivity-timeout="30"
         />
    and i've got no problems with OracleDS2 from other places in the application (getting Connections from the DataSource).. (but its NOT the first source, its the second(as the name may indicate) we're operating with 3 different datasources, going by OracleDS1, OracleDS2, OracleDS3)
    Other problems ? to come, to come ;)
    Thanks for your time.
    with regards.

  • Orion-ejb-jar.xml for oc4j and xdoclet

    Does anybody try to use xdoclet to generate orion-ejb-jar.xml with ejb relation?
    Could somebody show me any example of definition relation for xdoclet and orion-ejb-jar.xml? (@orion:persistence...)
    thanks for any advice... :-)
    Zajo

    Hello,
    The warning message looks to be unrelated to the java.lang.IllegalArgumentException error. The warning states that optimistic locking cannot be migrated to the toplink-ejb-jar.xml file; this is stated in chapter 7 of the TopLink developer's guide at
    http://download-west.oracle.com/otn_hosted_doc/toplink/1013/MAIN/_pdf/b13593_v1_01.pdf
    The exception though seems to indicate that your orion-ejb-jar.xml contains EJBs mapped to the same table that are not related through EJB inheritance. I do it all the time with POJOs so this will work in TopLink, but you will need a support case to help get your project migrated if this is the case.
    Best Regards,
    Chris Delahunt

  • Compiler says defined constructor is NOT defined

    I'm sure I've used something very much like this before. I don't get it. The constructor IS defined. Why does it say it is not defined?
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    import java.awt.event.*;
    import java.awt.*;
    public class Sample extends JFrame
      implements WindowListener, ActionListener {
      static private Sample              parentFrame;
      public void windowClosing(WindowEvent e) { };
      public void windowClosed(WindowEvent e) { };
      public void windowOpened(WindowEvent e) { };
      public void windowIconified(WindowEvent e) { };
      public void windowDeiconified(WindowEvent e) { };
      public void windowActivated(WindowEvent e) { };
      public void windowDeactivated(WindowEvent e) { };
      public void windowGainedFocus(WindowEvent e) { };
      public void windowLostFocus(WindowEvent e) { };
      public void windowStateChanged(WindowEvent e) { };
      public void actionPerformed(ActionEvent e) { };
      public Sample() {
        // ... constructor
      private static void createAndShowGUI() {
      //Create and set up the window.
        parentFrame = new Sample("Alert!");
        parentFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        //Display the window.
        parentFrame.pack();
        parentFrame.setSize(450,200);
        parentFrame.setVisible(true);
      public static void main(String[] args) {
        //Schedule a job for the event-dispatching thread:
        //creating and showing this application's GUI.
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                createAndShowGUI();
    }Error:
    Sample.java:33: cannot resolve symbol
    symbol  : constructor Sample (java.lang.String)
    location: class Sample
        parentFrame = new Sample("Alert!");
                      ^
    1 error

    I'm beginning to understand what the real problem is. It's not immediately obvious to a beginner, but Java is clearly a very powerful language. The real problem is that the documentation was written BY experts FOR experts. Being experts, those who use the documentation daily don't even realize that that same documentation they find so helpful is utterly incomprehensible to a beginner.
    Try this experiment: Find an experienced programmer with expertise in at least two or three languages, but who has never used Java, and has never used PHP. How give them a random page from the Java documentation and a random page from the PHP documentation. What you will discover is that this experienced programmer will immediately understand the PHP page, learn from it, and be able to apply it immediately. Given the Java page, however, that same experienced programmer will NOT understand the documentation , will NOT be able to apply it immediately, and will learn nothing from it.
    What Sun needs to do is get a group of newbies to look at their documentation and instead of slinging insults at the newbies, look closely at WHY their documentation is so opaque to all but Java experts, and see what steps can be taken to make it more usable.
    The reason is that with languages like PHP an experienced programmer can start doing meaningful programming in the very first hour they are introduced to the language, but the way the Java documentation is structured the experienced programmer has to devote many weeks to learning vast amounts of background material before being able to do any meaningful programming.
    In my own particular situation, I am called upon to write code in four or five different languages. A typical project lasts only a week or two. I have no intention of devoting months to learning a language I only use occasionally, (I last used Java 11 months ago, and probably wont use it again for a year or two) especially since the other languages I use occasionally have documentation I can learn from directly, without having to invest that huge amount of time prior to actual coding.
    For the person who devotes themselves to Java, and specializes in Java, and codes exclusively, or primarily in Java, the documentation and learning curve is fine. For someone who uses Java only occasionally, the documentation is worthless. And that is not an indictment of Java as a language, but of the documentation, because with so many other languages the occasional user CAN pick up the bits and pieces needed for a small project directly from the documentation. (Take a look, for example, at this PHP function which is relatively complex. I'll bet that even if you've never used php, after looking at this page you could use this function in your own code IMMEDIATELY. http://www.php.net/manual/en/function.preg-match.php )
    My frustration is that I have 30+ years of programming experience and Java documentation makes me feel like an ignorant moron. No other programming language has ever done that to me. I just don't like being made to feel that way.
    So why, you might ask, doesn't my company hire someone experienced in Java for those projects? The fact is, Java projects come up very rarely, and I'm the only programmer on the staff who will even attempt the Java projects. All the other coders run screaming at the mere mention of Java. It is a universally hated language in this shop, not because of the language, but because everyone here hates documentation that seems to deliberately make them feel like morons.

  • WLS 5.1 SP8 improper load balancing of EJB

    I have noticed a strange behaviour in load balancing of EJB.
              I have 3 instances of WLS 5.1 sp8 running under a cluster, lets say X, Y and
              Z. Now if I access the EJB in the cluster from with in one of the WLS
              instances(eg servlet), lets say Y, then I always get the reference from that
              same machine "Y" no matter what load balancing algorithm I set. No matter
              how many times I access this EJB from machine Y it will only give me
              reference of EJB from Y. Somehow this seems wrong, it should round-robin
              between X, then Y then Z and then X again no matter where I get a reference
              from.
              Now if I access the EJB from outside of the cluster, a fourth JVM, then each
              time I get the reference from a different machine and clustering works fine
              and load balances as expected.
              Any explanation, workaround ??? Most of the EJB referencing we are doing is
              within the cluster itself, this is causing problems because everything
              works, but on a single machine even though we have a cluster set up. We only
              reference the EJB externally once, that does get clustered, but from that
              point on, everything happens on that machine.
              

              What you really want to do is use CallRouter - I've used it with clustered RMI,
              I have not used it with EJB. (but EJB use RMI so you should be able to make it
              work).
              Personally, I'd be writing my number crunching bits in C about now.
              Mike
              "Haider Kazmi" <[email protected]> wrote:
              >Thanks Mike, let me give creating InitialContext with specific IP address
              >a
              >try , maybe we can put in load sharing logic in our code this way.
              >
              >As for using C, I think as with all products, our marketing team wouldn't
              >like that but thats a definate approach to improve performance.
              >
              >cheers
              >
              >"Mike Reiche" <[email protected]> wrote in message
              >news:[email protected]...
              >>
              >> You're doing heavy computation in Java - it's going to be slow.
              >> Write it in C, call it using JNI and it will be about 10 times as fast.
              >>
              >> There 'executing sequentially' is not a function of the EJB
              >specification. I
              >> assume your code looks something like...
              >>
              >>
              >> result1= ejb1.calculate1 ( a, b, c );
              >> result2= ejb2.calculate2 ( e, f, result1);
              >> result3= ejb3.calcualte3 ( x, result3);
              >>
              >> caculate3 won't be called until calculate2 has finished, which won't
              >be
              >called
              >> until calculate1 has finished. Sequential.
              >>
              >> If you really want to force the EJBs on a specific WL instance, just
              >specify the
              >> IP address and port number when you create the InitialContext.
              >>
              >> Mike
              >>
              >>
              >>
              >> "Haider Kazmi" <[email protected]> wrote:
              >> >Hi Mike
              >> >
              >> >> First you gotta understand that calling an EJB on a remote JVM costs
              >> >about
              >> >10 times
              >> >> as much as calling one on a local instance. That's what I tried
              >to
              >> >say in
              >> >the
              >> >> first followup.
              >> >>
              >> >> Second, if whatever is calling the EJB (JSP, Servlet) is load balanced,
              >> >then -
              >> >> presto - all the EJB calls are load balanced as well.
              >> >
              >> >Thats definately true, I think I might have created some confusion,
              >what
              >> >I
              >> >was really trying to say is that we are doing a lot of processing
              >and
              >> >its
              >> >mathematical in nature unlike the standard credit card transaction
              >or
              >> >website transaction. We have optimized this to a large extent, the
              >real
              >> >problem we get into is when the consumers of this result try to consume
              >> >them, each of which are stateless session beans.
              >> >The result gets posted on a JMS topic, servlet was an example, what
              >we
              >> >actually have are JMS clients calling more EJBs once a result is posted
              >> >on
              >> >the JMS topic. So here is how it goes, once the processing of workflow
              >> >is
              >> >done, this published on the relevent JMS topic based on the result
              >of
              >> >the
              >> >workflow process. All the related JMS clients subscribed to this topic
              >> >pick
              >> >it up. They call relevent EJBs with this result. So we don't have
              >control
              >> >over load balancing our clients.
              >> >
              >> >> The only time that such a configuration would load only one instance
              >> >is if
              >> >you
              >> >> only had one such EJB call at a time. But this is still faster
              >than
              >> >having the
              >> >> EJBs load balanced on remote JVM. Load balanced or not, the EJB
              >calls
              >> >are
              >> >NOT
              >> >> made in parallel, thus the calling method has to wait for the first
              >> >call
              >> >to finish,
              >> >> then the second, then the third... so that if each call takes longer
              >> >on a
              >> >remote
              >> >> JVM than locally, your total wait time is longer.
              >> >thanks for this info. I think I better read the EJB specs in more
              >details.
              >> >however whats not clear to me is even if the EJBs are different (not
              >> >just
              >> >different instances of the same EJBs and what about different instances
              >> >of
              >> >the same EJB, are things still done sequentially) will only one method
              >> >be
              >> >called at a time??
              >> >
              >> >> Maybe that's not clear - distributing the calls does not make anything
              >> >happen
              >> >> any faster - it just spreads it out.
              >> >Is this also true for stateless session beans, specifically among
              >different
              >> >instances of the same bean?
              >> >
              >> >> You should be spending your time figuring out how to reduce the
              >amount
              >> >of
              >> >processing.
              >> >This is where I am stuck at now. We are at a point where a lot of
              >the
              >> >optimization is done. The problem arizes when processing is done and
              >> >the
              >> >result is posted on the JMS, a bunch of stateless session bean try
              >to
              >> >consume the result all at once.
              >> >
              >> >
              >>
              >
              >
              

  • EJB EAR deployment for weblogic 9.2

    Hello!
    I already have the EJB3.0 application which I would like to deploy. After preparing the .ear file I tried to deploy it with the Administration console. I received the error message, and I found a workaround : [url http://forums.bea.com/bea/thread.jspa?threadID=600016992&tstart=0]here (@dev2dev). When I tried the console deployment, I received the following error message:
    <11.12.2006 14.49 Uhr CET> <Error> <Deployer> <BEA-149265> <Failure occured in the execution of deployment request with ID '1165844945693' f
    or task '3'. Error is: 'weblogic.application.ModuleException: Exception preparing module: EJBModule(app5.jar)
    weblogic.application.ModuleException: Exception preparing module: EJBModule(app5.jar)
            at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:394)
            at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
            at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:318)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
            at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:53)
            Truncated. see log file for complete stacktrace
    java.lang.IllegalStateException: getLocalName() may only be called on a START_ELEMENT, END_ELEMENT or ENTITY_REFERENCE event, the current st
    ate is [END_DOCUMENT]
            at weblogic.xml.stax.XMLStreamReaderBase.getLocalName(XMLStreamReaderBase.java:524)
            at javax.xml.stream.util.StreamReaderDelegate.getLocalName(StreamReaderDelegate.java:216)
            at javax.xml.stream.util.StreamReaderDelegate.getLocalName(StreamReaderDelegate.java:216)
            at com.bea.xbean.richParser.XMLStreamReaderExtImpl.getLocalName(XMLStreamReaderExtImpl.java:1294)
            at com.bea.staxb.runtime.internal.UnmarshalResult.getLocalName(UnmarshalResult.java:867)
            Truncated. see log file for complete stacktrace
    >
    <11.12.2006 14.49 Uhr CET> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'app5'.
    >
    <11.12.2006 14.49 Uhr CET> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: Exception preparing module: EJBModule(app5.jar)
            at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:394)
            at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
            at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:318)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
            at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:53)
            Truncated. see log file for complete stacktrace
    java.lang.IllegalStateException: getLocalName() may only be called on a START_ELEMENT, END_ELEMENT or ENTITY_REFERENCE event, the current st
    ate is [END_DOCUMENT]
            at weblogic.xml.stax.XMLStreamReaderBase.getLocalName(XMLStreamReaderBase.java:524)
            at javax.xml.stream.util.StreamReaderDelegate.getLocalName(StreamReaderDelegate.java:216)
            at javax.xml.stream.util.StreamReaderDelegate.getLocalName(StreamReaderDelegate.java:216)
            at com.bea.xbean.richParser.XMLStreamReaderExtImpl.getLocalName(XMLStreamReaderExtImpl.java:1294)
            at com.bea.staxb.runtime.internal.UnmarshalResult.getLocalName(UnmarshalResult.java:867)
            Truncated. see log file for complete stacktrace
    >I would just like to mention, that it is not really self-explaining. Can somebody help me and explain me what does this error mean?
    Also, is there a document describing the complete deployment process for wl9.2?
    Thank you.
    Konstantin

    MIK wrote:
    I have a question about weblogic-ejb-jar.xml file entries.
    weblogic 9.1 server says it is invalid while deploying my file
    my file is as under,
    <?xml version="1.0"?><!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems,
    Inc.//DTD WebLogic 8.1.0 EJB//EN'
    'http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd'>
    <weblogic-ejb-jar xmlns="http://www.bea.com/ns/weblogic/910"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/ns/weblogic/910
    http://www.bea.com/ns/weblogic/910/weblogic-ejb-jar.xsd">
    <weblogic-enterprise-bean>
              <ejb-name>MessageAccess</ejb-name>
              <message-driven-descriptor>
    <resource-adapter-jndi-name>SystemModule-test</resource-adapter-jndi-name>
              </message-driven-descriptor>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    can anybody help what is wrong with it?the error I get is this,
    [EJB:011023]An error occurred while reading the deployment descriptor.
    The error was:
    Unmarshaller failed.
    at
    weblogic.ejb.container.deployer.EJBModule.loadEJBDescriptor(EJBModule.java:957)
    at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:317)
    at
    weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:90)
    at
    weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:318)
    at
    weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    and XMLSPY also says that weblogic-ejb-jar.xml is invalid and the error
    there is,
    Root element '<weblogic-ejb-jar' not defined in DTD/Schema.

Maybe you are looking for

  • Since installing Firefox 29, my router constantly reboots on its own

    Since installing Firefox 29, my router constantly reboots on its own. Is anyone else having this problem? And could it indeed be caused by Firefox?

  • Problem in Inbound Processing

    Hi I am using Inbound Processing using WE19. It is showing "Partner profile not maintained". However I have maintained in WE20 & added Msg Type in Inbound Params. After generating IDoc, in WE05 its showing status Red & showing message - Partner profi

  • Nokia 603 Call Record Facility

    Hi... I have nokia 603 and want to know how to record calls. Can anybody suggest me authentic app for this and is there any facility in nokia 603 for record calls.  I want when i call person then record all call conversion. Please suggest me

  • Move database to the new server

    Hello, I have 10.2.0.1 Standard Edition database (7GB, not in archivelog mode) on Windows2003 server, and need to move it to the new server (same environment). I thought to use OEM Clone option, but it appears cloning to the other host is working onl

  • X1900gt g5 edition in the uk

    hello. Has anyone heard or seen any news about the X1900GT G5 Edition PCIe card for the UK market? It's to replace the Geforce 6600 in my late 2005 2.3 G5. I cant find it at the Apple store and it looks like it's only available from US resellers. Tha