-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 52 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Help building eclipse plugins
PostPosted: Tue Mar 22, 2005 10:37 am 
Regular
Regular

Joined: Fri Feb 13, 2004 10:02 pm
Posts: 90
Hibernate version:
3.0rc1

I am currently trying to build the IDE plugins since several issues I am encountering have been fixed in CVS. I am still receiving some errors that I cannot seem to fix; any help would be greatly appreciated. Here are the steps I have taken.

1. Create root dir, Hibernate
2. CVS checkout Hibernate3 to Hibernate/Hibernate3
3. CVS checkout HibernateExt to Hibernate/HibernateExt
4. In Hibernate3 execute “ant jar copylibs”
5. In HibernateExt I set my 5.0 jdk in both properties files and execute build.bat
6. chdir to Hibernate/HibernateExt/org.hiberate.eclipse
7. execute “ant –f hibernate-build.xml update” and “ant update”
8. Open Eclipse and set my workspace to Hibernate/HibernateExt
9. Import all 5 eclipse projects
10. Copy the jars from Hibernate/hibernate-3.0/lib that are missing into org.hibernate.eclipse/lib
11. Set the classpath for the new jars


I am still receiving errors in org.hiberate.eclipse.console and org.hibernate.eclipse.mapper.

For instance I am getting an error on getSimpleName of object Class. I’m assuming that 1.5 is now required for this plugin?

The other errors are on the QueryPage.setActive(Object source) calls. They occur in

org.hibernate.eclipse.console.views.HibernatePropertyPage (line 172)

and

org.hibernate.eclipse.console.views.QueryPageViewer (line 205)


org.hibernate.eclipse.mapper.editors.HBMXmlResultCollector

The methods “setIgnored(int, boolean)” and “accept(Collectionproposal prop)” do not exist on ResultCollector.

Thanks in advance for the help. I really like the plugin.

Todd


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 22, 2005 7:09 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
http://hibernate.org/268.html

May help.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 22, 2005 9:00 pm 
Regular
Regular

Joined: Fri Feb 13, 2004 10:02 pm
Posts: 90
Yeah, I started with those directions. They were quite helpful, but they don't contain much information about working with the eclipse plugins other than the update command in the build file. I'm receiving source errors, has anyone else experienced this?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 22, 2005 9:02 pm 
Regular
Regular

Joined: Fri Feb 13, 2004 10:02 pm
Posts: 90
As a side note, is it possible to download nightly snapshot builds of the plugin?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 5:53 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Hi,

you are *very* close ,)

#7 should do #10's job, if not that is a bug.

the bug you have is already fixed. it was a intermediate issue where we by accident got som jdk 1.5 specific code in there. its fixed now.

report back if you can or cannot make it work ,)

regarding nightly snapshots then it is not available at the moment,
but we are working on providing it as part of a jbossIDE nightly build.

/max

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 10:39 am 
Regular
Regular

Joined: Fri Feb 13, 2004 10:02 pm
Posts: 90
Hey Max,
OK, I started from scratch and got the latest Hibernate3 and the latest HibernateExt. The update does not appear to copy a majority of the libraries. Granted, some such as c3p0, antlr, and cglib have been updated. All of the others such as commons-collections, dom4j, ecache etc are not being copied. I am only getting hibernate3, hibernateconsole, hibernate-tools, velocity, jtidy, and l2fprod-common. That aside, I’m still receiving errors on the class org.hibernate.eclipse.mapper.editors.HBMXmlResultCollector. The methods setIgnored (line 109+) and accept(line 189) do not appear to be valid API calls. I’m using eclipse 3.1M5. Any Ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 11:56 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
those classes are dependent on the latest jbossIDE stuff.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 11:57 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
are you sure that you have done a build copylib in hibernate 3 ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 1:06 pm 
Regular
Regular

Joined: Fri Feb 13, 2004 10:02 pm
Posts: 90
Positive, here is my output from my builds





directory

HibernateWorkspace/Hibernate3

command

ant jar copylib

output
Code:
Buildfile: build.xml

splash:

init:
     [echo] Build Hibernate-3.0 (2005-03-23 11:53:10)
     [echo] JDK version: 1.4

init.antlr:

antlr:

compile:

jar:

copylib:

BUILD SUCCESSFUL
Total time: 5 seconds





directory

HibernateWorkspace/HibernateExt

command

ant

output
Code:
Buildfile: build.xml

dist:

init:
     [echo] Build Hibernate Console-3.0 (2005-03-23 11:53:50)

compile:

jar:

javadoc:
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] Loading source files for package org.hibernate.console...
  [javadoc] Loading source files for package org.hibernate.console.docking...
  [javadoc] Loading source files for package org.hibernate.console.highlighter...
  [javadoc] Loading source files for package org.hibernate.console.node...
  [javadoc] Loading source files for package org.hibernate.console.swing...
  [javadoc] Loading source files for package org.hibernate.console.views...
  [javadoc] Constructing Javadoc information...
  [javadoc] Standard Doclet version 1.4.2_04
  [javadoc] Generating C:\JAVAProjects\HibernateWorkspace\HibernateExt\console\target\hibernateconsole-3.0\doc\api\constant-values.html...
  [javadoc] Copying file C:\JAVAProjects\HibernateWorkspace\hibernate-3.0\doc\api\jdstyle.css to file C:\JAVAProjects\HibernateWorkspace\HibernateExt\console\target\hibernateconsole-3.0\doc\api\jdstyle.css...
  [javadoc] javadoc: java.io.FileNotFoundException: C:\JAVAProjects\HibernateWorkspace\hibernate-3.0\doc\api\jdstyle.css (The system cannot find the path specified) encountered while
  [javadoc] performing copy.
  [javadoc] 1 error

copytest:

copysource:

copylib:

copydoc:

extras:
     [copy] Warning: C:\JAVAProjects\HibernateWorkspace\HibernateExt\console\bin not found.

dist:
      [zip] Building zip: C:\JAVAProjects\HibernateWorkspace\HibernateExt\console\target\hibernateconsole-3.0.zip
      [tar] Building tar: C:\JAVAProjects\HibernateWorkspace\HibernateExt\console\target\hibernateconsole-3.0.tar.gz

init:
     [echo] Build ejb-3.0-edr2 (2005-03-23 11:53:55)

compile:

jar:

common-build.init:
     [echo] Build Hibernate Annotations-3.0alpha3 (2005-03-23 11:53:55)

init:

compile:

jar:

javadoc:
     [echo] Skipping java doc since ant's javadoc task cannot handle an alternative javadoc

copytest:

copysource:

copylib:

extras:
     [copy] Warning: C:\JAVAProjects\HibernateWorkspace\HibernateExt\metadata\bin not found.

dist:

common-build.init:
     [echo] Build Hibernate Annotations-3.0alpha3 (2005-03-23 11:53:55)

init:

compile:

jar:

javadoc:
     [echo] Skipping java doc since ant's javadoc task cannot handle an alternative javadoc

copytest:

copysource:

copylib:

copydoc:

extras:
     [copy] Warning: C:\JAVAProjects\HibernateWorkspace\HibernateExt\metadata\bin not found.

common-build.dist:
      [tar] Building tar: C:\JAVAProjects\HibernateWorkspace\HibernateExt\metadata\target\hibernate-annotations-3.0alpha3.tar.gz

init:
     [echo] Build Hibernate Tools-3.0 (2005-03-23 11:53:56)

common-build.compile:

compile:

jar:

javadoc:
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] Loading source files for package org.hibernate.cfg...
  [javadoc] Loading source files for package org.hibernate.tool.ant...
  [javadoc] Loading source files for package org.hibernate.tool.hbm2x...
  [javadoc] Loading source files for package org.hibernate.tool.hbm2x.visitor...
  [javadoc] Constructing Javadoc information...
  [javadoc] Standard Doclet version 1.4.2_04
  [javadoc] Generating C:\JAVAProjects\HibernateWorkspace\HibernateExt\tools\target\hibernate-tools-3.0\doc\api\constant-values.html...
  [javadoc] Copying file C:\JAVAProjects\HibernateWorkspace\hibernate-3.0\doc\api\jdstyle.css to file C:\JAVAProjects\HibernateWorkspace\HibernateExt\tools\target\hibernate-tools-3.0\doc\api\jdstyle.css...
  [javadoc] javadoc: java.io.FileNotFoundException: C:\JAVAProjects\HibernateWorkspace\hibernate-3.0\doc\api\jdstyle.css (The system cannot find the path specified) encountered while
  [javadoc] performing copy.
  [javadoc] 1 error

copytest:

common-build.copysource:

copysource:

copylib:

copydoc:

extras:

dist:
      [zip] Building zip: C:\JAVAProjects\HibernateWorkspace\HibernateExt\tools\target\hibernate-tools-3.0.zip
      [tar] Building tar: C:\JAVAProjects\HibernateWorkspace\HibernateExt\tools\target\hibernate-tools-3.0.tar.gz

BUILD SUCCESSFUL
Total time: 11 seconds







directory

HibernateWorkspace/HibernateExt/org.hibernate.eclipse

command

ant -f hibernate-build.xml update

output
Code:
Buildfile: hibernate-build.xml

init:
     [echo] Build org.hibernate.eclipse-3.0 (2005-03-23 11:54:25)

update:

init:
     [echo] Build Hibernate Console-3.0 (2005-03-23 11:54:25)

compile:

jar:

init:
     [echo] Build Hibernate Tools-3.0 (2005-03-23 11:54:26)

common-build.compile:

compile:

jar:

copylib:

BUILD SUCCESSFUL
Total time: 2 seconds




directory

HibernateWorkspace/HibernateExt/org.hibernate.eclipse

command

ant

output

Code:
Buildfile: build.xml

init:
     [echo] Build org.hibernate.eclipse-3.0 (2005-03-23 11:54:36)

compile:
    [javac] Compiling 1 source file to C:\JAVAProjects\HibernateWorkspace\HibernateExt\org.hibernate.eclipse\build\classes

BUILD FAILED
C:\JAVAProjects\HibernateWorkspace\HibernateExt\common\common-build.xml:143: C:\JAVAProjects\HibernateWorkspace\HibernateExt\org.hibernate.eclipse\build\lib not found.

Total time: 1 second


As you can see the last one fails, if I create that directory and then run it again I get this

Code:
Buildfile: build.xml

init:
     [echo] Build org.hibernate.eclipse-3.0 (2005-03-23 12:00:54)

compile:
    [javac] Compiling 1 source file to C:\JAVAProjects\HibernateWorkspace\HibernateExt\org.hibernate.eclipse\build\classes
    [javac] C:\JAVAProjects\HibernateWorkspace\HibernateExt\org.hibernate.eclipse\src\org\hibernate\eclipse\HibernatePlugin.java:9: package org.eclipse.core.runtime does not exist
    [javac] import org.eclipse.core.runtime.Plugin;
    [javac]                                 ^
    [javac] C:\JAVAProjects\HibernateWorkspace\HibernateExt\org.hibernate.eclipse\src\org\hibernate\eclipse\HibernatePlugin.java:10: package org.osgi.framework does not exist
    [javac] import org.osgi.framework.BundleContext;
    [javac]                           ^
    [javac] C:\JAVAProjects\HibernateWorkspace\HibernateExt\org.hibernate.eclipse\src\org\hibernate\eclipse\HibernatePlugin.java:16: cannot resolve symbol
    [javac] symbol  : class Plugin
    [javac] location: class org.hibernate.eclipse.HibernatePlugin
    [javac] public class HibernatePlugin extends Plugin {
    [javac]                                      ^
    [javac] C:\JAVAProjects\HibernateWorkspace\HibernateExt\org.hibernate.eclipse\src\org\hibernate\eclipse\HibernatePlugin.java:18: cannot resolve symbol
    [javac] symbol  : class BundleContext
    [javac] location: class org.hibernate.eclipse.HibernatePlugin
    [javac]    public void start(BundleContext context) throws Exception {
    [javac]                           ^
    [javac] C:\JAVAProjects\HibernateWorkspace\HibernateExt\org.hibernate.eclipse\src\org\hibernate\eclipse\HibernatePlugin.java:19: cannot resolve symbol
    [javac] symbol  : variable super
    [javac] location: class org.hibernate.eclipse.HibernatePlugin
    [javac]       super.start(context);
    [javac]                 ^
    [javac] 5 errors

BUILD FAILED
C:\JAVAProjects\HibernateWorkspace\HibernateExt\common\common-build.xml:143: Compile failed; see the compiler error output for details.

Total time: 2 seconds



Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 1:19 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the eclipse plugins cannot be built by ant so just saying ant will fail.

i'll look into why the hibernate3 jars isnt copied - they should be.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 1:46 pm 
Regular
Regular

Joined: Fri Feb 13, 2004 10:02 pm
Posts: 90
Ok, for now I can manually copy the libs, but I still cannot export within eclipse due to the errors in the source. How do I get the latest that contain "setIgnored" and "accept" for HBMXmlResultCollector?

Todd


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 1:47 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
please show me the line that errors.

if its jbosside related then its availabe from the jboss cvs or the jboss ide homepage

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 2:32 pm 
Regular
Regular

Joined: Fri Feb 13, 2004 10:02 pm
Posts: 90
This is all in class

org.hibernate.eclipse.mapper.editors.HBMXmlResultCollector

All setIgnored(...) generates an error. The method does not exist.

Code:
public void setAccepts(boolean types, boolean packages, boolean classes, boolean interfaces, boolean fields, boolean methods) {
        settings = new Settings();
        settings.acceptTypes = types;
        settings.acceptPackages = packages;
        settings.acceptClasses = classes;
        settings.acceptInterfaces = interfaces;
        settings.acceptFields = fields;
        settings.acceptMethods = methods;
      
      setIgnored(CompletionProposal.ANONYMOUS_CLASS_DECLARATION,true);//error
      setIgnored(CompletionProposal.FIELD_REF,!isAcceptFields());//error
      setIgnored(CompletionProposal.KEYWORD, true);//error
      setIgnored(CompletionProposal.LABEL_REF, true);//error
      setIgnored(CompletionProposal.LOCAL_VARIABLE_REF,true);//error
      setIgnored(CompletionProposal.METHOD_DECLARATION,true);//error
      setIgnored(CompletionProposal.METHOD_NAME_REFERENCE,true); // maybe true to handle properties ?//error
      setIgnored(CompletionProposal.METHOD_REF,true); // maybe true to handle properties ?//error
      setIgnored(CompletionProposal.PACKAGE_REF,!isAcceptPackages());//error
      setIgnored(CompletionProposal.POTENTIAL_METHOD_DECLARATION,true);//error
      setIgnored(CompletionProposal.TYPE_REF,!(isAcceptClasses() || isAcceptInterfaces())); // decide during completion if accepted truly//error
      setIgnored(CompletionProposal.VARIABLE_DECLARATION, true);//errora
   }



All accept(...) generates an error. The method does not exist.

Code:
public void accept(CompletionProposal proposal) {
      super.accept(proposal);//error
   }



Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 2:47 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
ok - this is actually all stuff in eclipse 3.1M5.

if it doesnt compile you are probably only on 3.1M4

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 4:28 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
btw. i just tested build -f hibernate-build.xml

and after i have run that target the lib directory contains

proxool-0.8.3.jar
ehcache-1.1.jar
jboss-cache.jar
jaas.jar
jgroups-2.2.7.jar
hibernate3.jar
jboss-system.jar
jboss-common.jar
c3p0-0.8.5.jar
dom4j-1.5.2.jar
cglib-full-2.0.2.jar
jta.jar
commons-logging-1.0.4.jar
log4j-1.2.9.jar
concurrent-1.3.2.jar
oscache-2.1.jar
swarmcache-1.0rc2.jar
antlr-2.7.5H3.jar
jboss-jmx.jar
commons-collections-2.1.1.jar
connector.jar
jdbc2_0-stdext.jar
jtidy-r8-21122004.jar
velocity-1.4.jar
velocity-tools-generic-1.1.jar
hibernate-tools.jar
l2fprod-common.jar
hibernateconsole.jar

....looks pretty complete in my book ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 52 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.