You are reporting alot of different issues in this thread - any chance you
could seperate them out in different threads/jira's instead ?
Makes it much easier to help.
sorry for late reply, but that is what 2 weeks of vacation does ;)
View the original post :
http://www.jboss.org/index.html?mod
Just noticed this in my console:
2009-07-13 10:58:32,488 WARN Worker-2
org.hibernate.connection.UserSuppliedConnectionProvider - No connection
properties specified - the user must supply JDBC connections
| 2009-07-13 10:58:34,691 WARN Worker-6 org.hibernate.cfg.reveng.JDBCReader -
The JDBC dr
message:
java.lang.ArrayIndexOutOfBoundsException: 2
exception stack trace:
java.lang.ArrayIndexOutOfBoundsException: 2
| at
org.hibernate.eclipse.console.utils.ProjectUtils.removeProjectNature(ProjectUtils.java:128)
| at
org.hibernate.eclipse.console.utils.ProjectUtils.toggleHiber
When I click the + (plus) icon to expand the Configuration and Session Factory
in the Hibernate Configurations view, there is nothing there for either.
The configuration type is JPA and I can see the tables in the db from the
Hibernate Configurations view.
View the original post :
http://www.j
I did a 'ant clean undeploy explode' and still seeing errors after restarting
JBDS...
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4243362#4243362
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4243362
in Java build path --> source tab, what is the benefit of using "allow output
folders for source folders" and should I try that now?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4243361#4243361
Reply to the post :
http://www.jboss.org/index.html?module=bb&o
[CODE]Contributor org.jboss.ide.eclipse.as.ui.views.JBossServerView cannot be
created.
An exception stack trace is not available.[/CODE]
[CODE]Problems occurred when invoking code from plug-in:
"org.eclipse.ui.console".[/CODE]
[CODE]org.eclipse.swt.SWTException: Device is disposed
at org.eclip
I am seeing 7 errors in the problems tab all related to * is not mapped. Even
after I changed the default output folder back to foo/bin. Not sure what's
going on...
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4243357#4243357
Reply to the post :
http://w
I am experiencing the same problem again for a different project/workspace in
JBDS 2.0.0.CR2.
org.hibernate.hql.ast.QuerySyntaxException: EquipmentRecovery is not mapped
[select er.icomsSiteId from EquipmentRecovery er]
I understand that this is a classpath problem (Hibernate Tools can not find
configuration files = persistence.xml ;)
Anyway - I will remember it the next time I do rev on the docs to make it
explicit.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217586#4217586
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posti
well I guess you're right given that classpath refers to .class files
(bytecode) and not source .java files.
but it doesn't reference "persistence.xml" in that intro line, that should
probly be there...
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217560#4
I thought the first line that says "what configuration files, including which
classpath are needed to load the POJO's, JDBC drivers etc." says it pretty
clear ?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217553#4217553
Reply to the post :
http://www.j
BTW, I'm really liking the auto-complete (intelli-sense?) feature in the HQL
editor.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217534#4217534
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217534
_
This doc needs to be updated to point out in bold or as a note that your
project must be built (i.e. explode/deploy) so that the persistence.xml and
.class files for the entity classes are available in the classpath.
http://docs.jboss.org/tools/3.0.0.CR2/en/hibernatetools/html_single/index.html#
"max.ander...@jboss.com" wrote : My guess is more that when you did ant deploy
the META-INF/persistence.xml showed up in the right place.
well I just tested your hypothesis and you are correct. It works with explode
or deploy as long as persistence.xml is located here:
BETS\exploded-archives\B
My guess is more that when you did ant deploy the META-INF/persistence.xml
showed up in the right place.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217222#4217222
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=42172
YES it works. I had to do an 'ant deploy' so the packaged jar files would be
copied to the dist folder. It doesn't work with exploded jar files, that was
the problem!
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217218#4217218
Reply to the post :
http:/
I'm still getting the "QuerySyntaxException: ApplicationRole is not mapped"
error.
I just compared the booking project with mine to see if there are any notable
differences in terms of impacting the classpath. I noticed that in the Java
build path properties, the default output folder is:
boo
"max.ander...@jboss.com" wrote : "asookazian" wrote : what does this mean?
|
| That eclipse called some action on an ui where the widget were already
disposed.
|
| What did you do to get that error ?
Sorry, don't have a clue. If it happens again, I'll update the thread. As a
guess,
"max.ander...@jboss.com" wrote : if you are using hsql in-memory then only one
process can access the database at one time.
|
| you should at least use a hsql server if you want concurrent access.
Ok, I *finally* ran two HQL queries in the HQL editor successfully for the
booking project usi
"asookazian" wrote : what does this mean?
That eclipse called some action on an ui where the widget were already disposed.
What did you do to get that error ?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217196#4217196
Reply to the post :
http://www.jbo
if you are using hsql in-memory then only one process can access the database
at one time.
you should at least use a hsql server if you want concurrent access.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217195#4217195
Reply to the post :
http://www.jbos
what does this mean?
| eclipse.buildId=M20090107-0800
| java.version=1.5.0_17
| java.vendor=Sun Microsystems Inc.
| BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
| Command-line arguments: -os win32 -ws win32 -arch x86
|
|
| Error
| Wed Mar 11 13:51:46 PDT 2009
Ok, so I tried to open the locked file using TextPad and it failed due to the
lock. I closed JBDS and then I opened the file.
So now what?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217173#4217173
Reply to the post :
http://www.jboss.org/index.html?mod
I do see Booking, Hotel, and User under configuration and session factory. I
don't see anything under Database due to the error...
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217170#4217170
Reply to the post :
http://www.jboss.org/index.html?module=bb&op
Ok, so now these are the errors I'm getting with the booking project:
eclipse.buildId=M20090107-0800
| java.version=1.5.0_17
| java.vendor=Sun Microsystems Inc.
| BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
| Command-line arguments: -os win32 -ws win32 -arch x86
|
|
no matter what I add to the classpath as a folder that contains the entity
.class files for my project, it still doesn't work.
attempting to reproduce with booking example (which is similar to my project
structure).
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopi
Yes, and as said before - just make sure the classpath has the entities and
persistence.xml; hibernate console configuration/editor does not need anything
else.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217156#4217156
Reply to the post :
http://www.jb
"max.ander...@jboss.com" wrote : one folder EAR project ?
that means one high-level folder per project rather than 4 high level folders
(maxTest, maxTest-test, maxTest-ear, maxTest-ejb).
like I said before, when you run 'seam setup' and then 'seam create-project',
the project skeleton generated
one folder EAR project ?
Just make sure the classes are in the classpath and META-INF/persistence.xml is
there (otherwise JPA does not know which entities to load)
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217150#4217150
Reply to the post :
http://www.
So my .class files for the entity classes for my BETS project exist here:
\BETS\classes\model\com\cox\bets\entity
The default classpath doesn't work. I added \BETS\classes to the classpath and
\BETS\classes\model and that doesn't work either.
When I rebuild config and expand Configuration, not
"max.ander...@jboss.com" wrote : Ok - and did that then help ?
|
|
i'm looking into this now for my app (the workshop app HQL editor is working
now).
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217121#4217121
Reply to the post :
http://www.jboss.or
"vyemialyanchyk" wrote : asookazian, which is type of your Hibernate CC? it
seems "Core".
| open Edit Configuration dialog and change it to "JPA" - this should help.
|
| also I saw your persistence.xml doesn't contains "Managed Classes" - this
is not a reason of HCC exception - just little
Ok - and did that then help ?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217118#4217118
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217118
___
jboss-user mailing list
"max.ander...@jboss.com" wrote : Is the project build so the classes are
actually available on the classpath ?
the project was not built. the build auto was not checked in project menu.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217117#4217117
Reply to
asookazian, which is type of your Hibernate CC? it seems "Core".
open Edit Configuration dialog and change it to "JPA" - this should help.
also I saw your persistence.xml doesn't contains "Managed Classes" - this is
not a reason of HCC exception - just little hint.
View the original post :
http
Looks like it does not pickup the entities.
Is the project build so the classes are actually available on the classpath ?
Have you tried rebuilding the console configuration ?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217020#4217020
Reply to the post :
hibernate-console.properties:
| #File used by hibernate tools to override and other container
specific settings in persistence.xml
| hibernate.connection.password=JavaTestAcct
| hibernate.connection.username=_AppUser_JavaTestAcct
|
hibernate.connection.driver_class=com.microsoft.sqlserv
Here's the entire Equipment class:
package com.cox.bets.entity;
| // Generated Oct 31, 2008 8:53:40 AM by Hibernate Tools 3.2.0.CR1
|
| import java.util.Date;
| import java.util.HashSet;
| import java.util.Set;
|
| import javax.persistence.CascadeType;
| import javax.persistence.
"max.ander...@jboss.com" wrote : what happens if you just type "from Equipment"
?
|
| the error you get is the hql parser in hibernate seeing something it
doesn't understand...
I get the following error. Is the HQL editor and Hibernate configuration
compatiable with JPA? I'm assuming it
what happens if you just type "from Equipment" ?
the error you get is the hql parser in hibernate seeing something it doesn't
understand...
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216843#4216843
Reply to the post :
http://www.jboss.org/index.html?mod
"max.ander...@jboss.com" wrote : if you put BEST\resources in your classpath
the persistence.xml should be located in BEST\resources\META-INF\persistence.xml
|
| Note: in 3.1 we will add in support for random located persistence units to
avoid all this fuzzyness ;)
great! this worked. now
if you put BEST\resources in your classpath the persistence.xml should be
located in BEST\resources\META-INF\persistence.xml
Note: in 3.1 we will add in support for random located persistence units to
avoid all this fuzzyness ;)
View the original post :
http://www.jboss.org/index.html?module=b
"max.ander...@jboss.com" wrote : there has to be a META-INF/persistence.xml on
the classpath.
|
| adding resources\meta-inf doesn't make that happen.
|
| should just be resources and in resources should be a persistence.xml
I moved persistence.xml from resources\meta-inf to resources an
there has to be a META-INF/persistence.xml on the classpath.
adding resources\meta-inf doesn't make that happen.
should just be resources and in resources should be a persistence.xml
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216749#4216749
Reply to the
ok, i just added the BETS\resources\meta-inf folder to the classpath in the
classpath tab of the edit configuration popup window.
still doesn't work!
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216744#4216744
Reply to the post :
http://www.jboss.org/inde
So I commented the other two persistence units and left boBETS. and it still
doesn't work.
I get "Persistence unit not found: 'null'" or "Persistence unit not found:
'boBETS'"
What a total disaster. Switch to Microsoft to avoid these stupid small
problems that take days to resolve!
View the
Here:
http://docs.jboss.org/tools/3.0.0.CR2/en/hibernatetools/html/plugins.html#console_conf
It states the following for Persistence unit in the main tab:
"No default value (lets Hibernate Entity Manager find the persistence unit)"
So what happens if there is more than one persistence unit in t
I have determined the following:
1) JBDS 2.0.0.CR2 is bundled with Tools 3.0.0.CR2
2) the below link does not cover the JPA version (only Hibernate).
Documentation is thus incomplete.
http://docs.jboss.org/tools/3.0.0.CR2/en/hibernatetools/html/plugins.html#console_conf
Please specify how to
Ok. Some of my mistakes with weak responses/tips from the Tools/IDE
component(s).
I right-clicked my project name in the Hibernate Configurations view and
selected edit config. What do I need to select for persistence unit? why
isn't that a drop-down?? I entered 'boBETS' which is in
BETS\r
I upgraded (i.e. installed) JBDS 2.0CR2 and reproduced the error:
severity: error
|
| msg: org.hibernate.console.HibernateConsoleRuntimeException: Persistence
unit not found: 'null'.
|
| exception stack trace:
org.hibernate.console.HibernateConsoleRuntimeException: Persistence unit no
here is my .classpath file contents:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
So after I copied the persistence.xml from exploded to the correct directory:
org.hibernate.console.HibernateConsoleRuntimeException: Could not load JPA
Configuration
| Could not load JPA Configuration
| org.hibernate.console.HibernateConsoleRuntimeException: Could not create
JPA based Con
I'm using JBDS 1.1.0.GA and experiencing the same problem.
My persistence.xml is located here:
C:\java\projects\BETS\exploded-archives\BETS.jar\META-INF
There are the following persistence-*.xml files here:
C:\java\projects\BETS\resources\META-INF\persistence-dev.xml
C:\java\projects\BETS\reso
just weird that the exclusion is there - we don't add it afaik (our tests would
fail if we did) hence trying to understand how it got there...
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215163#4215163
Reply to the post :
http://www.jboss.org/index.html?m
It was created using Eclipse 3.4.1/Seam 2.1.1 CR2/JBT 3.0.0 CR1, selecting the
New/Seam Web project option and building as an EAR.
That generated the four standard projects which worked fine. I then added some
jBPM artefacts following the instructions in Chapter 14 of the "Seam In Action"
book,
yeah that exclusion looks really really weird.
How was this project created exactly ?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215145#4215145
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4215145
Argh..
classpathentry excluding="META-INF/|META-INF/" kind="src"
path="ejbModule"/
I'll create a JIRA ticket.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215140#4215140
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&m
.classpath entry;
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215138#4215138
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4215138
___
jboss-user mailing list
jb
The xml snippet got quoted out - what was in it ?
With respect to errors, yeah - we could make it better. Could you report it in
jira so we don't forget ?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215137#4215137
Reply to the post :
http://www.jboss.org
Thank you very much. That was the problem, but in a more indirect way.
The .classpath file in the xxx-ejb project had an entry of;
when I removed the excluding attribute and reopened the Hibernate
Configurations view, it worked fine.
I wonder how the excluding attribute got added thou
the problem is that the console config can't find a META-INF/persistence.xml in
the classpath.
Look for that and check it is in the classpath.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215031#4215031
Reply to the post :
http://www.jboss.org/index.htm
Thanks for the reply Max. Unfortunately your suggestion does not work. I havent
not yet tried the ant suggestion.
Some more background on this; the project was originally created with JBT 3.0.0
CR1/Eclipse 3.4.1 and was imported as a project into the current environment.
A seam-gen project tha
hmm - should just work.
Project > Clean
and Refresh the console config
if that does not help run ant test (that should no longer be a requirement, but
it was in earlier versions)
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214963#4214963
Reply to the p
64 matches
Mail list logo