[jboss-user] [Beginner's Corner] - determining version of servlet in Jboss

2009-09-29 Thread asookazian
I am downloading JBOss 3.2.7 to see if I can get a JSF 1.2 app running in it.  
How do I determine which servlet spec (jar) a particular version of JBoss AS is 
using?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4257731#4257731

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4257731
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginner's Corner] - Re: determining version of servlet in Jboss

2009-09-29 Thread asookazian
apparently the manifest.mf in servlet-api.jar has it

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4257734#4257734

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4257734
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: TxConnectionManager and enabling trace level logging

2009-08-14 Thread asookazian
JBoss 4.2.3.GA

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4249599#4249599

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4249599
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - TxConnectionManager and enabling trace level logging

2009-08-13 Thread asookazian
I am trying to debug and understand how the TxConnectionManager enlists XA 
resources for a 2PC/XA tx.

I would like to know how to get the trace variable to be true below:

  | public boolean enlist()
  |  {
  | if (trace)
  |log.trace(Enlisting resource  + 
TxConnectionEventListener.this);
  | try
  | {
  |XAResource resource = getXAResource();
  |if (false == currentTx.enlistResource(resource))
  |   enlistError = FAILED_TO_ENLIST;
  | }
  | catch (Throwable t)
  | {
  |enlistError = t;
  | }
  | 
  | synchronized (this)
  | {
  |if (enlistError != null)
  |{
  |   if (trace)
  |  log.trace(Failed to enlist resource  + 
TxConnectionEventListener.this, enlistError);
  |   setTrackByTx(false);
  |   transactionSynchronization = null;
  |   return false;
  |}
  |
  |if (trace)
  |   log.trace(Enlisted resource  + 
TxConnectionEventListener.this);
  |enlisted = true;
  |return true;
  | }
  |  }

The log is set in an ancestor class - ServiceMBeanSupport in the constructor:

   public ServiceMBeanSupport()
  |{
  |   // can not call this(Class) because we need to call getClass()
  |   this.log = Logger.getLogger(getClass().getName());
  |   log.trace(Constructing);
  |}

And the trace variable is set in another ancestor class - 
BaseConnectionManager2:

   public BaseConnectionManager2()
  |{
  |   super();
  |   trace = log.isTraceEnabled();
  |}

But I tried several things in the jboss-log4j.xml file and it doesn't work 
(i.e. I don't see the trace level logging).

I tried:

root
  |   priority value=TRACE /
  |   appender-ref ref=CONSOLE/
  |   appender-ref ref=FILE/
  |   appender-ref ref=SMTP/
  |/root

and this:

!-- Limit JBoss categories --
  |category name=org.jboss.system
  |   priority value=TRACE/
  |/category

and even this:

  | !-- Limit JBoss categories --
  |category name=org.jboss
  |   priority value=TRACE/
  |/category

How can I achieve this?  thx.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4249542#4249542

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4249542
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - bug in creating a new JBoss tools project (JBoss Tools folde

2009-08-05 Thread asookazian
JBDS 2.0.0.GA

following this:

http://docs.jboss.org/tools/whatsnew/examples/examples-news-1.0.0.GA-full.html

I reproduced this.  I try to create a new project by right-clicking in Package 
Explorer, select new -- other, and there is no JBoss Tools folder.  Then I go 
to Help -- about JBDS and click the JBoss Tools icon, select Project Examples, 
click plug-in details, then close/ok.

Then I am able to see the JBoss Tools folder when I try to create a new 
project.  Very strange bug/behavior and I reproduced it by closing/opening a 
different/new workspace in JBDS.

Also, where does the code copied here: C:\Documents and 
Settings\asookazi\RESTEasy\simple come frome?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4248198#4248198

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4248198
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - using m2eclipse plugin to build RESTEasy simple project

2009-08-05 Thread asookazian
So how do I build this project now?  I see the pom.xml but when I go to the 
views window from the Seam perspective, I only see one option (Maven Indexes) 
in the Maven folder.

I installed 0.9.9.200907201117 of Maven Integration for Eclipse (featureId = 
org.maven.ide.eclipse.feature)

Basically everything except the optional stuff from here:

http://m2eclipse.sonatype.org/update-dev/

Did I miss something?

I usually use ant for building my Seam projects so I'm not familiar with Maven 
in JBDS.  thx.

oh, just saw this.  I opened the pom.xml and right-clicked on it and saw some 
build options.  I'll try that.  I'm used to seeing a view/tab for Ant...

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4248203#4248203

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4248203
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: using m2eclipse plugin to build RESTEasy simple project

2009-08-05 Thread asookazian
so I ran 'mvn install' and got this:

  | [INFO] Build Order:
  | [INFO] 
  | [INFO] 
  | [INFO] 
  | [INFO] Building 
  | [INFO] Executing maven-resources-plugin[2.2]: resources on simple
  | [INFO] Using default encoding to copy filtered resources.
  | [INFO] Executing maven-compiler-plugin[2.0.2]: compile on simple
  | [INFO] Nothing to compile - all classes are up to date
  | [INFO] Executing maven-resources-plugin[2.2]: testResources on simple
  | [INFO] Using default encoding to copy filtered resources.
  | [INFO] Executing maven-compiler-plugin[2.0.2]: testCompile on simple
  | [INFO] Compiling 1 source file to C:\Documents and 
Settings\asookazi\RESTEasy\simple\target\test-classes
  | [INFO] Executing maven-surefire-plugin[2.4.3]: test on simple
  | [INFO] Tests are skipped.
  | [INFO] Executing maven-war-plugin[2.1-alpha-1]: war on simple
  | [INFO] Packaging webapp
  | [INFO] Assembling webapp[simple] in [C:\Documents and 
Settings\asookazi\RESTEasy\simple\WebContent]
  | [INFO] Processing war project
  | [INFO] Webapp assembled in[297 msecs]
  | [INFO] Building war: C:\Documents and 
Settings\asookazi\RESTEasy\simple\target\simple.war
  | [INFO] Executing maven-jetty-plugin[6.1.10]: run on simple
  | [INFO] Configuring Jetty for project: 
  | null
  | org.apache.maven.plugin.MojoExecutionException: Webapp source directory 
C:\Documents and Settings\asookazi\RESTEasy\simple\src\main\webapp does not 
exist
  | at 
org.mortbay.jetty.plugin.AbstractJettyRunMojo.checkPomConfiguration(AbstractJettyRunMojo.java:218)
  | at 
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:306)
  | at 
org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:203)
  | at 
org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
  | at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:323)
  | at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:196)
  | at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:189)
  | at 
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:467)
  | at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:169)
  | at org.apache.maven.cli.MavenCli.main(MavenCli.java:61)
  | 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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
  | at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
  | at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408)
  | at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
  | at org.codehaus.classworlds.Launcher.main(Launcher.java:31)

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4248206#4248206

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4248206
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: bug in creating a new JBoss tools project (JBoss Tools f

2009-08-05 Thread asookazian
URL: 
http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/resteasy-examples/resteasySimple.zip

I answered one of my questions...

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4248208#4248208

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4248208
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - testseamportlet: no build.xml or pom.xml

2009-08-05 Thread asookazian
using JBDS 2.0.0.GA

there is no pom.xml or build.xml for this project:

http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/portlet-examples/testseamportlet.zip

is this correct?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4248211#4248211

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4248211
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - JMX perspective

2009-08-05 Thread asookazian
JBDS 2.0.0.GA

http://docs.jboss.org/tools/whatsnew/jmx/jmx-news-1.0.0.GA-full.html

In the MBean explorer I create a new JMX server but it can't connect (there is 
no JBoss AS running).

How does this work?

I can't even edit the properties of an existing connection, I must delete and 
add a new one.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4248214#4248214

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4248214
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: bug in creating a new JBoss tools project (JBoss Tools f

2009-08-05 Thread asookazian
https://jira.jboss.org/jira/browse/JBIDE-4719

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4248267#4248267

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4248267
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Cannot compute classpath in Hibernate console

2009-07-27 Thread asookazian
Error
  | Mon Jul 27 11:06:09 PDT 2009
  | org.eclipse.core.runtime.CoreException: The archive: 
/ERS/exploded-archives/ERS.jar which is referenced by the classpath, does not 
exist.
  | 
  | org.eclipse.core.runtime.CoreException: The archive: 
/ERS/exploded-archives/ERS.jar which is referenced by the classpath, does not 
exist.
  | at org.eclipse.jdt.launching.JavaRuntime.abort(JavaRuntime.java:1327)
  | at org.eclipse.jdt.launching.JavaRuntime.abort(JavaRuntime.java:1313)
  | at 
org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspathEntry(JavaRuntime.java:901)
  | at 
org.eclipse.jdt.launching.StandardClasspathProvider.resolveClasspath(StandardClasspathProvider.java:75)
  | at 
org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspath(JavaRuntime.java:1187)
  | at 
org.hibernate.eclipse.console.utils.ClassLoaderHelper.getClasspath(ClassLoaderHelper.java:148)
  | at 
org.hibernate.eclipse.console.EclipseLaunchConsoleConfigurationPreferences.getCustomClassPathURLS(EclipseLaunchConsoleConfigurationPreferences.java:88)
  | at 
org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:177)
  | at 
org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:111)
  | at 
org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:40)
  | at 
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:99)
  | at 
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:105)
  | at 
org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:234)
  | at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
  | 
  | 

org.hibernate.console.HibernateConsoleRuntimeException: Could not compute 
classpath
  | at 
org.hibernate.eclipse.console.EclipseLaunchConsoleConfigurationPreferences.getCustomClassPathURLS(EclipseLaunchConsoleConfigurationPreferences.java:97)
  | at 
org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:177)
  | at 
org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:111)
  | at 
org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:40)
  | at 
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:99)
  | at 
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:105)
  | at 
org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:234)
  | at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
  | Caused by: org.eclipse.core.runtime.CoreException: The archive: 
/ERS/exploded-archives/ERS.jar which is referenced by the classpath, does not 
exist.
  | at org.eclipse.jdt.launching.JavaRuntime.abort(JavaRuntime.java:1327)
  | at org.eclipse.jdt.launching.JavaRuntime.abort(JavaRuntime.java:1313)
  | at 
org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspathEntry(JavaRuntime.java:901)
  | at 
org.eclipse.jdt.launching.StandardClasspathProvider.resolveClasspath(StandardClasspathProvider.java:75)
  | at 
org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspath(JavaRuntime.java:1187)
  | at 
org.hibernate.eclipse.console.utils.ClassLoaderHelper.getClasspath(ClassLoaderHelper.java:148)
  | at 
org.hibernate.eclipse.console.EclipseLaunchConsoleConfigurationPreferences.getCustomClassPathURLS(EclipseLaunchConsoleConfigurationPreferences.java:88)
  | ... 7 more

I have run 'ant clean unexplode explode' and searched for 'ers.jar' and the 
only reference is commented in application.xml (which apparently is not even 
part of the exploded WAR).

My project is packaged as a WAR so I can use hot incremental deployment with 
POJOs in my Seam app.

hibernate-console.properties:

  | #File used by hibernate tools to override datasource and other container 
specific settings in persistence.xml
  | hibernate.connection.password=JavaTestAcct
  | hibernate.connection.username=_AppUser_JavaTestAcct
  | 
hibernate.connection.driver_class=com.microsoft.sqlserver.jdbc.SQLServerDriver
  | hibernate.dialect=org.hibernate.dialect.SQLServerDialect
  | 
hibernate.connection.url=jdbc:sqlserver://CORG0DB901:1433;databaseName=EquipmentRecovery
  | 
  | 
hibernate.connection.provider_class=org.hibernate.connection.DriverManagerConnectionProvider
  | hibernate.datasource=
  | hibernate.transaction.manager_lookup_class=

org.eclipse.core.runtime.CoreException: The archive: 
/ERS/exploded-archives/ERS.jar which is referenced by the classpath, does not 
exist.

I'm trying to understand how/where it's referenced... ???  I looked in the 
Eclipse Java build path and can't see it.

View the original post : 

[jboss-user] [JBoss Tools (users)] - Re: Cannot compute classpath in Hibernate console

2009-07-27 Thread asookazian
I found the reference in the classpath tab of Console configuration popup 
window

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4246270#4246270

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246270
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Cannot compute classpath in Hibernate console

2009-07-27 Thread asookazian
So here is what my project directory structure looks like:

C:\java\projects\ERS\exploded-archives\com\cox\ers\session

C:\java\projects\ERS\exploded-archives\ERS.war

When I added ERS.war to the Hibernate Console's classpath, I get the could not 
compute classpath error again.

Error
  | Mon Jul 27 11:19:33 PDT 2009
  | org.hibernate.console.HibernateConsoleRuntimeException: Could not compute 
classpath
  | 
  | org.hibernate.console.HibernateConsoleRuntimeException: Could not compute 
classpath
  | at 
org.hibernate.eclipse.console.EclipseLaunchConsoleConfigurationPreferences.getCustomClassPathURLS(EclipseLaunchConsoleConfigurationPreferences.java:97)
  | at 
org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:177)
  | at 
org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:111)
  | at 
org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:40)
  | at 
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:99)
  | at 
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:105)
  | at 
org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:234)
  | at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
  | Caused by: org.eclipse.core.runtime.CoreException: The archive: 
/ERS/exploded-archives/ERS.war which is referenced by the classpath, does not 
exist.
  | at org.eclipse.jdt.launching.JavaRuntime.abort(JavaRuntime.java:1327)
  | at org.eclipse.jdt.launching.JavaRuntime.abort(JavaRuntime.java:1313)
  | at 
org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspathEntry(JavaRuntime.java:901)
  | at 
org.eclipse.jdt.launching.StandardClasspathProvider.resolveClasspath(StandardClasspathProvider.java:75)
  | at 
org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspath(JavaRuntime.java:1187)
  | at 
org.hibernate.eclipse.console.utils.ClassLoaderHelper.getClasspath(ClassLoaderHelper.java:148)
  | at 
org.hibernate.eclipse.console.EclipseLaunchConsoleConfigurationPreferences.getCustomClassPathURLS(EclipseLaunchConsoleConfigurationPreferences.java:88)
  | ... 7 more
  | 
  | 

Must it be a packaged (not exploded) WAR?

Here is a screenshot of my edit config window (classpath tab):

http://i145.photobucket.com/albums/r234/rabiesjoy/java/Hibernateconsoleconfig.jpg

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4246272#4246272

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246272
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Cannot compute classpath in Hibernate console

2009-07-27 Thread asookazian
I removed the WAR from the classpath and replaced it with:

C:\java\projects\ERS\src\model\com\cox\ers\entity

and now I can see my tables under the database tree in Hibernate config 
view/tab.

But when I try to run a simple HQL editor query I get:

Error
  | Mon Jul 27 11:26:58 PDT 2009
  | org.hibernate.hql.ast.QuerySyntaxException: ApplicationSite is not mapped 
[from ApplicationSite]
  | 
  | org.hibernate.hql.ast.QuerySyntaxException: ApplicationSite is not mapped 
[from ApplicationSite]
  | at 
org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:158)
  | at 
org.hibernate.hql.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:87)
  | at 
org.hibernate.hql.ast.tree.FromClause.addFromElement(FromClause.java:70)
  | at 
org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:255)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3056)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:2945)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:688)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:544)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:229)
  | at 
org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:228)
  | at 
org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160)
  | at 
org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
  | at org.hibernate.engine.query.HQLQueryPlan.init(HQLQueryPlan.java:77)
  | at org.hibernate.engine.query.HQLQueryPlan.init(HQLQueryPlan.java:56)
  | at 
org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)
  | at 
org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
  | at 
org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
  | at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)
  | at org.hibernate.console.HQLQueryPage.setSession(HQLQueryPage.java:106)
  | at 
org.hibernate.console.ConsoleConfiguration$4.execute(ConsoleConfiguration.java:426)
  | at 
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64)
  | at 
org.hibernate.console.ConsoleConfiguration.executeHQLQuery(ConsoleConfiguration.java:421)
  | at 
org.hibernate.eclipse.hqleditor.HQLEditor.executeQuery(HQLEditor.java:416)
  | at 
org.hibernate.eclipse.console.actions.ExecuteQueryAction.execute(ExecuteQueryAction.java:73)
  | at 
org.hibernate.eclipse.console.actions.ExecuteQueryAction.run(ExecuteQueryAction.java:53)
  | at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
  | at 
org.hibernate.eclipse.console.actions.ExecuteQueryAction.runWithEvent(ExecuteQueryAction.java:57)
  | at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
  | at 
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
  | at 
org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
  | at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  | at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
  | at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
  | at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
  | at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
  | at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
  | at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
  | at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
  | at 
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
  | at 
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
  | at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
  | at 
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
  | at 
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
  | at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
  | at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
  | at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
  | at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 

[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-07-13 Thread asookazian
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 my 
.class files for my entity classes in the classpath).  I have tried the 'ant 
deploy' trick from earlier in this thread, I have tried using exploded-archives 
rather than bin for default output folder, I have tried adding both bin and 
exploded-archives (one at a time of course) to the classpath in User Entries 
for the hibernate configuration.  Nothing works.

I currently have just done 'ant deploy' so there are EAR, JAR, WAR files in my 
foo/dist folder.  I tried that as well in the classpath.

under User Entries (in edit launch config properties -- classpath tab) I have:

foo (default classpath)
resources -\foo\
foo.jar - \foo\exploded-archives\

What do I need to do to get Hibernate tools to see my entity classes???

yes, project -- build auto is checked.

Where is the Hibernate console edit configuration text file saved so I can post 
it to this thread?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4243348#4243348

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243348
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-07-13 Thread asookazian
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=bbop=viewtopicp=4243357#4243357

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243357
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-07-13 Thread asookazian
[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.eclipse.swt.SWT.error(SWT.java:3777)
at org.eclipse.swt.SWT.error(SWT.java:3695)
at org.eclipse.swt.SWT.error(SWT.java:3666)
at org.eclipse.swt.widgets.Display.error(Display.java:1180)
at org.eclipse.swt.widgets.Display.asyncExec(Display.java:648)
at 
org.eclipse.ui.internal.console.ConsoleDropDownAction.consolesRemoved(ConsoleDropDownAction.java:150)
at 
org.eclipse.ui.internal.console.ConsoleManager$ConsoleNotifier.run(ConsoleManager.java:154)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at 
org.eclipse.ui.internal.console.ConsoleManager$ConsoleNotifier.notify(ConsoleManager.java:174)
at 
org.eclipse.ui.internal.console.ConsoleManager.fireUpdate(ConsoleManager.java:262)
at 
org.eclipse.ui.internal.console.ConsoleManager.removeConsoles(ConsoleManager.java:244)
at org.eclipse.ui.console.ConsolePlugin.stop(ConsolePlugin.java:175)
at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl$3.run(BundleContextImpl.java:1050)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:1046)
at 
org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:457)
at 
org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:531)
at 
org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1104)
at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:655)
at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:312)
at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:257)
at 
org.eclipse.osgi.framework.internal.core.SystemBundle.suspend(SystemBundle.java:236)
at 
org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:678)
at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:576)
at org.eclipse.osgi.framework.internal.core.OSGi.close(OSGi.java:41)
at 
org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:424)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:200)
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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

[/CODE]

[CODE]An exception occurred during console notification[/CODE]

[CODE]org.eclipse.swt.SWTException: Device is disposed
at org.eclipse.swt.SWT.error(SWT.java:3777)
at org.eclipse.swt.SWT.error(SWT.java:3695)
at org.eclipse.swt.SWT.error(SWT.java:3666)
at org.eclipse.swt.widgets.Display.error(Display.java:1180)
at org.eclipse.swt.widgets.Display.asyncExec(Display.java:648)
at 
org.eclipse.ui.internal.console.ConsoleDropDownAction.consolesRemoved(ConsoleDropDownAction.java:150)
at 
org.eclipse.ui.internal.console.ConsoleManager$ConsoleNotifier.run(ConsoleManager.java:154)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at 
org.eclipse.ui.internal.console.ConsoleManager$ConsoleNotifier.notify(ConsoleManager.java:174)
at 
org.eclipse.ui.internal.console.ConsoleManager.fireUpdate(ConsoleManager.java:262)
at 
org.eclipse.ui.internal.console.ConsoleManager.removeConsoles(ConsoleManager.java:244)
at org.eclipse.ui.console.ConsolePlugin.stop(ConsolePlugin.java:175)
at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl$3.run(BundleContextImpl.java:1050)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:1046)
at 
org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:457)
at 
org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:531)
at 
org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1104)
at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:655)
at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:312)
at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:257)
at 
org.eclipse.osgi.framework.internal.core.SystemBundle.suspend(SystemBundle.java:236)
at 
org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:678)
at 

[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-07-13 Thread asookazian
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=bbop=viewtopicp=4243361#4243361

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243361
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-07-13 Thread asookazian
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=bbop=viewtopicp=4243362#4243362

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243362
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-07-13 Thread asookazian
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.jboss.org/index.html?module=bbop=viewtopicp=4243364#4243364

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243364
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-07-13 Thread asookazian
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.toggleHibernateOnProject(ProjectUtils.java:81)
  | at 
org.hibernate.eclipse.console.properties.HibernatePropertyPage.performOk(HibernatePropertyPage.java:268)
  | at 
org.eclipse.jface.preference.PreferenceDialog$13.run(PreferenceDialog.java:931)
  | at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
  | at org.eclipse.core.runtime.Platform.run(Platform.java:880)
  | at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
  | at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
  | at 
org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:911)
  | at 
org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:456)
  | at 
org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:233)
  | at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
  | at 
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
  | at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  | at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
  | at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
  | at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
  | at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
  | at org.eclipse.jface.window.Window.open(Window.java:801)
  | at 
org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:157)
  | at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
  | at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
  | at 
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
  | at 
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
  | at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  | at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
  | at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
  | at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
  | at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
  | at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
  | at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
  | at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
  | at 
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
  | at 
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
  | at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
  | at 
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
  | at 
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
  | at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
  | at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
  | at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
  | at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
  | 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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
  | at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
  | at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

not sure what is triggering these exceptions right now, something is obviously 
totally messed up...


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4243365#4243365

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243365
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-07-13 Thread asookazian
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 driver didn't report any primary key columns in ApplicationUserView. 
Asking rev.eng. strategy
  | 2009-07-13 10:58:34,691 WARN Worker-6 org.hibernate.cfg.reveng.JDBCReader - 
Rev.eng. strategy did not report any primary key columns for ApplicationUserView
  | 2009-07-13 10:58:34,691 WARN Worker-6 org.hibernate.cfg.reveng.JDBCReader - 
The JDBC driver didn't report any primary key columns in ListView. Asking 
rev.eng. strategy
  | 2009-07-13 10:58:34,691 WARN Worker-6 org.hibernate.cfg.reveng.JDBCReader - 
Rev.eng. strategy did not report any primary key columns for ListView
  | 2009-07-13 10:58:34,706 WARN Worker-6 org.hibernate.cfg.reveng.JDBCReader - 
The JDBC driver didn't report any primary key columns in UserView. Asking 
rev.eng. strategy
  | 2009-07-13 10:58:34,706 WARN Worker-6 org.hibernate.cfg.reveng.JDBCReader - 
Rev.eng. strategy did not report any primary key columns for UserView
  | 2009-07-13 11:02:19,218 WARN Worker-9 org.hibernate.cfg.reveng.JDBCReader - 
The JDBC driver didn't report any primary key columns in ApplicationUserView. 
Asking rev.eng. strategy
  | 2009-07-13 11:02:19,218 WARN Worker-9 org.hibernate.cfg.reveng.JDBCReader - 
Rev.eng. strategy did not report any primary key columns for ApplicationUserView
  | 2009-07-13 11:02:19,234 WARN Worker-9 org.hibernate.cfg.reveng.JDBCReader - 
The JDBC driver didn't report any primary key columns in ListView. Asking 
rev.eng. strategy
  | 2009-07-13 11:02:19,234 WARN Worker-9 org.hibernate.cfg.reveng.JDBCReader - 
Rev.eng. strategy did not report any primary key columns for ListView
  | 2009-07-13 11:02:19,234 WARN Worker-9 org.hibernate.cfg.reveng.JDBCReader - 
The JDBC driver didn't report any primary key columns in UserView. Asking 
rev.eng. strategy
  | 2009-07-13 11:02:19,234 WARN Worker-9 org.hibernate.cfg.reveng.JDBCReader - 
Rev.eng. strategy did not report any primary key columns for UserView

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4243366#4243366

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243366
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - determining which version of JBoss Tools I have in JBDS

2009-07-13 Thread asookazian
I want to know which version of JBoss Tools (and other plugin versions) I'm 
using in JBDS 2.0.0.CR2.  What is the best way to do this either from the IDE 
itself or from a list/website?  thx.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4243370#4243370

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243370
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: SFSB timeout setting

2009-06-29 Thread asookazian
This is helpful regarding this problem:

http://www.jboss.org/community/wiki/JbossTimeoutSettingForSeam

It states that serializability problems may be the root cause of this exception 
as well.  But if that's true, wouldn't you get serializable/passivation 
exceptions in the server.log?  I've seen those before when I had a Map instance 
variable in my SFSB (and not marked transient).

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4240890#4240890

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4240890
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - build using 32-bit Sun 1.5 JDK in windows and deploy in 32-b

2009-06-15 Thread asookazian
Is there any potential problems associated with building/compiling my Java 
classes with Sun JDK 1.5 for my EE (Seam) app into an EAR and deploying on 
32-bit Windows OS JBoss AS dev box using 32-bit Windows JDK 1.5 runtime (JVM) 
and then deploying the same EAR into 32-bit RHEL OS JBoss AS (UAT/QA box)? 

The dev envmt is not clustered and the UAT RHEL envmt is a 2 node horizontal 
cluster without state replication (only mod_jk load balancing and failover).

Perhaps the entity (and other) classes that implement java.io.Serializable will 
have issues? 

Is it advisable to do another build for the RHEL envmt using Sun JDK 1.5 for 
Linux 32-bit platform or am I safe going this route?

thx.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4237692#4237692

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4237692
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - Re: build using 32-bit Sun 1.5 JDK in windows and deploy in

2009-06-15 Thread asookazian
Here is an example:

@Entity
  | @Table(name = ApplicationSite, schema = dbo, catalog = 
EquipmentRecovery)
  | public class ApplicationSite implements java.io.Serializable {
  | 
  | private static final long serialVersionUID = -8318603160581183431L;
  | ...
  | }

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4237693#4237693

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4237693
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - Re: build using 32-bit Sun 1.5 JDK in windows and deploy in

2009-06-15 Thread asookazian
ok thanks!

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4237708#4237708

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4237708
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - using XA (distributed) transactions with local DB and web se

2009-06-09 Thread asookazian
We have a use case to be implemented in my Seam 2.x app which requires an 
insert tx to a local DB and a client call to a remote web service for insert tx 
to another remote DB.

Using an SFSB or SLSB component in my Seam app, how would I be able to achieve 
XA/2PC in this scenario (if it's even possible?)  thx.

Assume CMT plz.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4236521#4236521

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4236521
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: using XA (distributed) transactions with local DB and we

2009-06-09 Thread asookazian
Should I simply catch SoapException and any RuntimeException and the EJB 
container will automatically rollback the global/distributed tx?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4236522#4236522

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4236522
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: possible bug when adding .js file to a folder

2009-05-03 Thread asookazian
unable to immediately reproduce with a new java project.  i copied the files 
into the sub-folder and refreshed.  no JS icons showing up like before.  all 
files are visible.  not sure exactly what is triggering it...

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4228053#4228053

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4228053
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - possible bug when adding .js file to a folder

2009-05-02 Thread asookazian
JBDS 

Version: 2.0.0.CR2
Build id: R200901291303
Build date: 01/29/2009 13:22

I added a .js file to a new folder in my view folder (i.e. view/testJQuery) for 
my Seam project.

After I added the file (copy from Window explorer) and then refreshed the view 
folder in JBDS, all the sub-folders inside the view folder now have an orange 
background with JS on them.  Now I can't see the files that I added but they 
do exist when I do a CTRL_SHFT_R to open the file.

This is very strange.  It got fixed when I closed and re-opened JBDS but I 
was able to reproduce it.

Is this a known Eclipse or JBoss Tools bug?  thx.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4227917#4227917

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4227917
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: possible bug when adding .js file to a folder

2009-05-02 Thread asookazian
max.ander...@jboss.com wrote : Might be the Javascript support in plain WTP ?
  | 
  | Does it happen without JBoss Tools installed too ?

I'd rather not experiment by removing JBoss Tools from my JBDS.  I will only 
take drastic measures if this becomes a consistent problem.

By the way, this code is a POC anyways, so I can delete it for now. :)  thanks 
for responding guys!

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4228042#4228042

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4228042
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: possible bug when adding .js file to a folder

2009-05-02 Thread asookazian
max.ander...@jboss.com wrote : Didn't want you to remove it from JBDS just 
wondering if you tried with plain WTP ;)
  | 
  | But it does look like some feature (or bug) coming from WTP .js support.

this is most definitely a bug somewhere b/c the file exists in the JS-marked 
folder but I can't see it in project explorer view.

I just re-opened JBDS and now I can see it.  Seems to happen when I add a .js 
or .xhtml file to a folder in my view folder.

Now the sub-folders in the view folder are not marked with JS...

gotta love the bugs!

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4228048#4228048

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4228048
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: possible bug when adding .js file to a folder

2009-05-02 Thread asookazian
http://i145.photobucket.com/albums/r234/rabiesjoy/java/js-folder-problem-jbds.jpg

plz read the description as well for more info.  thx.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4227922#4227922

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4227922
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Hibernate...help..!!!!

2009-04-28 Thread asookazian
steve.ebers...@jboss.com wrote : The are problems with the HIbernate site and 
it is temporarily down.
  | 
  | The downloads are still accessible from SourceForge where they have always 
been : 
http://sourceforge.net/project/showfiles.php?group_id=40712package_id=127784

There is no specific reason.  There is no ball park estimate on 
completion/availability.

This is at least 1 full week non-stop.  Very unprofessional.  Have you ever 
heard of such a thing happening to another J2EE vendor?  I have contacted 
Redhat customer service for an update.

No wonder the adoption rate for JBoss Seam is abysmally low...

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4227340#4227340

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4227340
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: join table class in hibernate

2009-04-28 Thread asookazian
Hibernate supports polymorphic queries.  So you can write an interface and have 
the two entity classes implement that interface.

When you query the interface with no restrictions/criteria in where clause, for 
example, you'll get all records from both tables.

read more in Ch. 5 of JPA/Hibernate book.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4227345#4227345

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4227345
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: JBOSS reverse engineering not working

2009-04-28 Thread asookazian
JBDS includes Hibernate tools.  You are using hbm2java with HibernateToolTask 
to reverse engineer your db schema to entity classes and config/xml files.

There should be a log that display the actions/errors.

Try running the hbm2java directly from cmd line so you can see the errors.

Other option is to create an Ant script that will do the same thing (use 
hbm2java to revengr your tables).

Section 2.3 of JPA/Hibernate book covers this as well.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4227348#4227348

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4227348
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Entity relationship diagram (ERD) tool available?

2009-04-16 Thread asookazian
I have JBDS 2.0.0 and can't seem to locate a ERD tool.  I setup the db source 
explorer but not sure if it can do this.

does Hibernate tools or JBoss tools support this and if so, how can I create 
the diagram?  thx.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4226051#4226051

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4226051
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: EJB3 hot deployment

2009-04-09 Thread asookazian
jaikiran wrote : https://jira.jboss.org/jira/browse/EJBTHREE-1096

created Oct 07 and still unassigned.  Obviously not a priority (not mandated by 
EJB3 spec).  I posted and voted on this JIRA.

I emailed the JSR318 group regarding this.  This needs to be part of a future 
EJB spec (i.e. required for JEE middleware implementations).

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4224765#4224765

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4224765
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - EJB3 hot deployment

2009-04-08 Thread asookazian
Quoting PMuir from the Seam/WebBeans team:

anonymous wrote : the correct way to do this is to maintain a dependency graph, 
so that when you reload one EJB, you can reload all it dependencies, however 
you could easily end up with all ejbs being reloaded. Seam gets around this by 
making the user do this dependency management, and place only classes they are 
working on in hot-deploy. I believe JBoss MC can do this individual reloads of 
beans (as it controls the classloader completely). 

source: http://www.seamframework.org/Community/ProperHotDeploymentAProposal

There is great interest in realizing complete hot-deployable EJB3 components in 
the JEE community.

There is a product called JavaRebel which just released version 2.0 but it does 
not support EJB3 hot deployment (completely, meaning add methods or changing 
signatures/params in existing methods) and no Seam plug-in is available.

anonymous wrote : JavaRebel supports changing EJBs including adding methods, 
fields and so on to classes. However we don't support at the moment in most 
cases changing EJB Local/Remote interfaces, as this usually requires a 
container postprocessing step.

source: http://www.theserverside.com/news/thread.tss?thread_id=54088

When is this going to become a reality with JBoss AS and Seam/WebBeans 
applications??

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4224537#4224537

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4224537
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: JBDS opens selected .java file over current .java file

2009-03-31 Thread asookazian
nickboldt wrote : Window  Preferences  General  Editors
  | 
  | Uncheck the box for Close editors automatically.
  | 
  | You might also want to try installing Mylyn to manage related files in a 
task context (eg., to have all the files relevant to a bug or work item grouped 
such that when you enable/disable the task, files will be automatically 
reopened/closed. Mylyn also lets you filter your Project or Package Explorer so 
you only see the files you care about at the moment.

it's already unchecked.  so that's not the root cause.

I read about mylyn in java power tools i believe but i haven't had time to 
install yet.  it had IDE/mylyn/SVN integration which was pretty cool IIRC.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4222385#4222385

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4222385
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - breadcrumbs does not go away in Seam perspective

2009-03-25 Thread asookazian
I turned on breadcrumbs by doing this:

Navigate -- show breadcrumbs in JBDS with Seam perspective

I found this blog article that shows how to turn it off:

http://loadcontext.blogspot.com/2008/08/eclipse-34-breadcrumbs-hide-and-show.html

I followed the instructions by going to window -- customize perspective and 
checking Java Editor Presentation and then clicking on toggle breadcrumb and 
click ok.

The breadcrumbs is still there at the top of each file in my IDE.

How can I remove this feature?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4220976#4220976

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4220976
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: breadcrumbs does not go away in Seam perspective

2009-03-25 Thread asookazian
JBDS Version: 2.0.0.CR2

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4220979#4220979

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4220979
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: breadcrumbs does not go away in Seam perspective

2009-03-25 Thread asookazian
max.ander...@jboss.com wrote : 
  | btw. I use JBDS 2 GA

b/c you are superman :)

perhaps I will download 2 GA soon (and then install all my subclipse, etc. 
plugins)

You guys should devise a way so that when we upgrade from JBDS 2.0.0.CR2 to 
2.0.0.GA, it keeps all the plugins, etc.  so more like an upgrade rather than 
extract.

is this possible?  microsoft style?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4221039#4221039

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4221039
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - JBDS opens selected .java file over current .java file

2009-03-25 Thread asookazian
I use CTRL+SHFT+T to open a java class (foo.java).  I edit the file and save.  
I do CTRL+SHFT+T to open a different java class (bar.java).  bar.java is opened 
in the place of foo.java.  Now foo.java is not visible in my perspective.

why does this happen and how to fix?  I've seen this happen before and it seems 
to go away.  I'm using Seam perspective with JBDS 2.0.0.CR2.  thx.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4221130#4221130

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4221130
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: JBDS opens selected .java file over current .java file

2009-03-25 Thread asookazian
actually I lied.  this only happens when I double click a java src file from 
the search view and do it again.

CTRL-SHFT-T works fine.  how can I fix this, it's kinda annoying?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4221132#4221132

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4221132
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: transaction propagation

2009-03-23 Thread asookazian
semanticLance wrote : similar issue for me and same exception.  the 
difference for me is that i don't have a class-wide transaction attribute set.  
just one method calling another.  caller does not support transactions and the 
called method requires a new transaction.
  | 
  | my methods:
  | 
  | 
  |   | @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
  |   | public void persistInt(SimpleInt myInt) {
  |   | persistIntImplementation(getUser(), myInt);
  |   | }
  |   | 
  |   | 
  |   | @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
  |   | private void persistIntImplementation(User user, SimpleInt myInt) {
  |   | myInt.setValue(myInt.getValue() + 1);
  |   | em.persist(myInt);
  |   | }
  |   | 

this case is the same issue I posted and solved here:
[url]
http://www.seamframework.org/Community/EJB3AndSeamNonatomicTransactionsWithLoopScenario[/url]

bottom line: you can't use @TransactionAttribute annotation on private methods 
in a session bean.  It just ignores it unfortunately which is what took me so 
long to figure this limitation out until I read JSR220.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4220403#4220403

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4220403
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: transaction propagation

2009-03-23 Thread asookazian
here is a reply from Ken Saks, spec lead of JSR 318:
anonymous wrote : 
  | On Mar 23, 2009, at 4:26 PM, arbi.sookaz...@cox.com wrote:
  | 
  | 
  | Hello,
  | 
  | I would like to draw attention to this specific part of JSR 318, proposed 
final draft dated Feb 24, 2009, which is the same as in JSR 220, section 
13.3.7.1:
  | 
  | Specifying the TransactionAttribute annotation on the bean class means that 
it applies to all applicable business interface methods of the class.
  | 
  | 
  | 
  | In EJB 3.1 (or later), I'm wondering if it will be possible to demarcate 
transaction attribute value (e.g. REQUIRED, REQUIRES_NEW, etc.) on private, 
protected, or package-private in a SFSB or SLSB (i.e. any method with less than 
public visibility).  The current behavior in EJB 3.0 seems to be that the EJB 
container (in my case JBoss AS) ignores the transaction demarcation annotation 
on a private method and there is no warning from Eclipse, or exception/warning 
during deployment or runtime exception.  
  | 
  | I ran into this problem recently and it took me over *two days* to 
determine the root cause of the behavior in terms of transaction semantics and 
CMT in my SFSB.  My workaround to this problem was to refactor the private 
method to a public method defined in the local interface implemented by a new 
SFSB.  The REQUIRES_NEW transaction demarcation for the public method in the 
new SFSB is now honored by the ejb container.  
  | 
  | Why is it necessary to do this?  We should be able to demarcate non-local 
interface methods or non-remote interface methods with transaction demarcation 
when using CMT.
  | 
  | 
  | 
  | Hi Arbi,
  | 
  | 
  | The behavior you're seeing is not specific to transaction attributes.  All 
the special semantics associated with an EJB component invocation (method 
authorization, container exception handling, threading guarantees, 
container-managed transactions, etc.) only apply to invocations made through an 
EJB reference.  When code already running within a business method invocation 
calls another method on the same class through the this pointer, the EJB 
container isn't involved.  Such a method invocation is just a plain Java SE 
method call.  
  | 
  | 
  | If you want to invoke a business method on your bean from another business 
method on the same bean, you'll need to acquire an EJB reference to yourself.  
The easiest way is to call SessionContext.getBusinessObject().  
  | 
  | 
  | 
  | 
  | TestTransactionsLocal ejbRefToMyself =  
sessionCtx.getBusinessObject(TestTransactionsLocal.class)
  | ejbRefToMyself.otherMethod();
  | 
  | 
  | Regards,
  | 
  | 
  | Ken
  | 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4220437#4220437

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4220437
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - transaction propagation

2009-03-19 Thread asookazian
for the following SFSB:

@Stateful
  | @Name(testTransactionsAction)
  | @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
  | public class TestTransactionsAction implements TestTransactionsLocal 
  | {
  | 
  | @Logger 
  | private Log log;
  | 
  | @In
  | StringUtils stringUtils;
  | 
  | @PersistenceContext
  | private EntityManager entityManager;
  | 
  | private String serialNumbers;
  | 
  | private String serialNumber;
  | 
  | 
/*--BEGIN
 METHODS---*/
  | 
  | public void searchSerialNumbers()
  | {   
  | //parse serial numbers from HtmlInputTextarea control
  | ListString serialNumberList = parseSerialNumber();
  | 
  | if (serialNumberList != null  serialNumberList.size()  0)
  | {
  | for (String serialNumber : serialNumberList)  //persist 
records one serialNumber at a time...
  | {
  | this.persistA();
  | String[] sArray = new String[4];
  | //cause IndexOutOfBoundsException to see if the 
first insert will commit or not
  | String s = sArray[10];
  | this.persistB();
  | }
  | }   
  | }
  | 
  | @TransactionAttribute(TransactionAttributeType.REQUIRED)
  | public void persistA()
  | {
  | TestTransactions testTransactions = new TestTransactions();
  | testTransactions.setSerialNumber(serialNumber);
  | testTransactions.setAddedDate(new Date());
  | entityManager.persist(testTransactions);
  | //entityManager.flush();
  | }
  | 
  | @TransactionAttribute(TransactionAttributeType.REQUIRED)
  | public void persistB()
  | {
  | TestTransactions testTransactions = new TestTransactions();
  | testTransactions.setSerialNumber(serialNumber);
  | testTransactions.setAddedDate(new Date());
  | entityManager.persist(testTransactions);
  | //entityManager.flush();
  | }
  | 
  | @Remove @Destroy
  | public void destroy() {}
  | 
  | public String getSerialNumbers()
  | {
  | return serialNumbers;
  | }
  | 
  | public void setSerialNumbers(String serialNumbers)
  | {
  | this.serialNumbers = serialNumbers;
  | }
  | 
  | private ListString parseSerialNumber()
  | {
  | //parse serialNumber assuming that the regex to use is CR 
(carriage return), which will be scan gun post-fire append ENTER
  | ListString serialNumberList = 
stringUtils.splitAndTrimStringAsArray(serialNumbers, \\r);
  | 
  | //testing: delete this later...
  | if (serialNumberList != null)
  | {
  | for(String serialNumber : serialNumberList)
  | {
  | log.info(parseSerialNumber(): serialNumber = 
+serialNumber);
  | }   
  | }
  | return serialNumberList;
  | }
  | 
  | }
  | 

I'm getting this exception in persistA() method.  Why does this happen?  What 
are the rules for tx propagation in JBoss/EJB3?  I was expecting there to be a 
tx active in persistA() due to the REQUIRED tx type.  The goal here is to 
persist the record prior to the exception being thrown and thus not rollback 
any tx (which should not exist for the searchSerialNumbers() method as the tx 
type is marked NOT_SUPPORTED for the class which should default to auto 
commitmode, as per pg. 512 of Bauer/King book.  It doesn't matter if I use 
private or public visibility for the persistX() methods, same result.  No 
records are inserted to the db table either way.  thx.

Caused by: javax.persistence.TransactionRequiredException: EntityManager must 
be access within a transaction
  | at 
org.jboss.ejb3.entity.ManagedEntityManagerFactory.verifyInTx(ManagedEntityManagerFactory.java:156)
  | at 
org.jboss.ejb3.entity.TransactionScopedEntityManager.persist(TransactionScopedEntityManager.java:189)
  | at 
org.jboss.seam.persistence.EntityManagerProxy.persist(EntityManagerProxy.java:135)
  | at 
com.cox.bets.session.TestTransactionsAction.persistA(TestTransactionsAction.java:86)
  | at 
com.cox.bets.session.TestTransactionsAction.searchSerialNumbers(TestTransactionsAction.java:61)

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4219580#4219580

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4219580

[jboss-user] [EJB/JBoss] - Re: transaction propagation

2009-03-19 Thread asookazian
are the tx propagation rules different if foo() calls a method in the same 
class (e.g. SFSB) as compared to calling a method remotely in a different JVM?

is there a good resource for this info?  I looked at JSR220-core and there 
wasn't much there except in the case of distributed tx's (remote calls).

I'm concerned with merely one SFSB case and tx propagation (if any?) for the 
methods in that class only.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4219581#4219581

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4219581
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-03-12 Thread asookazian
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\BETS.jar\META-INF

and you just use the default classpath in the edit launch config properties 
classpath tab.

not sure what happened yesterday that it was missing or unable to locate...


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217530#4217530

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217530
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-03-12 Thread asookazian
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#console_conf

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217531#4217531

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217531
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-03-12 Thread asookazian
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=bbop=viewtopicp=4217534#4217534

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217534
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - no hql query editor selected

2009-03-12 Thread asookazian
I have successfully written the following HQL query in the HQL editor and 
executed to get results:

select er.equipmentRepairId, er.icomsworkOrderNumber, er.icomsworkOrderTechId 
from EquipmentRepair er, Equipment e
  | where er.equipment.equipmentId = e.equipmentId
  | and e.equipmentId = 1

Why does it say No HQL Query editor selected in the Hibernate Dynamic SQL 
Preview view/tab?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217544#4217544

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217544
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: no hql query editor selected

2009-03-12 Thread asookazian
using JBDS 2.0.0.CR2

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217545#4217545

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217545
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: no hql query editor selected

2009-03-12 Thread asookazian
well it's working now (after I put the focus in the hql editor and hit 
spacebar).  and I clicked on various tabs and other windows/apps.  not sure how 
the original behavior occurred...

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217554#4217554

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217554
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: no hql query editor selected

2009-03-12 Thread asookazian
This is the native query that was generated:


  | select
  |   equipmentr0_.EquipmentRepairID as col_0_0_,
  |   equipmentr0_.ICOMSWorkOrderNumber as col_1_0_,
  |   equipmentr0_.ICOMSWorkOrderTechID as col_2_0_ 
  |  from
  |   boBETS.dbo.EquipmentRepair equipmentr0_,
  |   boBETS.dbo.Equipment equipment1_ 
  |  where
  |   equipmentr0_.EquipmentID=equipment1_.EquipmentID 
  |   and equipment1_.EquipmentID=1
  | 

When I exec the following query in SQL mgmgt studio, I see the column names in 
the header of the result pane:

select
  |   equipmentr0_.EquipmentRepairID,
  |   equipmentr0_.ICOMSWorkOrderNumber,
  |   equipmentr0_.ICOMSWorkOrderTechID 
  |  from
  |   boBETS.dbo.EquipmentRepair equipmentr0_,
  |   boBETS.dbo.Equipment equipment1_ 
  |  where
  |   equipmentr0_.EquipmentID=equipment1_.EquipmentID 
  |   and equipment1_.EquipmentID=1

Is it possible to tweak it so that we see the actual column names in the header 
of the Hibernate Query result rather than 0, 1, 2?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217556#4217556

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217556
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: no hql query editor selected

2009-03-12 Thread asookazian
nevermind, this does it:

select er.equipmentRepairId as equipmentRepairId
  | from EquipmentRepair er, Equipment e
  | where er.equipment.equipmentId = e.equipmentId
  | and e.equipmentId = 1

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217557#4217557

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217557
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-03-12 Thread asookazian
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=bbop=viewtopicp=4217560#4217560

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217560
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Seam components view problem with JBDS 1.1.0.GA

2009-03-12 Thread asookazian
akazakov wrote : 
  | Seam-gen projects use ant sript to build/deploy EAR/EJB/WAR. So you can use 
any project structure. It's metter of ant file to handle it. But JBoss Tools 
depends on Eclipse Web Tools. And you have to have WTP-strucrtured projects to 
have whole set of features.
  | For EAR deployment type it creates 4 projects: EAR,EJB,WAR,Test. And there 
are two projects in case of WAR deployment: WAR,Test.

Plz elaborate on which features we'd miss out on in JBoss Tools if we don't 
start using WTP-structured projects.

BTW, the Seam Components view and HQL editor are now working for my BETS 
seam-gen'd project.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217580#4217580

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217580
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - multi-line comment in HQL editor?

2009-03-12 Thread asookazian
what are the rules for commenting HQL queries in the HQL editor view?

I tried /* foo */  and it doesn't change the color of the text like I'm used to 
with other tools, etc.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217641#4217641

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217641
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: multi-line comment in HQL editor?

2009-03-12 Thread asookazian
or what if I have two HQL queries in the same HQL editor view?  can I exec only 
one of them?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217646#4217646

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217646
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - visual HQL constructor tool?

2009-03-12 Thread asookazian
Does JBoss Tools 3.x have a tool that will allow you to do this:

see a view with all of your entity classes

select multiple entity classes in this diagram/view to form the basis of a HQL 
select statement

automatically create the HQL and dump it in the HQL editor (assuming Hibernate 
console is setup).

And you go from there.  For example, I have this native query I'm trying to 
reverse engineer to HQL.  It would be nice to have the above tool:

select er.equipmentRepairId, 
  | e.serialNumber, 
  | ddv.description, 
  | sum(erc.cost) as Cost 
  |  from Equipment as e 
  |  inner join EquipmentRepair as 
er on er.equipmentId = e.equipmentId 
  |  left outer join 
EquipmentRepairCost as erc on er.equipmentRepairId = erc.equipmentRepairId 
  |  left outer join DropDownValue 
as ddv on er.equipmentRepairTypeCode = ddv.code 
  |  left outer join DropDown as dd 
on dd.listId = ddv.listId  
  |  where e.serialNumber = 
:serialNumber and  
  |  dd.listName = 
:repairTypeDropDown 
  |  group by er.equipmentRepairId, 
  |  e.serialNumber, 
  |  ddv.description

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217661#4217661

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217661
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-03-11 Thread asookazian
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 is as the Hibernate Configuration is 
type = JPA in the main tab.  I'm using hibernate-console.properties for the 
property file (in the main tab as well).

Error
  | Wed Mar 11 08:13:04 PDT 2009
  | org.hibernate.hql.ast.QuerySyntaxException: Equipment is not mapped [from 
Equipment]
  | 
  | org.hibernate.hql.ast.QuerySyntaxException: Equipment is not mapped [from 
Equipment]
  | at 
org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:158)
  | at 
org.hibernate.hql.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:87)
  | at 
org.hibernate.hql.ast.tree.FromClause.addFromElement(FromClause.java:70)
  | at 
org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:255)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3056)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:2945)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:688)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:544)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:229)
  | at 
org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:228)
  | at 
org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160)
  | at 
org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
  | at org.hibernate.engine.query.HQLQueryPlan.init(HQLQueryPlan.java:77)
  | at org.hibernate.engine.query.HQLQueryPlan.init(HQLQueryPlan.java:56)
  | at 
org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)
  | at 
org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
  | at 
org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
  | at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)
  | at org.hibernate.console.HQLQueryPage.setSession(HQLQueryPage.java:106)
  | at 
org.hibernate.console.ConsoleConfiguration$4.execute(ConsoleConfiguration.java:426)
  | at 
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64)
  | at 
org.hibernate.console.ConsoleConfiguration.executeHQLQuery(ConsoleConfiguration.java:421)
  | at 
org.hibernate.eclipse.hqleditor.HQLEditor.executeQuery(HQLEditor.java:416)
  | at 
org.hibernate.eclipse.console.actions.ExecuteQueryAction.execute(ExecuteQueryAction.java:73)
  | at 
org.hibernate.eclipse.console.actions.ExecuteQueryAction.run(ExecuteQueryAction.java:53)
  | at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
  | at 
org.hibernate.eclipse.console.actions.ExecuteQueryAction.runWithEvent(ExecuteQueryAction.java:57)
  | at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
  | at 
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
  | at 
org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
  | at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  | at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
  | at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
  | at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
  | at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
  | at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
  | at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
  | at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
  | at 
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
  | at 
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
  | at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
  | at 
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
  | at 
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
  | at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
  | at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
  | at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
  | at 

[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-03-11 Thread asookazian
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.Column;
  | import javax.persistence.Entity;
  | import javax.persistence.FetchType;
  | import javax.persistence.GeneratedValue;
  | import javax.persistence.GenerationType;
  | import javax.persistence.Id;
  | import javax.persistence.JoinColumn;
  | import javax.persistence.ManyToOne;
  | import javax.persistence.OneToMany;
  | import javax.persistence.Table;
  | import javax.persistence.Temporal;
  | import javax.persistence.TemporalType;
  | import javax.persistence.UniqueConstraint;
  | 
  | import org.hibernate.validator.Length;
  | import org.hibernate.validator.NotNull;
  | 
  | /**
  |  * Equipment generated by hbm2java
  |  */
  | @Entity
  | @Table(name = Equipment, uniqueConstraints = 
@UniqueConstraint(columnNames = SerialNumber))
  | public class Equipment implements java.io.Serializable {
  | 
  | private int equipmentId;
  | private ApplicationUser applicationUserByUpdatedByUserId;
  | private ApplicationUser applicationUserByAddedByUserId;
  | private String serialNumber;
  | private String macaddress;
  | private Integer equipmentTypeListCode;
  | private Date equipmentServiceDate;
  | private Date addedDate;
  | private Date updatedDate;
  | private String modelNumber;
  | private SetEquipmentRepair equipmentRepairs = new 
HashSetEquipmentRepair(
  | 0);
  | 
  | public Equipment() {
  | }
  | 
  | public Equipment(int equipmentId,
  | ApplicationUser applicationUserByUpdatedByUserId,
  | ApplicationUser applicationUserByAddedByUserId,
  | String serialNumber, 
  | Date addedDate, 
  | Date updatedDate) {
  | this.equipmentId = equipmentId;
  | this.applicationUserByUpdatedByUserId = 
applicationUserByUpdatedByUserId;
  | this.applicationUserByAddedByUserId = 
applicationUserByAddedByUserId;
  | this.serialNumber = serialNumber;
  | this.addedDate = addedDate;
  | this.updatedDate = updatedDate;
  | }
  | public Equipment(int equipmentId,
  | ApplicationUser applicationUserByUpdatedByUserId,
  | ApplicationUser applicationUserByAddedByUserId,
  | String serialNumber, String macaddress,
  | Integer equipmentTypeListCode, Date 
equipmentServiceDate,
  | Date addedDate, Date updatedDate,
  | SetEquipmentRepair equipmentRepairs) {
  | this.equipmentId = equipmentId;
  | this.applicationUserByUpdatedByUserId = 
applicationUserByUpdatedByUserId;
  | this.applicationUserByAddedByUserId = 
applicationUserByAddedByUserId;
  | this.serialNumber = serialNumber;
  | this.macaddress = macaddress;
  | this.equipmentTypeListCode = equipmentTypeListCode;
  | this.equipmentServiceDate = equipmentServiceDate;
  | this.addedDate = addedDate;
  | this.updatedDate = updatedDate;
  | this.equipmentRepairs = equipmentRepairs;
  | }
  | 
  | @Id
  | @GeneratedValue(strategy=GenerationType.IDENTITY)
  | @Column(name = EquipmentID, unique = true, nullable = false)
  | @NotNull
  | public int getEquipmentId() {
  | return this.equipmentId;
  | }
  | 
  | public void setEquipmentId(int equipmentId) {
  | this.equipmentId = equipmentId;
  | }
  | @ManyToOne(fetch = FetchType.LAZY)
  | @JoinColumn(name = UpdatedByUserID, nullable = false)
  | @NotNull
  | public ApplicationUser getApplicationUserByUpdatedByUserId() {
  | return this.applicationUserByUpdatedByUserId;
  | }
  | 
  | public void setApplicationUserByUpdatedByUserId(
  | ApplicationUser applicationUserByUpdatedByUserId) {
  | this.applicationUserByUpdatedByUserId = 
applicationUserByUpdatedByUserId;
  | }
  | @ManyToOne(fetch = FetchType.LAZY)
  | @JoinColumn(name = AddedByUserID, nullable = false)
  | @NotNull
  | public ApplicationUser getApplicationUserByAddedByUserId() {
  | return this.applicationUserByAddedByUserId;
  | }
  | 
  | public void setApplicationUserByAddedByUserId(
  | ApplicationUser applicationUserByAddedByUserId) {
  | this.applicationUserByAddedByUserId = 
applicationUserByAddedByUserId;
  | }
  | 
  | @Column(name = SerialNumber, unique = true, nullable = false, length 
= 50)
  | @NotNull
  | @Length(max = 50)
  | public String 

[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-03-11 Thread asookazian
hibernate-console.properties:

  | #File used by hibernate tools to override datasource and other container 
specific settings in persistence.xml
  | hibernate.connection.password=JavaTestAcct
  | hibernate.connection.username=_AppUser_JavaTestAcct
  | 
hibernate.connection.driver_class=com.microsoft.sqlserver.jdbc.SQLServerDriver
  | hibernate.dialect=org.hibernate.dialect.SQLServerDialect
  | 
hibernate.connection.url=jdbc:sqlserver://CORG0DB901:1433;databaseName=boBETS
  | 
  | 
hibernate.connection.provider_class=org.hibernate.connection.DriverManagerConnectionProvider
  | hibernate.datasource=
  | hibernate.transaction.manager_lookup_class=

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4216998#4216998

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4216998
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - workshop project: can't generate seam entities

2009-03-11 Thread asookazian
using JBDS 2.0.0.CR2

So I'm following step-by-step the instructions here:

http://docs.jboss.org/tools/3.0.0.CR2/en/GettingStartedGuide/html_single/index.html#reverse_engineer_crud
 after having completed this:
http://docs.jboss.org/tools/3.0.0.CR2/en/GettingStartedGuide/html_single/index.html#first_seam

The dev db is running after executing runDBServer.bat.

I have a workshop and workshop-test project.  No errors in the problems view.

When I switch to Hibernate perspective, I see the workshop and configuration, 
session factory, Database underneath it in the Hibernate Configurations view.

I try to revengr the tables (Customers, Employees, etc) via Seam Generate 
Entities wizard.  I select (include) all the tables and click finish.  NOTE: 
this is a JPA type config.

Can't generate seam entities
  |   org.hibernate.tool.hbm2x.ExporterException: Error while processing 
Entity: org.domain.workshop.entity.Orderdetails with template 
view/edit.xhtml.ftl
  |   Error while processing Entity: org.domain.workshop.entity.Orderdetails 
with template view/edit.xhtml.ftl
  | org.hibernate.tool.hbm2x.ExporterException: Error while processing 
Entity: org.domain.workshop.entity.Orderdetails with template 
view/edit.xhtml.ftl
  | Error while processing Entity: org.domain.workshop.entity.Orderdetails 
with template view/edit.xhtml.ftl
  | freemarker.template.TemplateException: Error executing macro: 
outputValue
  | required parameter: property is not specified.
  | Error executing macro: outputValue
  | required parameter: property is not specified.

What's the root cause and how to fix this??


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217019#4217019

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217019
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: workshop project: can't generate seam entities

2009-03-11 Thread asookazian
Ok thx!  that worked, I have successfully revengr'd my entity classes.

I am having the same problem as with my other project:

foo is not mapped

http://www.jboss.org/index.html?module=bbop=viewtopicp=4217020#4217020

The entity classes exist in src/main (org.domain.workshop.entity package).

I rebuilt and refreshed the Hibernate Configuration for workshop (several 
times) and I am getting:

Error
  | Wed Mar 11 09:02:32 PDT 2009
  | org.hibernate.hql.ast.QuerySyntaxException: Customers is not mapped [from 
Customers c]
  | 
  | org.hibernate.hql.ast.QuerySyntaxException: Customers is not mapped [from 
Customers c]
  | at 
org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:158)
  | at 
org.hibernate.hql.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:87)
  | at 
org.hibernate.hql.ast.tree.FromClause.addFromElement(FromClause.java:70)
  | at 
org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:255)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3056)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:2945)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:688)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:544)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:229)
  | at 
org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:228)
  | at 
org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160)
  | at 
org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
  | at org.hibernate.engine.query.HQLQueryPlan.init(HQLQueryPlan.java:77)
  | at org.hibernate.engine.query.HQLQueryPlan.init(HQLQueryPlan.java:56)
  | at 
org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)
  | at 
org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
  | at 
org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
  | at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)
  | at org.hibernate.console.HQLQueryPage.setSession(HQLQueryPage.java:106)
  | at 
org.hibernate.console.ConsoleConfiguration$4.execute(ConsoleConfiguration.java:426)
  | at 
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64)
  | at 
org.hibernate.console.ConsoleConfiguration.executeHQLQuery(ConsoleConfiguration.java:421)
  | at 
org.hibernate.eclipse.hqleditor.HQLEditor.executeQuery(HQLEditor.java:416)
  | at 
org.hibernate.eclipse.console.actions.ExecuteQueryAction.execute(ExecuteQueryAction.java:73)
  | at 
org.hibernate.eclipse.console.actions.ExecuteQueryAction.run(ExecuteQueryAction.java:53)
  | at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
  | at 
org.hibernate.eclipse.console.actions.ExecuteQueryAction.runWithEvent(ExecuteQueryAction.java:57)
  | at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
  | at 
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
  | at 
org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
  | at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  | at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
  | at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
  | at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
  | at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
  | at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
  | at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
  | at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
  | at 
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
  | at 
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
  | at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
  | at 
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
  | at 
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
  | at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
  | at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
  | at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
  | at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
  

[jboss-user] [JBoss Tools (users)] - Seam Generate Entities should be more flexible

2009-03-11 Thread asookazian
I just ran Seam Generate Entities Wizard for the workshop demo app.

I noticed that it essentially executes the 'seam generate' command which is 
described as follows in the seamfp\seam-gen\readme.txt :

generate
  |   Generate CRUD pages and controllers for an existing database
  |   schema.  Combines the generate-model and generate-ui commands to
  |   create the JPA entity classes and then the pages and controllers
  |   that allow them to be managed.

What if the developer doesn't need the UI components to be generated and only 
wants to exec 'seam generate-model'?  There is no way to do that in the wizard 
AFAIK.

For projects that are using their own custom DAO layer, for example, the 
generate and generate-ui tasks are not required and will not be used.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217041#4217041

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217041
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Seam Generate Entities should be more flexible

2009-03-11 Thread asookazian
worst case scenario we delete the unrequired files i guess...

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217042#4217042

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217042
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: workshop project: can't generate seam entities

2009-03-11 Thread asookazian
max.ander...@jboss.com wrote : so you got a *.class file  in the classpath ?(

what are you talking about?  not clear here.  The classpath requires the source 
files for the entities or the bytecode?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217046#4217046

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217046
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: workshop project: can't generate seam entities

2009-03-11 Thread asookazian
for edit config, should it work with the default classpath only in the 
classpath tab or not?

I removed the .class reference.  I even add the entity source folder in the 
classpath (\workshop\src\main\org\domain\workshop\) and it's still not 
working

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217054#4217054

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217054
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: workshop project: can't generate seam entities

2009-03-11 Thread asookazian
looking back at the instructions doc:
http://docs.jboss.org/tools/3.0.0.CR2/en/GettingStartedGuide/html_single/index.html#create_seam_application

In Figure 3.5. Runtimes Selecting, note that there is no check for JPA 1.0.  I 
don't believe I checked it so I have no JPA facet (not sure exactly what a 
facet is).

Does that have something to do with my situation??  Should I have checked it?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217056#4217056

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217056
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: workshop project: can't generate seam entities

2009-03-11 Thread asookazian
so I deleted the workshop projects and started over.  this time I specified a 
JPA facet in addition to the defaults.

still doesn't work when I exec from Customers in HQL editor.  Still getting 
Customers is not mapped error.

@Entity
  | @Table(name = CUSTOMERS, schema = PUBLIC)
  | public class Customers implements java.io.Serializable {
  | ...
  | }

Also, here: Figure 3.46. Mapping Diagram Opening, I can't do that either.  When 
I click expand configuration, I don't see anything.  so no mapping diagrams 
available either.

As per Table 4.3. Hibernate Console Configuration Classpath from this link: 
http://docs.jboss.org/tools/3.0.0.CR2/en/hibernatetools/html_single/index.html#console_conf

classpath: The classpath for loading POJO and JDBC drivers; only needed if the 
default classpath of the Project does not contain the required classes. Do not 
add Hibernate core libraries or dependencies, they are already included. If you 
get ClassNotFound errors then check this list for possible missing or redundant 
directories/jars.

I'm assuming that my default classpath contains the entity classes.

If it's this much a pain to setup basic tools in JBDS (and there isn't adequate 
coverage in docs on configurations with JPA), I won't even use it.  I never had 
this many problems with MyEclipseIDE.  I've spent almost 1.5 days getting this 
and the Seam Components view to work.  I appreciate your help, but I don't 
consider Seam/JBDS next-generation development...

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217084#4217084

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217084
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: workshop project: can't generate seam entities

2009-03-11 Thread asookazian
I also deleted the hibernate config and created a new one.  still no luck.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217087#4217087

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217087
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: workshop project: can't generate seam entities

2009-03-11 Thread asookazian
Max, I just emailed you a .swf video of my JBDS and Hibernate config/console, 
etc.  I thought that would be easiest.

So it *IS* the bytecode that needs to be in the classpath entry for the 
classpath tab.  Well, I just noticed that the .class files are not built 
immediately after I did a revengr.  And I have no build.xml (that I have when I 
run seam setup and create-project in cmd line.

So this is most likely at least part of the problem (that the .class files for 
the entities don't exist (yet)) and that they need to be visible in the 
classpath.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217110#4217110

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217110
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: workshop project: can't generate seam entities

2009-03-11 Thread asookazian
I enabled build automatically from the project menu in JBDS and the .class 
files are not there.

the from Customers query now executed fine in HQL editor.  sorry about the 
mixup.

There should be a note that the *.class files for the entity classes need to be 
available in your classpath.  That would have avoided a lot of my headaches on 
this...

thx a lot for your consistent and helpful follow ups!!

now I need to determine how to get this working with my seam-gen'd project


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217114#4217114

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217114
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: workshop project: can't generate seam entities

2009-03-11 Thread asookazian
asookazian wrote : I enabled build automatically from the project menu in 
JBDS and the .class files are not there.

sorry, I meant the .class files are NOW there.

can't they add an edit button to these damn forum!!??

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217116#4217116

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217116
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-03-11 Thread asookazian
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=bbop=viewtopicp=4217117#4217117

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217117
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-03-11 Thread asookazian
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 hint.

it's JPA.  this issue has been resolved for the workshop demo app.  there were 
no .class files available (they weren't built yet after revengr).  I will 
attempt to resolve it for my app now.

related thread: 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217116#4217116

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217120#4217120

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217120
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-03-11 Thread asookazian
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=bbop=viewtopicp=4217121#4217121

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217121
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: workshop project: can't generate seam entities

2009-03-11 Thread asookazian
max.ander...@jboss.com wrote : Great! Things made sense in the end.
  | 
  | Any ide how the project auto build got disabled ? 
  | 
  | It is enabled by default in the installation (at least it should be)

I'm very sure I didn't manually do it via the JBDS IDE.  It's possible that it 
was a preset config from an existing workspace that I used for my BETS project. 
 I then created the maxTest and workshop projects in that same workspace.

I have a feeling it's not a bug...

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217123#4217123

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217123
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-03-11 Thread asookazian
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, nothing.

So it works for the workshop WAR two project example, but not for my seam-gen'd 
one folder EAR project.

Must this project be converted to the 4 project WTP-style in order to use the 
HQL editor?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217127#4217127

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217127
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: workshop project: can't generate seam entities

2009-03-11 Thread asookazian
thanks for your help and patience, i'm very impatient and irritable at times...


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217125#4217125

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217125
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-03-11 Thread asookazian
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 is based on a single high-level folder design 
rather than the 4 WTP-style design...

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217154#4217154

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217154
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-03-11 Thread asookazian
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=bbop=viewtopicp=4217160#4217160

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217160
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-03-11 Thread asookazian
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
  | 
  | 
  | Error
  | Wed Mar 11 13:32:20 PDT 2009
  | org.hibernate.exception.JDBCConnectionException: Getting database metadata
  | 
  | org.hibernate.exception.JDBCConnectionException: Getting database metadata
  | at 
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:74)
  | at 
org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getMetaData(AbstractMetaDataDialect.java:64)
  | at 
org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.caseForSearch(AbstractMetaDataDialect.java:163)
  | at 
org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect.getTables(JDBCMetaDataDialect.java:22)
  | at org.hibernate.cfg.reveng.JDBCReader.processTables(JDBCReader.java:476)
  | at 
org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:74)
  | at 
org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter$2.execute(LazyDatabaseSchemaWorkbenchAdapter.java:114)
  | at 
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64)
  | at 
org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.readDatabaseSchema(LazyDatabaseSchemaWorkbenchAdapter.java:105)
  | at 
org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.getChildren(LazyDatabaseSchemaWorkbenchAdapter.java:61)
  | at 
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:105)
  | at 
org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:234)
  | at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
  | Caused by: java.sql.SQLException: The database is already in use by another 
process: org.hsqldb.persist.niolockf...@b14f5d0b[file 
=C:\java\jbdevstudio-2.0.0.CR2\jboss-eap\jboss-as\server\default\data\hypersonic.lck,
 exists=true, locked=false, valid=false, fl =null]: java.lang.Exception:  
java.io.IOException: The process cannot access the file because another process 
has locked a portion of the file : 
C:\java\jbdevstudio-2.0.0.CR2\jboss-eap\jboss-as\server\default\data\hypersonic.lck
  | at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
  | at org.hsqldb.jdbc.jdbcConnection.init(Unknown Source)
  | at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
  | at org.hsqldb.jdbcDriver.connect(Unknown Source)
  | at 
org.hibernate.console.FakeDelegatingDriver.connect(FakeDelegatingDriver.java:40)
  | at java.sql.DriverManager.getConnection(DriverManager.java:525)
  | at java.sql.DriverManager.getConnection(DriverManager.java:140)
  | at 
org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
  | at 
org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getConnection(AbstractMetaDataDialect.java:122)
  | at 
org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getMetaData(AbstractMetaDataDialect.java:61)
  | ... 11 more
  | 

Previously, I had started the HSQL manager from the web console after I started 
JBoss AS from the IDE.  Subsequently, I restarted JBDS, JBoss is not running.  
I still am getting that lock error.  I have no clue what is locking it as I 
have only one JVM running (java.exe) as per my windows task mgr.

NOTE: The hibernate-console.properties did not exist when I imported the 
booking project as a java project.  It created a blank hibernate.properties for 
me so then I had to go copy the contents and tweak settings from my other 
project.  This properties file should not be blank, at minimum it should prompt 
the user to fill out a form in a wizard or copy it from somewhere.  I was 
getting Could not locate TransactionManager error but now that's fixed.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217168#4217168

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217168
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-03-11 Thread asookazian
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=bbop=viewtopicp=4217170#4217170

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217170
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-03-11 Thread asookazian
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=bbop=viewtopicp=4217173#4217173

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217173
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-03-11 Thread asookazian
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
  | An exception occurred during console notification
  | 
  | org.eclipse.swt.SWTException: Device is disposed
  | at org.eclipse.swt.SWT.error(SWT.java:3777)
  | at org.eclipse.swt.SWT.error(SWT.java:3695)
  | at org.eclipse.swt.SWT.error(SWT.java:3666)
  | at org.eclipse.swt.widgets.Display.error(Display.java:1180)
  | at org.eclipse.swt.widgets.Display.asyncExec(Display.java:648)
  | at 
org.eclipse.ui.internal.console.ConsoleDropDownAction.consolesRemoved(ConsoleDropDownAction.java:150)
  | at 
org.eclipse.ui.internal.console.ConsoleManager$ConsoleNotifier.run(ConsoleManager.java:154)
  | at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
  | at 
org.eclipse.ui.internal.console.ConsoleManager$ConsoleNotifier.notify(ConsoleManager.java:174)
  | at 
org.eclipse.ui.internal.console.ConsoleManager.fireUpdate(ConsoleManager.java:262)
  | at 
org.eclipse.ui.internal.console.ConsoleManager.removeConsoles(ConsoleManager.java:244)
  | at org.eclipse.ui.console.ConsolePlugin.stop(ConsolePlugin.java:175)
  | at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl$3.run(BundleContextImpl.java:1050)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:1046)
  | at 
org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:457)
  | at 
org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:531)
  | at 
org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1104)
  | at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:655)
  | at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:312)
  | at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:257)
  | at 
org.eclipse.osgi.framework.internal.core.SystemBundle.suspend(SystemBundle.java:236)
  | at 
org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:678)
  | at 
org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:576)
  | at org.eclipse.osgi.framework.internal.core.OSGi.close(OSGi.java:41)
  | at 
org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:424)
  | at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:200)
  | 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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
  | at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
  | at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
  | 
  | 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217177#4217177

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217177
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-03-11 Thread asookazian
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 using HSQLDB: from User and from Hotel.

I'm not sure how/why that lock error was happening but now I actually am able 
to run simultaneous HQL queries from JBDS and from HSQL DB mgr swing app.

So now I know that I should be able to get my seam-gen'd project to work with 
HQL Editor as well b/c the booking project has the same project 
skeleton/structure.

I had to learn how HSQLDB works and load/creates tables on startup, etc. but 
this was a good POC success for my scenario...

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217200#4217200

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217200
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-03-11 Thread asookazian
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, it's due to the fact that I have four different configurations currently 
in the Hibernate config view and was messing around with a lot of different 
settings, etc.  Plus I was switching back and forth from Seam and Hibernate 
perspsectives quite a lot.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217202#4217202

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217202
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-03-11 Thread asookazian
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: 
booking/exploded-archives/jboss-seam-booking.jar for the booking project.  I 
configured mine similarly.

The funny thing is when I do a CTRL-SHFT-T to open a type, when I search for 
Hotel I see two results, one the source .java file and one from 
booking/dist/jboss-seam-booking.jar.

When I do the same procedure (i.e. open type) for my ApplicationRole class, I 
see only the source file, even though it's in this jar:  
BETS/exploded-archives/BETS.jar.

For my BETS hibernate config, Configuration is empty, Session Factory is empty, 
and the tables are visible in the Database section.

I'm using default classpath for both classpath config in hibernate 
configurations.

Not sure what else to try at this point.  I don't understand what else I can do 
to force Hibernate Tools to see the entity classes.  I just added the dist 
folder to the classpath and that didn't help.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4217216#4217216

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217216
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-03-11 Thread asookazian
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=bbop=viewtopicp=4217218#4217218

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217218
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Seam components view problem with JBDS 1.1.0.GA

2009-03-10 Thread asookazian
akazakov wrote : Where is seam.jar in the project?
  | Is it included to classpath?

Yes, source jar is here: C:\java\projects\BETS\lib\src.  Everything looks ok to 
me

?xml version=1.0 encoding=UTF-8?
  | classpath
  | classpathentry kind=src output=classes/model path=src/model/
  | classpathentry kind=src output=classes/action path=src/action/
  | classpathentry kind=src output=classes/test path=src/test/
  | classpathentry kind=src output=classes/dao path=src/dao/
  | classpathentry kind=src output=classes/util path=src/util/
  | classpathentry kind=con 
path=org.eclipse.jdt.launching.JRE_CONTAINER/
  | classpathentry kind=lib path=bootstrap/
  | classpathentry kind=lib path=lib/hibernate-validator.jar/
  | classpathentry kind=lib path=lib/hibernate3.jar/
  | classpathentry kind=lib path=lib/hibernate-annotations.jar/
  | classpathentry kind=lib 
path=lib/hibernate-commons-annotations.jar/
  | classpathentry kind=lib path=lib/hibernate-entitymanager.jar/
  | classpathentry kind=lib path=lib/jboss-seam.jar 
sourcepath=lib/src/jboss-seam-sources.jar/
  | classpathentry kind=lib path=lib/jboss-seam-debug.jar/
  | classpathentry kind=lib path=lib/jboss-cache.jar/
  | classpathentry kind=lib path=lib/jbpm-jpdl.jar/
  | classpathentry kind=lib path=lib/antlr.jar/
  | classpathentry kind=lib path=lib/jgroups.jar/
  | classpathentry kind=lib path=lib/jsf-facelets.jar/
  | classpathentry kind=lib path=lib/jstl.jar/
  | classpathentry kind=lib path=lib/jsf-api.jar/
  | classpathentry kind=lib path=lib/servlet-api.jar/
  | classpathentry kind=lib path=lib/testng.jar/
  | classpathentry kind=lib path=lib/jboss-el.jar/
  | classpathentry kind=lib path=lib/el-api.jar/
  | classpathentry kind=lib path=lib/mvel14.jar/
  | classpathentry kind=lib path=lib/drools-core.jar/
  | classpathentry kind=lib path=lib/drools-compiler.jar/
  | classpathentry kind=lib path=lib/janino.jar/
  | classpathentry kind=lib path=lib/antlr-runtime.jar/
  | classpathentry kind=lib path=lib/mail.jar/
  | classpathentry kind=lib path=lib/persistence-api.jar/
  | classpathentry kind=lib path=lib/ejb-api.jar/
  | classpathentry kind=lib path=lib/jsr250-api.jar/
  | classpathentry kind=lib path=lib/jta.jar/
  | classpathentry kind=lib path=lib/core.jar/
  | classpathentry kind=lib path=lib/jboss-embedded-api.jar/
  | classpathentry kind=lib path=lib/hibernate-search.jar/
  | classpathentry kind=lib path=lib/sqljdbc.jar/
  | classpathentry kind=lib path=lib/lucene-core.jar/
  | classpathentry kind=lib path=lib/jcifs-1.2.17.jar/
  | classpathentry kind=lib path=lib/v20070621-common.jar/
  | classpathentry kind=lib path=lib/v20080929-cadils.jar/
  | classpathentry kind=lib path=lib/richfaces-api-3.2.1.GA.jar/
  | classpathentry kind=output path=test-build/
  | /classpath

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4216618#4216618

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4216618
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Seam components view problem with JBDS 1.1.0.GA

2009-03-10 Thread asookazian
akazakov wrote : Are there any execptions in Eclipse log?

Severity: 
  | 
  | error
  | 
  | msg: 
  | 
  | org.hibernate.console.HibernateConsoleRuntimeException: Could not load JPA 
Configuration
  | 
  | exception stack trace: 
  | 
  | An exception stack trace is not available.
  | 
  | session data: 
  | 
  | eclipse.buildId=1.1.0.GA
  | 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

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4216633#4216633

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4216633
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Seam components view problem with JBDS 1.1.0.GA

2009-03-10 Thread asookazian
contents of persistence.xml:

?xml version=1.0 encoding=UTF-8?
  | !-- Persistence deployment descriptor for dev profile --
  | persistence xmlns=http://java.sun.com/xml/ns/persistence; 
  |  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  |  xsi:schemaLocation=http://java.sun.com/xml/ns/persistence 
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd; 
  |  version=1.0
  |  
  |persistence-unit name=boBETS
  |   providerorg.hibernate.ejb.HibernatePersistence/provider
  |   jta-data-sourcejava:/boBETSDatasource/jta-data-source
  |   properties
  |  property name=hibernate.dialect 
value=org.hibernate.dialect.SQLServerDialect/
  |  !-- property name=hibernate.hbm2ddl.auto value=validate/   
--
  |  property name=hibernate.show_sql value=true/
  |  property name=hibernate.format_sql value=true/
  |  property name=jboss.entity.manager.factory.jndi.name 
value=java:/boBETSEntityManagerFactory/
  |  property name=hibernate.default_catalog value=boBETS/
  |  property name=hibernate.default_schema value=dbo/
  |   /properties
  |/persistence-unit
  |
  |persistence-unit name=coxDSS
  |   providerorg.hibernate.ejb.HibernatePersistence/provider
  |   jta-data-sourcejava:/coxDSSDatasource/jta-data-source
  |   properties
  |  property name=hibernate.dialect 
value=org.hibernate.dialect.SQLServerDialect/ 
  |  property name=hibernate.show_sql value=true/
  |  property name=hibernate.format_sql value=true/
  |  property name=jboss.entity.manager.factory.jndi.name 
value=java:/coxDSSEntityManagerFactory/
  |  property name=hibernate.default_catalog value=coxDSS/
  |  property name=hibernate.default_schema value=dbo/
  |   /properties
  |/persistence-unit
  | 
  |persistence-unit name=coxIM
  |   providerorg.hibernate.ejb.HibernatePersistence/provider
  |   jta-data-sourcejava:/coxIMDatasource/jta-data-source
  |   properties
  |  property name=hibernate.dialect 
value=org.hibernate.dialect.SQLServerDialect/ 
  |  property name=hibernate.show_sql value=true/
  |  property name=hibernate.format_sql value=true/
  |  property name=jboss.entity.manager.factory.jndi.name 
value=java:/coxIMEntityManagerFactory/
  |  property name=hibernate.default_catalog value=coxIM/
  |  property name=hibernate.default_schema value=dbo/
  |   /properties
  |/persistence-unit
  |
  | /persistence
  | 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4216635#4216635

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4216635
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Seam components view problem with JBDS 1.1.0.GA

2009-03-10 Thread asookazian
ignore my previous post, that was for different problem, sorry...

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4216638#4216638

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4216638
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Hibernate Configurations problem

2009-03-10 Thread asookazian
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\resources\META-INF\persistence-test.xml
C:\java\projects\BETS\resources\META-INF\persistence-prod.xml

the build.xml picks up the appropriate file depending on configuration.

Must I have the ant explode and/or ant deploy target(s) copy the 
persistence.xml to this location (C:\java\projects\BETS\resources\META-INF) as 
well in order to avoid this error???



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4216641#4216641

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4216641
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


  1   2   3   4   5   >