facebook

WorkBench & JBoss 3.2 [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #197902 Reply

    suraphol
    Member

    Hi,

    I am trying to use JBoss with MyEclispe Workbench and I have the following problem, and I wonder if there is a quick fix.

    I am using Workbench 2.5.1 running in Eclipse 2.1.1. My OS is NT 4.0 SP6.. My JDK is 1.3.1. I have downloaded JBoss 3.2.2 (with Tomcat 4.1? bundled) and installed in my computer. I have used the following configuration for JBoss:
    JBoss Home Directory: “C:\Program Files\JBoss\jboss-3.2.2RC2”
    Server Name: “myJBossServer”
    XML Document Builder Factory Class: “org.apache.crimson.jaxp.DocumentBuilderFactoryImpl”
    SAX Parse Factory Class: “org.apache.crimson.jaxp.SAXParserFactoryImpl”
    Optional Program Arguments: “”
    Optional Shutdown Arguments: “–shutdown”

    I tried to start JBoss but I have the following error:

    Error starting JBoss:
    “A configuration error occured during startup. Please verify the preference field with the prompt: JBoss JDK name”

    What is wrong? Thanks…

    #197904 Reply

    Scott Anderson
    Participant

    I used the forum search facility for all the terms: JBoss JDK name
    and quickly found this thread that documents the solution:
    https://www.genuitec.com/forums/topic/problems-when-starting-jboss/&highlight=jboss+jdk+name

    –Scott
    MyEclipse Support

    #197908 Reply

    suraphol
    Member

    Thanks Scoot, that works!!

    #197911 Reply

    suraphol
    Member

    I have one more problem:

    I have created an Enterprise Application Project, in which I have an EJB project, which has a session bean and an entity bean. I have not modified the generated files.

    I then configured XDoclet to use “Standard EJB” and checked (just for testing) all checked boxes to generate everything (the home interface, remote interface,…).

    I then run XDoclet, but I don’t see anything in the ejb-jar.xml file. What step did I missed?

    #197918 Reply

    Scott Anderson
    Participant

    I then run XDoclet, but I don’t see anything in the ejb-jar.xml file. What step did I missed?

    You missed the “configuration” step. You have to configure the settings in the XDoclet module to tell it where your source is, where to place output files, and how you name your packages. See sourceDir, destDir, fileset, etc.

    In the online help, which is newer than the help in the product, there is an example on generating an EJB with XDoclet in the Tasks section under http://www.myeclipseide.com/modules.php?op=modload&name=PostWrap&file=index&page=http://myeclipseide.com/enterpriseworkbench/help/index.jsp

    –Scott
    MyEclipse Support

    #197925 Reply

    suraphol
    Member

    I have still lost…help.

    To simplify matter, I tried to follow the example to generate a new EJB Project and then an EJB session bean. I use “src” as the source folder (example says must use ‘src’), and use “com.abc.ejb” as package (example says must be ended with ‘ejb’), my session is called “OneEntityBean” (example says must end with ‘Bean’). I add the Standard EJB XDoclet, and configured the ‘ejbdoclet’ to check ‘deploymentdescriptor, fileset, homeinterface, packageSubstitution, remoteinterface, session’ boxes. The example does not tell us to change any other setting. I then run XDoclet and STILL nothing happen.

    Is there an error log somewhere else I can read, I don’t see anything in the Error Log Perspective?

    The example uses “com.genuitec.trader.ejb” as the package, and the source folder is “TraderXEJB/src”, and “StockTraderBean” as the session bean name, it DOES NOT show that we need to change any other configuration before running XDoclet. It does NOT show we need to naviagate to change any property value for XDoclet.

    I am really spending too much time on XDoclet. Do you know what else can be wrong. Thank you very much for your help…

    p.s. I am always using the Online “MyEclipse User Guide”, I assume it is ‘complete’ and up-to-date.

    #197927 Reply

    Scott Anderson
    Participant

    Suraphol,

    I then run XDoclet and STILL nothing happen.

    I’m assuming you’re using the MyEclipse context menu and the ‘Run XDoclet’ setting, correct? Does the console view have any output?

    If the console view doesn’t have any output in it, there is most likely some incompatibility that is preventing XDoclet from running. There have been problems with using 1.3.1 to launch Eclipse and run XDoclet so an upgrade to 1.4.1 may help. To see if there are other issues, check the Eclipse log file at <workspace>/.metadata/.log and see if it contains any exception traces. It most likely will, because if your XDoclet configuration is incorrect you might get them also but it may provide a good starting point. If you’d like for us to look over the .log file, send it as an attachment to support@my…com and remember to include the full URL for this thread.

    –Scott
    MyEclipse Support

    #197944 Reply

    suraphol
    Member

    Yes, I am using the MyEclipse context menu item “Run XDoclet”. The console is totally blank.

    I have attached the log file to support…

    #197945 Reply

    Scott Anderson
    Participant

    I’ve reviewed the log file. This problem is caused by a bug in the 1.3.1 JVM that you’re using to run Eclipse. Launching Eclipse with JDK 1.4.1 or 1.4.2 should resolve the issue. Here is a thread that runs it down:
    https://www.genuitec.com/forums/topic/xdoclet-ant-file-not-generated-closed/&highlight=assert+islegal

    –Scott
    MyEclipse Support

    #197946 Reply

    suraphol
    Member

    I have installed JDK 1.4.2, make the adjustment in MyEclipse, it can generate the ejb-jar.xml file now.

    Thanks a million, you are really really helpful!

    #197947 Reply

    Scott Anderson
    Participant

    Suraphol,

    Glad to hear you’re up and running! Let us know if you need anything else.

    Thanks a million, you are really really helpful!

    You don’t have to thank us a “million”; $30 / year is all we ask. 😉

    –Scott
    MyEclipse Support

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: WorkBench & JBoss 3.2 [Closed]

You must be logged in to post in the forum log in