facebook

unexpected element"{}plugin"{antlib:org.apache.too

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #250895 Reply

    Goro216
    Member

    I am using Eclipse 3.1 with myEclipse 4.0.3 GA. I’ve added Struts and Hibernate capabilities and now i have the aforementioned error that occurs on my .xml files.

    unexpected element”{}plugin”{antlib:org.apache.tools.ant}plugin

    shows up on the struts-config.xml line : <struts-config>

    and i have no idea why. It seems to build and deploy fine, but i am now running into problems when i try to get myEclipse to build my hibernate mapping files for me as they end up (mostly) empty, with only the skeletal structure and no actual mapping info.

    any help is appreciated.

    thx
    -goro-

    #250944 Reply

    Riyad Kalla
    Member

    Goro,
    This sounds like an installation problem. Please follow this tip: http://myeclipseide.com/PNphpBB2+file-viewtopic-t-10272.html

    and then reimport your project and preferences using the File > Export and File > Import menus. I’ve never seen that issue and it makes me think something got goofed in your install or associations.

    #250993 Reply

    Goro216
    Member

    That seemed to help. Thanks.

    However, now another error has cropped up (hidden as a result of that previous one).

    Using Eclipse 3.1.2, MyEclipse 4.1.1, After adding hibernate capabilies and then using the DB Browser to locate a Table, I right click and select Create Hibernate Mapping. It acts as if it is doing so, but in the end, does not generate any .hbm.xml files nor does it generate the DTO .java files. When i use Eclisep 3.1.2 and MyEclipse 4.0.3, then it DOES create the DTO .java files, but does not fill in the private members nor does it fill in the .hbm.xml file. It jsut genereates the following:

    <?xml version=”1.0″ encoding=’UTF-8′?>
    <!DOCTYPE hibernate-mapping PUBLIC
    “-//Hibernate/Hibernate Mapping DTD 3.0//EN”
    http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd&#8221; >

    <!– DO NOT EDIT: This is a generated file that is synchronized –>
    <!– by MyEclipse Hibernate tool integration. –>
    <!– Created Mon Apr 24 10:00:24 MST 2006 –>
    <hibernate-mapping>

    <class name=”Lmshibernatetest” table=”LMSHibernateTest”>

    </class>

    </hibernate-mapping>

    Any idea what is goin wrong here? I’d prefer to use 4.1.1 as the wizard seems much more flexible, but would just like for the plugin to generate what it’s supposed to. Note that when i use the DB Browser to “Edit Data”, it does return the proper rows so the JDBC driver is functioning.

    thx

    -goro-

    #250997 Reply

    Riyad Kalla
    Member

    What database are you using? What JDBC driver and version? Any exceptions in your log file? (<workspace dir>\.metadata\.log)

    #251009 Reply

    Goro216
    Member

    I am using SQLServer2000. From the ReadMe:
    Microsoft SQL Server 2000 Driver for JDBC
    Service Pack 1
    Version 2.2.0029
    December 2002

    No errors reported in the .log

    I notice the following (Eclipse 3.1.2, myEclipse 4.1):

    When i am in the DB Browser, i can click “EDIT DATA” and it will return the all the rows.

    However, when i Click “GENERATE HIBERNATE MAPPING” and go to the 3rd page of the wizard and click on the Table (to the right), it does not show the column names (as i see it should from some tutorials).

    thx
    -goro-

    #251014 Reply

    Riyad Kalla
    Member

    Goro,
    The MS JDBC driver for SQL Server is horrible, please give this one a try instead: http://jtds.sourceforge.net/

    #251020 Reply

    Goro216
    Member

    Thx. I installed and set up the JTDS driver. While it works fine in the DB Browser, hibernate does not wish to add anything to my project. ie., it didn’t help.

    thx-

    -goro-

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: unexpected element"{}plugin"{antlib:org.apache.too

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