[JBoss-user] [EJB/JBoss] - Re: java.sql.SQLException: ORA-00904: invalid column name

2005-07-13 Thread schmidts
Here we are. What's JBoss got to do with orion-ejb-jar.xml? Nothing! What you need is jbosscmp-jdbc.xml for customizing the database mapping. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3884769#3884769 Reply to the post : http://www.jboss.org/index.html?mo

[JBoss-user] [EJB/JBoss] - Re: java.sql.SQLException: ORA-00904: invalid column name

2005-07-12 Thread schmidts
"schmidts" wrote : | SELECT t0_o."countyNbr", t0_o."districtNbr" FROM DISTRICT t0_o WHERE (t0_o."districtNbr" = 99); this should read: | SELECT t0_o."countyNbr", t0_o."districtNbr" FROM DISTRICT t0_o WHERE (t0_o."distr

[JBoss-user] [EJB/JBoss] - Re: java.sql.SQLException: ORA-00904: invalid column name

2005-07-12 Thread schmidts
Check whether your table DISTRICT really has mixed uppercase/lowercase column names (countyNbr, districtNbr). If so, those column names should be surrounded by quotation marks ("countyNbr", "districtNbr"). You might want to try something like this in SQLPLUS: DESC DISTRICT SELECT t0_o."countyNbr

[JBoss-user] [Installation & Configuration] - Re: Setting up both Tomcat v5.5.9 and JBoss v4.0.2 so that c

2005-06-13 Thread schmidts
Why can't you use the Tomcat server that is integrated with JBoss? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881372#3881372 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881372 --

[JBoss-user] [EJB/JBoss] - Re: EJB QL that uses an in clause does not work.

2005-06-13 Thread schmidts
Your solution is correct and works. EJB-QL is very limited. But for performance reasons you might want to issue a single query to database and let the database do the work in one round-trip. A JBoss-specific approach can be seen in http://docs.jboss.org/jbossas/jboss4guide/r3/html/ch11.chapter.

[JBoss-user] [Persistence & CMP/JBoss] - Re: EJB Relationsship for remote and local interfaces

2005-06-10 Thread schmidts
CMR can only be used with local interfaces. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881095#3881095 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881095 ---

[JBoss-user] [Persistence & CMP/JBoss] - Re: Sequence Access Problem when upgrading from 3.2.2 to 3.2

2005-06-08 Thread schmidts
Might be a driver issue. Did you update the JDBC driver, too? (http://jdbc.postgresql.org/download.html) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880856#3880856 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=38808

[JBoss-user] [Installation & Configuration] - Re: dealing with slow hot deployments

2005-06-08 Thread schmidts
scp to a different directory and then move/rename the file. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880777#3880777 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3880777 -

[JBoss-user] [EJB/JBoss] - Re: Deleting while iterating over a collection

2005-06-07 Thread schmidts
"Dumbledore" wrote : Thanks for the reply. | | Okay, so this iterator doesn't behave as described in the java-api-docs? The iterator is of the type java.util.Iterator. | | Where can I learn more about this topic? | EJB spec, section 10.3.6 gives more details. BTW, there's a subtle y

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Testing DB and other connections

2005-06-07 Thread schmidts
How could the admin console know about problems with your application if the application did not yet execute? Besides watching the server logs carefully while deploying and running, there's no way around testing every single application to ensure that it still as expected. And, by any means, t

[JBoss-user] [Security & JAAS/JBoss] - Re: Automatic login after submiting registration form

2005-06-07 Thread schmidts
FWIW, I once had a similiar requirement (automatic login of web user). My pragmatic and simple solution then was to automatically submit a hidden form via javascript. Not really charming, but acceptable for an intranet-type application. View the original post : http://www.jboss.org/index.html?

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Problems deploying .war on jboss 3.2.6RC1

2005-06-03 Thread schmidts
"schmidts" wrote : Besides timestamp issues, check if you still have hot deployment properly enabled your configuration. ... enabled in your custom configuration. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880232#3880232 Reply t

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Problems deploying .war on jboss 3.2.6RC1

2005-06-03 Thread schmidts
Besides timestamp issues, check if you still have hot deployment properly enabled your configuration. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880231#3880231 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3880231

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Write file in the WEB-INF directory

2005-06-03 Thread schmidts
"gmorette" wrote : is it possible to deploy a web application and make this application write a file | in her own WEB-INF directory ? | | it seems that JBOSS not expanded the War as Tomcat do. | Then deploy the WAR as an unpacked directory structure. "gmorette" wrote : | But a lot

[JBoss-user] [Persistence & CMP/JBoss] - Re: A CMR collection may only be used within the transction

2005-06-03 Thread schmidts
In the deployment-descriptor of your SessionBean you either declare wether to use container managed or bean managed transaction demarcation. In case of container managed transaction, check if the trans-attribute is e.g. "Required". In case of bean managed TX, programmatically obtain the UserTra

[JBoss-user] [Persistence & CMP/JBoss] - Re: oracle Date type and EJBs

2005-06-03 Thread schmidts
When speaking of the Oracle DATE type: You are going to loose precision when mapping java.util.Date to DATE. The former has a resolution of milliseconds, the latter only keeps full seconds. You might better want to map java.util.Date to Oracle's TIMESTAMP(3) type. http://www.oracle.com/technolo

[JBoss-user] [Persistence & CMP/JBoss] - Re: oracle Date type and EJBs

2005-06-03 Thread schmidts
The invocation of OracleResultSetImpl.getLong() that is shown in the stacktrace puzzles me. It seems that it's not JBoss' CMP engine that is calling this method. Instead the stacktrace tells that KingPackageGeneratorProcess is calling this directly. Anyway, using java.util.Date with Oracle work

[JBoss-user] [Performance Tuning] - Re: jboss is slow.

2004-12-02 Thread schmidts
-Xmx? http://java.sun.com/docs/performance/ View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857241#3857241 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857241 --- S

[JBoss-user] [Persistence & CMP/JBoss] - Re: Oracle and case preserved table names

2004-12-02 Thread schmidts
Is there any strong reason at all to use case-preserving create-table DDL in the first place? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857240#3857240 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857240 --

[JBoss-user] [EJB/JBoss] - Re: What's reason for the exception.

2004-11-30 Thread schmidts
Let your Oracle DBA have a look at this. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856925#3856925 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3856925 --- SF e

[JBoss-user] [Persistence & CMP/JBoss] - Re: Better performance?

2004-11-26 Thread schmidts
IMHO using CMR accessors for retrieving the objects on the many-side of a relationship instead of using a finder could yield better performance in certain scenarios. Here's why: the persistence manager always has to sync all in-memory changes of persistent objects to the database right before e

[JBoss-user] [Persistence & CMP/JBoss] - Re: relation and remove problem on 3.2.6

2004-11-26 Thread schmidts
very similiar problem here: works fine on 3.2.4, but fails in 4.0.1RC1 (no other version tried so far). sorry, no details available - I've reverted to 3.2.4 again because of lack of time. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856497#3856497 Reply to

[JBoss-user] [Persistence & CMP/JBoss] - Re: Why an ejbLoad() call for each get* method?

2004-11-03 Thread schmidts
"ricardovm" wrote : |... |ctx.getUserTransaction().begin(); |TestLocal t = home.findByPrimaryKey(id); |... | "LaLiLuna" wrote : First I have a different proposal. Use a ValueObject design pattern instead of calling all the getters. This is only one getter and you get a

[JBoss-user] [Security & JAAS/JBoss] - Re: JBoss 3.2.5 -> 4.0.0 migration, principal=null

2004-10-25 Thread schmidts
Hi, I'm trying to update from JBoss 3.2.4 to 3.2.6 and I experience the same problem. (At least I think so at this moment) Before producing length details, I just wanted to check whether this bug might also exist in 3.2.6. Bug #1040200 says that it's been fixed on the JBoss-4 branch. What abou

[JBoss-user] [Beginners Corner] - Re: Storing lastUpdatedBy for database update history

2004-07-22 Thread schmidts
Check out the "audit" element in http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_2.dtd and see if "updated-by" and "updated-time" is what you are looking for. As you stated, Entity Beans need to be put in a JAAS security domain to make this make - otherwise you cannot retrieve the principal. View

[JBoss-user] [Beginners Corner] - Re: Weird problem starting JBoss on linux

2004-05-31 Thread schmidts
Sounds like the application only works correctly if it can connect to an X11 server. Nothing JBoss specific, check out http://www.jguru.com/faq/view.jsp?EID=96 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836945#3836945 Reply to the post : http://www.j

[JBoss-user] [Installation & Configuration] - Re: Run JBoss in the Backend

2004-04-09 Thread schmidts
http://wrapper.tanukisoftware.org/doc/english/index.html View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829941#3829941 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3829941

[JBoss-user] [Installation & Configuration] - Re: JBoss Fails when AWT Used on Linux

2004-04-09 Thread schmidts
Set system property java.awt.headless to true, either in your own code or at JBoss startup. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829938#3829938 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3829938

[JBoss-user] [Persistence & CMP/JBoss] - Re: very simple findBy -> sql exception

2004-03-09 Thread schmidts
In many RDBMs "USER" is a reserved word and thus not available as a table name. Don't know about hsqldb though. YMMV. http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825025#3825025";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3825025>Reply

[JBoss-user] [Installation & Configuration] - Re: Is there a Remote-Deployment solution?

2004-02-19 Thread schmidts
See http://localhost:8080/jmx-console/HtmlAdaptor?action=inspectMBean&name=jboss.system%3Aservice%3DMainDeployer And invoke deploy(java.net.URL) providing the URL of the component you want to deploy. Works fine for me. (Actually, this could be also done programmatically without using the jmx-co

[JBoss-user] [Persistence & CMP/JBoss] - Re: easiest way to encrypt a CMP field?

2004-02-19 Thread schmidts
Yes, guessing that PostgreSQL does not support transparent encryption on the database server side, you'd have to implement this in your application. EjbLoad() and ejbStore() could be the key in an implementation where you'd extend the default behaviour of CMP. Check section 10.3.9 of the EJB 2.

[JBoss-user] [Installation & Configuration] - Re: Is there a Remote-Deployment solution?

2004-02-19 Thread schmidts
You can avoid deployment failures because of incomplete files by first copying (ftp'ing, whatever) the file to a separate directory (on the same filesystem) and then just moving it into the deployment directory. For remote deployments without accessing the filesystem of the application server A

[JBoss-user] [Persistence & CMP/JBoss] - Re: easiest way to encrypt a CMP field?

2004-02-19 Thread schmidts
Regarding passwords, you can use one-way encryption (e.g. using MD5) and store only store/compare the results. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822150#3822150 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p

[JBoss-user] [Persistence & CMP/JBoss] - Re: Try to insert null into a non-nullable column...

2004-02-08 Thread schmidts
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3820640#3820640 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3820640 The primary key is missing in the insert statement. -