[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Context-root problem

2006-05-18 Thread Raist_Majere
Do you have an index.html on the root directory of your WAR? Because your web.xml says that this page is your welcome file... If it's another one, change the line | index.html | | to whatever welcome page you have in your web.xml View the original post : http://www.jboss.com/index.htm

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Delayed insert

2006-03-16 Thread Raist_Majere
If the creation operations have no transaction Requires New attribute, then the transaction in which you do the three creates and the final select are in the same transaction, so there has been no commit after the three created beans and so the select returns null. View the original post : htt

[JBoss-user] [Beginners Corner] - Re: Can a remote client call a bean on a private network?

2006-03-16 Thread Raist_Majere
In your first post it syas on the error log that you're trying to connect to 192.168.10.1, but that's the private IP, so you cannot access it from the public side of the net. You have to change it for the public IP of the "head" node. View the original post : http://www.jboss.com/index.html?mo

[JBoss-user] [EJB/JBoss] - Re: Questions about stateless session bean life cycle from c

2006-03-15 Thread Raist_Majere
I don't know if that's the problem you have, but by default JBoss is configured with a Pool of 100 beans per type. So when you have 500 clients accessing all the time, it has to create the 400 left. You can configure this in jboss.home/server/default/conf/standardjboss.xml. | | S

[JBoss-user] [EJB/JBoss] - Re: Strange: the exceptions in the Bean class isn`t the same

2006-03-15 Thread Raist_Majere
You have to declare the RemoteException in your bean: public void deposit(double) throws AccountException, RemoteException That's because the bean implements the Remote Interface and in that interface you declared that the method deposit (and others) throw this exception (well, is XDoclet who p

[JBoss-user] [Beginners Corner] - Re: Separate IMG directory from WAR file

2006-03-15 Thread Raist_Majere
ROOT.war is the name of w directory that has the structure of a WAR file, but it's just this, a directory. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930422#3930422 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=393

[JBoss-user] [Beginners Corner] - Re: Accessing BLOB from oracle.

2006-03-15 Thread Raist_Majere
If you have the JDBC 3 driver for Oracle, then you can use J2SE 1.4 java.sql.Blob Following is the code I use in an app to insert a new blob into an existing record (before this insertion the blob i think was null in that record). | Statement st = null; | ResultSet rs = null; | try {

[JBoss-user] [Beginners Corner] - Re: jboss shutdown problems

2006-03-15 Thread Raist_Majere
Is there any user connected to the webpage your server is hostnig when you shutdown? If any user has an Internet Explorer opened with your page, that may be the cause I've seen many times happening to me... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=393040

[JBoss-user] [Beginners Corner] - Re: JAVA_HOME is now found but JAVA_HOME is set correctly ??

2004-12-13 Thread Raist_Majere
In your JAVA_HOME there's this symbol "$". Remove it. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858295#3858295 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858295 ---

[JBoss-user] [Installation & Configuration] - Re: NoClassDefFoundError - new to JBoss

2004-12-10 Thread Raist_Majere
As it says a few times at the top of the stack trace, it lacks the propietary classes of WebSphere... I think it may be due to using WSAD configured to deploy the app on WebSphere, so it uses propietary classes... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p

[JBoss-user] [O'Reilly JBoss 3.0/4.0 Workbook] - Re: P. 618, workbook 4

2004-12-09 Thread Raist_Majere
Take a look here http://docs.jboss.org/jbossas/admindevel326/html/ch11.chapter.html#ch11.pkgen.sect View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858122#3858122 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858122

[JBoss-user] [EJB/JBoss] - Re: Problem while accessing the CMP(oracle)

2004-12-08 Thread Raist_Majere
You've made a big error in your bean code... If using CMP beans, then you cannot use public variables to store the values of the properties... You must change your code to: | package com.ness.training.ejb; | | import javax.ejb.CreateException; | import javax.ejb.EntityBean; | impor

[JBoss-user] [Beginners Corner] - Re: jndi's error

2004-12-08 Thread Raist_Majere
Where are you trying to access the EJBs? In the web tier? If so, you must define the reference in web.xml and jboss-web.xml files. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857957#3857957 Reply to the post : http://www.jboss.org/index.html?module=bb&op=

[JBoss-user] [Beginners Corner] - Re: jndi/datasource error similar to jndi/ejb post by codemy

2004-12-08 Thread Raist_Majere
The resource you define in web.xml is only defined inside your application (it's a logical name), so you must map it to a phisical name using jboss-web.xml. This is to explain why you have to use the jboss-web.xml file. If you get this error I think it's due to you haven't defined a datasource w

[JBoss-user] [Beginners Corner] - Re: error when starting jboss on redhat linux

2004-12-08 Thread Raist_Majere
I think your problem is related to Linux file/dir permissions. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857955#3857955 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857955 --

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Fibo tutorial - HTTP 500 error javax.servlet.ServletExce

2004-12-08 Thread Raist_Majere
If it wasn't your problem, if you don't copy your web-app.xml, jboss-web.xml, jboss.xml, ejb-jar.xml and the lookup code, I think not much people can help you... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857940#3857940 Reply to the post : http://www.jb

[JBoss-user] [Persistence & CMP/JBoss] - Re: CMP with mySql

2004-12-07 Thread Raist_Majere
Did you remove the hsqldb-ds.xml file from the deploy dir and copied the MySQL JDBC drivers into the server/{yourconfig}/lib dir? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857820#3857820 Reply to the post : http://www.jboss.org/index.html?module=bb&op=p

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Fibo tutorial - HTTP 500 error javax.servlet.ServletExce

2004-12-07 Thread Raist_Majere
Provide the lookup code and web-app.xml and jboss-web.xml files related to the problem... But I think your problem is due to you have written somewhere java:/comp/env/ and you have to write java:comp/env (without the first /...). View the original post : http://www.jboss.org/index.html?module=b

[JBoss-user] [Installation & Configuration] - Re: how to add configuration directory

2004-12-07 Thread Raist_Majere
For running two JBoss instances, take a look at: http://docs.jboss.org/jbossas/admindevel326/html/ch10.html#d0e21029 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857813#3857813 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=r

[JBoss-user] [Beginners Corner] - Re: preventing jsp fragments from being viewable through web

2004-12-07 Thread Raist_Majere
Move under a subdir of WEB-INF directory. This dir is only accessible inside the web-app, so nothing from the "outside" can see what it has... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857811#3857811 Reply to the post : http://www.jboss.org/index.html?m

[JBoss-user] [Beginners Corner] - Re: EJB JNDI Binding Problem

2004-12-07 Thread Raist_Majere
You have to use the jboss-web.xml and jboss.xml files you provided, and change the HASHMAP_CONTROLLER variable to "java:comp/env/ejb/HashMapControllerEJB" (see that you missed the "env" at the begining? In the JNDI view you provided is there...) View the original post : http://www.jboss.org/in

[JBoss-user] [Beginners Corner] - Re: Session bean design questions

2004-12-07 Thread Raist_Majere
To your first question: if your session beans launch not Runtime exceptions and you catch them, the transaction is not rolled back. You can create your own exceptions to get this behaviour, for example... To question a): deciding on one of the two approaches is subjective... For a good design, y

[JBoss-user] [HTTPD, Servlets & JSP] - Re: How to stop using session cookies - jboss-web.xml isn't

2004-12-06 Thread Raist_Majere
Not really sure, but try setting the "override" attribute of DefaultContext element on server.xml file of Tomcat to false. I think that is set to true by default, which overrides your application configuration setting the cookies on. View the original post : http://www.jboss.org/index.html?mod

[JBoss-user] [Beginners Corner] - Re: JNDI tree not showing dept/DeptFacadeL

2004-12-05 Thread Raist_Majere
Have you tried what I said about jboss.xml file DTD? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857470#3857470 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857470 ---

[JBoss-user] [HTTPD, Servlets & JSP] - Re: JB does not accept my web-app

2004-12-02 Thread Raist_Majere
Your problem is due to you have servlet definitions and mappings not in the correct order. You have to define first the servlet definitions and then the servlet mappings (not as you have servlet-def, servlet-map, servlet-def, servlet-map). View the original post : http://www.jboss.org/index.h

[JBoss-user] [Beginners Corner] - Re: org.jboss.util.NestedSQLException:

2004-12-02 Thread Raist_Majere
You have uncommented too many lines, 'cause there has to be only one "connection" tag uncommented. So when using the datasource for CMP the datasource cannot be found because is missconfigured. If you want to use TCP connections, leave that "connection" tag uncommented and comment the other ones

[JBoss-user] [EJB/JBoss] - Re: Setting the local-jndi-name of a local Session Bean

2004-11-30 Thread Raist_Majere
You have an error in your code. You say you have: | | | ejb/Fibo | Session | tutorial.interfaces.FiboLocalHome | tutorial.interfaces.FiboLocal | | So from your servlet you must write: | home = (FiboLocalHome) context.lookup("java:/comp/env/ejb/F

[JBoss-user] [Beginners Corner] - Re: Problem configuring JBoss with PostgreSQL

2004-11-30 Thread Raist_Majere
Take a look here: http://www.jboss.org/wiki/Wiki.jsp?page=ConfigJBossMQDB View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856986#3856986 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3856986 ---

[JBoss-user] [Beginners Corner] - Re: JNDI tree not showing dept/DeptFacadeL

2004-11-30 Thread Raist_Majere
Not sure about it, but I think the problem you have is due to you wrote and incorrect jboss.dtd in the xml file: | http://www.jboss.org/j2ee/dtd/jboss.dtd";> | This DTD is for JBoss 2.2, which was not aware of local interfaces... You have to change it to jboss_3_2.dtd or jboss_4_0.dtd (dep

[JBoss-user] [Beginners Corner] - Re: org.jboss.util.NestedSQLException:

2004-11-30 Thread Raist_Majere
What JBoss version do you use? What changes have you made? Did you use before having that problem another database? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856983#3856983 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=r

[JBoss-user] [Beginners Corner] - Re: [JMS] Beginner : configuration

2004-11-30 Thread Raist_Majere
If you want to access a resource from a web-app, you have to declare it using the resource-ref tag in web-app.xml (and if using JBoss, also within jboss-web.xml). If you haven't declared the connection factory to JMS, then it's normal that says "not bound". View the original post : http://www

[JBoss-user] [Persistence & CMP/JBoss] - Re: CMR Many to many relationships with 3 beans

2004-11-30 Thread Raist_Majere
After reading your last post I realized I made a mistake :P: the Sale bean has to have 1:N relationships instead of M:N with User and Book beans. About generating PK fields, you can take a look at this page: http://docs.jboss.org/jbossas/admindevel326/html/ch11.chapter.html#ch11.pkgen.sect View

[JBoss-user] [EJB/JBoss] - Re: Another problem with Timer Service: duplication

2004-11-30 Thread Raist_Majere
When you use database persistence for timers, timers that have expired while the server was down (from a shutdown or a crash till a start/restart) are immediately called after the server has completely started up. I don't fully understand your question about if timers are restored after a crash,

[JBoss-user] [EJB/JBoss] - Re: Another problem with Timer Service: duplication

2004-11-28 Thread Raist_Majere
If you're using JBoss 4 (don't know if the same is in JBoss 3.2), you can configure the Timer Service editing the file ejb-deployer.xml file in the deploy dir. By default, as you guessed, is configured to persist the timers in the database, but in that file you can change this. View the origin

[JBoss-user] [Persistence & CMP/JBoss] - Re: CMR Many to many relationships with 3 beans

2004-11-28 Thread Raist_Majere
If you want to use CMP for your app, then you must normalize your design. That means that if you have to use a relationship with attributes (as in your case) or relationships between more than two entities at the same time, you must define a third entity (or class) between the two related entiti

[JBoss-user] [Beginners Corner] - Re: [JMS] Beginner : configuration

2004-11-28 Thread Raist_Majere
Which JBoss version are you using? How you declare the "ConnectionFactory" on the web-app.xml file and in jboss-web.xml file on your WAR? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856630#3856630 Reply to the post : http://www.jboss.org/index.html?modul

[JBoss-user] [Installation & Configuration] - Re: jndi NameNotFouncException

2004-11-28 Thread Raist_Majere
Can you provide the code? Is it a standalone client or is in the same application? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856629#3856629 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3856629

[JBoss-user] [Beginners Corner] - Re: JNDI lookup does not work anymore *confused*

2004-11-27 Thread Raist_Majere
I think your lookup is correct, but the problem is related to not having the interfaces on the JUnitEE servlet WAR (or EAR or whatsoever) archive. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856565#3856565 Reply to the post : http://www.jboss.org/index.h

[JBoss-user] [The Lizzard's corner] - Cannot find the posts I wrote before the website redesign

2004-11-26 Thread Raist_Majere
Before the website redesign I wrote some posts trying to help people with their problems, but after the redesign, when I follow the "View your posts" link, I see none (well, now I see one that I created on the Test Forum), and if I make a search by author (and write my nick) I also cannot see an

[JBoss-user] [EJB/JBoss] - Re: updating single war when there are multiple wars in vm

2004-11-08 Thread Raist_Majere
About your first question, if you "touch" your web.xml file in the WAR exploded dir, then JBoss redeploys that WAR. If using linux, it's easy to do it with the "touch" command; in windows I know there are some free utilities that do this, but don't know where you can get them (a home-made soluti

[JBoss-user] [Persistence & CMP/JBoss] - Re: Please help me about CMP

2004-11-06 Thread Raist_Majere
I haven't tried it yet, but I think the problem is with your PK source. You have to define the variable as public because the CMP engine is outside your packages, so it cannot access the field so it generates an exception. Try it and say something. View the original post : http://www.jboss.org

[JBoss-user] [Installation & Configuration] - Re: Overriding the base application

2004-11-06 Thread Raist_Majere
You can rename the webdev dir to webdev.ear, make a META-INF dir on the webdev.ear dir (deploy/webdev.ear/META-INF) and put there an application.xml file. In that file you can specify which context has every war file within the webdev.ear dir. You should avoid using the server.xml file for doing

[JBoss-user] [Persistence & CMP/JBoss] - Re: EJB QL parsing pb

2004-11-06 Thread Raist_Majere
Is your "finished" field a date? If so, as per EJB 2.0 spec you cannot use the "<=" comparator (you'll have to break it into "(o.finished=?2 OR o.finishedhttp://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854167#3854167 Reply to the post : http://www.jboss.org/index.html?module=bb&op=post

[JBoss-user] [Installation & Configuration] - Re: Unable to use MySQL for DefaultDS

2004-11-06 Thread Raist_Majere
On the FAQs there is an entry to this: http://www.jboss.org/wiki/Wiki.jsp?page=ChangeTheDatabase View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854164#3854164 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854164 ---

[JBoss-user] [Persistence & CMP/JBoss] - Re: Please help me about CMP

2004-11-06 Thread Raist_Majere
Can you copy the sources here or put it somewhere else? Because to get them on the link you provided a login is required and, as you could understand, I don't understand the vietnamese language of the page in order to get an account... View the original post : http://www.jboss.org/index.html?m

[JBoss-user] [J2EE Compliance] - Re: please help me

2004-11-06 Thread Raist_Majere
What's the complete Java class name of XmlDocument you use (package name+java class name)? I ask this because I haven't seen this class before and maybe that's the problem... If it's from an external lib, is it correctly deployed within your app or in the server/lib dir? View the original post

[JBoss-user] [Persistence & CMP/JBoss] - Re: ParseException when using <= operator

2004-11-04 Thread Raist_Majere
I think you're not right when saying that EJB 2.0 spec permits what you were trying to do. As the spec says, datetime_value comparisons only allow these operators: =,<>,>,<. The kind of comparation you wanted to use is restricted to arithmetic types. | comparison_expression ::= | string_valu

[JBoss-user] [Beginners Corner] - Re: Simple reference of CSS from JSP doesn't work

2004-11-04 Thread Raist_Majere
Your problem is Struts related, but I'll try to help you anyway... What's the location of the css file in your WAR file? I mean, is it under the /WEB-INF/ dir? I ask you this because you said it's in the same dir as your JSP, and if using Struts it's recommended that your JSP files that have to b

[JBoss-user] [EJB/JBoss] - Re: hardcoded JNDI names on clientside...

2004-11-04 Thread Raist_Majere
I'll try to do my best with the explanation, but I don't know if it will be clear enough... Every component on a J2EE has its own "environment" with which the component can reference another component (an EJB, datasource...) by a "logical" name. This logical component name is used by programmers

[JBoss-user] [EJB/JBoss] - Re: EJbspec violation error while deploying entity bean - pl

2004-11-03 Thread Raist_Majere
Can you provide your PK and remote interface source? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853826#3853826 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853826 ---

[JBoss-user] [Installation & Configuration] - Re: Unwanted DEBUG Logging To STDOUT

2004-11-03 Thread Raist_Majere
If you take a closer look on your log output you'll see that this only happens with your Struts apps (it says "tiles-definition" in all the lines you provided), so the problem is in the configuration of the log output level of Struts, not JBoss. Depending on the version of Struts you're using, y

[JBoss-user] [Persistence & CMP/JBoss] - Re: Problem with remove()

2004-11-03 Thread Raist_Majere
Two days ago I read in the JBoss CMP docs about that, and now remembered about your problem. In that Docs it says that the FK column must be nullable in order for JBoss to work correctly. That's because, as said by redBear15, JBoss first deletes the parent entity and then makes the cascaded dele

[JBoss-user] [Persistence & CMP/JBoss] - Re: wierd sql generated by container for cmr-field (1-*)

2004-11-03 Thread Raist_Majere
You're welcome. I didn't wanted to say anything about the PK fields before seeing the source because I didn't wanted to to say another "stupid" resolution before like the one I said before :P, but I thought that maybe your PK fields weren't public or were not declared as being persistent in the

[JBoss-user] [Beginners Corner] - Re: ClassNotFoundException: org.springframework.web.context.

2004-11-01 Thread Raist_Majere
Are the SpringFramework jars in your WAR file or in your server/default/lib dir? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853559#3853559 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853559

[JBoss-user] [Persistence & CMP/JBoss] - Re: wierd sql generated by container for cmr-field (1-*)

2004-11-01 Thread Raist_Majere
I think your problem is due to putting the key-field element on the wrong side of the relation mapping... Try this: | | Region-RegionZone | | | Region-Has-Many-Zones | | | | Zone-in-One-Region | | | regionCode | REGIONCODE | | | | |

[JBoss-user] [Persistence & CMP/JBoss] - Re: wierd sql generated by container for cmr-field (1-*)

2004-11-01 Thread Raist_Majere
Oooops! Sorry about my last post, but I was wrong about what I said. Your mapping in jbosscmp-jdbc.xml are correct. :-P But maybe I know (not sure again ;-)) what could it be... What's the definition of the RegionZone primary key? You said it's a compound PK. Can you post the source code of it?

[JBoss-user] [EJB/JBoss] - Re: hardcoded JNDI names on clientside...

2004-10-31 Thread Raist_Majere
A possible solution is provide an utility class using the ejb.util tag on the EJB's you need to access. Read the XDoclet docs if you want to know more about this tag. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853407#3853407 Reply to the post : http://w

[JBoss-user] [EJB/JBoss] - Re: HTTP Status 404

2004-10-31 Thread Raist_Majere
I think I know the problem you have and the solution to it: you have to define the servlet-mapping element on your web.xml file after the servlet element declaration. It can be something like: | | SearchServlet | /Search | | There are two reasons you have to add this: - The firs

[JBoss-user] [Persistence & CMP/JBoss] - Re: How to port entity EJB 1.0, 1.1 using Jaws from JBoss 3.

2004-10-29 Thread Raist_Majere
Did you properly set the datasource that jaws uses in conf/standardjaws.xml or in your application specific jaws.xml file, copied and configured properly the mysql-ds.xml file on the deploy dir, copyed the JDBC driver on lib dir, and after that restarted JBoss? Have you checked that the tables d

[JBoss-user] [EJB/JBoss] - Re: HTTP Status 404

2004-10-29 Thread Raist_Majere
Do you have a jboss-web.xml in your WAR file or application.xml in EAR file? If so, can you provide them, as well as your web.xml file? That could help. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853347#3853347 Reply to the post : http://www.jboss.org/i

[JBoss-user] [Persistence & CMP/JBoss] - Re: Image Retrieved from DB, doeesnt get displayed correctly

2004-10-29 Thread Raist_Majere
Hi robinbajaj. I'm a little confused with the code snippet you provided... Is that servlet writing HTML an the icon in the same response? If so, I think that's not allowed, so you should provide a servlet for the HTML and another one for the images. If your servlet just provides an image, then yo

[JBoss-user] [Installation & Configuration] - Re: How do I stop JBoss from shutting down when logging out?

2004-10-29 Thread Raist_Majere
That behaviour is the normal one in any OS: when you log out, all the programs you're running are shutted down. In order to make JBoss not to depend on any session you must install it as a service, so when the system is started up JBoss is executed and when the system shuts down, so does JBoss.

[JBoss-user] [Persistence & CMP/JBoss] - Re: Problem with remove()

2004-10-29 Thread Raist_Majere
As redBeard15 says, I think the problem you have is that you setted the "on-delete-cascade" reference on the DB instead of on the CMR definition in ejb-jar.xml file. If that's your case, you should drop the "on-cascade-delete" rule on your DB and put the element on the CMR definition. If that's

[JBoss-user] [Persistence & CMP/JBoss] - Re: EJB QL Parsing problem

2004-10-29 Thread Raist_Majere
What's the type for location? Is it a BLOB or something like this? Can you tell us the Java type of this CMP field? If, as you said (or I understood), "location" is a BLOB or similar, then you're right when supposing that this kind of CMP fields "have a problem" with EJBQL, 'cause as you caould

[JBoss-user] [Persistence & CMP/JBoss] - Re: EJB QL Parsing problem

2004-10-27 Thread Raist_Majere
Is "location" a CMP field of ControlLogix? Can you provide the ejb-jar.xml file? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853027#3853027 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853027

[JBoss-user] [Beginners Corner] - Re: JBoss 4.0: can't get CMP and Oracle JDBC working

2004-10-27 Thread Raist_Majere
You should have restarted JBoss after placing Oracle-ds.xml on the deploy dir. But before that, have you already copied the jdbc Oracle drivers to the jboss/server/< instance >/lib directory? Try this and tell us your results. View the original post : http://www.jboss.org/index.html?module=bb&

[JBoss-user] [Beginners Corner] - Re: JNDI Binding error

2004-10-27 Thread Raist_Majere
You have to put the correct JNDI name of the Datasource on jboss-web.xml. In your case, your jboss-web.xml file should be: | | | | jdbc/SampleDS | javax.sql.DataSource | java:/jdbc/SampleDS | | | View the original post : http://www.jboss.org/index.html?module=bb&

[JBoss-user] [JCA/JBoss] - Re: Using UserTransaction from a Mbean doesn't commit agains

2004-10-27 Thread Raist_Majere
I've never used what you're trying to do, but in a book I have says that you get access to JTA looking up "java:comp/UserTransaction", not "UserTransaction" as you have in your code. Try it, but don't know if this is the problem you have... View the original post : http://www.jboss.org/index.h

[JBoss-user] [HTTPD, Servlets & JSP] - Re: WebService Work, Servlet deploys, but can't locate

2004-10-27 Thread Raist_Majere
Can you provide your web.xml, jboss-web.xml and/or application.xml? If you deployed it as a WAR and have no jboss-web.xml, provide de WAR file name, please. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853019#3853019 Reply to the post : http://www.jboss.o

[JBoss-user] [Persistence & CMP/JBoss] - Re: Problem with remove()

2004-10-27 Thread Raist_Majere
Can you provide the stack trace of this exception, as well as the source code of ejbRemove of the implied beans and the ejb-jar.xml file, please? That could help... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853017#3853017 Reply to the post : http://www

[JBoss-user] [EJB/JBoss] - Re: CMP - failed to retrieve data from database - but NO exc

2004-10-27 Thread Raist_Majere
I think I've found where your problem really is, but I'm not sure at all... In your bean, you have this tag: | * @jboss.persistence | * datasource="java:/jdbc/dev01" | * datasource-mapping="mySQL" | * create-table="False" | * remove-table="False" | * table-name="GROUPS" | Note

[JBoss-user] [Beginners Corner] - Re: running servlet with JBoss Please Help

2004-10-27 Thread Raist_Majere
Hi. I haven't used JBuilder X, but I'll try to figure out with the answers to these questions: - Do you use an EAR file to package your web-app or just a WAR one? If it's the second option, can you tell us the name of that file (like .war)? - Is this file properly deployed? You should look fo

[JBoss-user] [Beginners Corner] - Re: build the ejb jar file

2004-10-26 Thread Raist_Majere
You must set cmpversion="2.0" property on ejbjar task in order to make Ant look for jbosscmp-jdbc.xml file instead of jaws.xml, the one used with CMP version 1 in JBoss. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852860#3852860 Reply to the post : http:

[JBoss-user] [Beginners Corner] - Re: running servlet with JBoss Please Help

2004-10-24 Thread Raist_Majere
Hi again. Copy here your web.xml and jboss-web.xml files at least. You can also copy console output stack tracing if you think it can be useful. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852500#3852500 Reply to the post : http://www.jboss.org/index.htm

[JBoss-user] [Persistence & CMP/JBoss] - Re: Another Problem - table mapping

2004-10-23 Thread Raist_Majere
If you use EJB 1.1 on JBoss, you should include jaws.xml instead of jbosscmp-jdbc.xml one, which is used for EJB 2.0/2.1. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852450#3852450 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&

[JBoss-user] [Persistence & CMP/JBoss] - Re: Max function error in ejb-ql

2004-10-23 Thread Raist_Majere
The problem is that finder methods can only return instances or collections of instances of the entity bean where the finder is, and max(a.id) returns an ID, not an instance. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852447#3852447 Reply to the post :

[JBoss-user] [Persistence & CMP/JBoss] - Re: Sporadic CMP insert failures from LOB columns

2004-10-23 Thread Raist_Majere
Don't know if you have already tried it, but on a webapp I did last year using Oracle 9i, CMP and BLOBs, I had to use the OCI jdbc driver for my app to work (I'm sorry but I don't know if when you say "thick driver" you are referring to the OCI one). Hope this helps. If that's not the case, try p

[JBoss-user] [Persistence & CMP/JBoss] - Re: TransactionRolledBackException, IllegalStateException, J

2004-10-23 Thread Raist_Majere
Please provide ejb-jar.xml and other usefull config files/source classes to help you. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852437#3852437 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852437 ---

[JBoss-user] [EJB/JBoss] - Re: ejb home method doubt -- plz help

2004-10-23 Thread Raist_Majere
I've posted you a possible solution on the other topic you posted on Begginers Corner http://www.jboss.org/index.html?module=bb&op=viewtopic&t=55620 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852436#3852436 Reply to the post : http://www.jboss.org/index.h

[JBoss-user] [Beginners Corner] - Re: running servlet with JBoss Please Help

2004-10-23 Thread Raist_Majere
You must provide some feedback if you want somebody to help you, 'cause with the information you provided I'm sure not much people could. Post, at least, the web.xml file and tell us how you deploy your servlet (packaged war or ear). If you have other information you think it could be usefull, p

[JBoss-user] [Beginners Corner] - Re: ejb home method doubt -- plz help -- urjent

2004-10-23 Thread Raist_Majere
At first sight, I think your problem is on your naming convention used for that method. Instead of: | public Collection getselectedusers() | throws RemoteException; | you should write: | public Collection getSelectedUsers() | throws RemoteException; | in your home interface. An

[JBoss-user] [EJB/JBoss] - Re: CMP - failed to retrieve data from database - but NO exc

2004-10-21 Thread Raist_Majere
I've seen an error in your code: you try to retrieve a local home interface in the same way you retrieve a remote home interface. Your code is: | context = new InitialContext(); | Object ref = context.lookup(groupJNDI); | home = (GroupLocalHome)PortableRemoteObject.narrow(ref, groupLocalHo

[JBoss-user] [Beginners Corner] - Re: zip exception: error in opening zip file

2004-10-21 Thread Raist_Majere
Try opening the ear file with WinZip or similiar program. If winzip complains that the file cannot be opened, then the file is probably corrupted and you should deploy another working copy of that file. If the file is not corrupted, sometimes happened to me that the temp files of previous deploy

[JBoss-user] [Performance Tuning] - Re: best approach

2004-09-16 Thread Raist_Majere
Just a comment of something that happened to me that nearly got me crazy till I discovered it: if you want to use blobs larger than 8kb, you must use OCI jdbc driver instead of thin one. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848532#3848532 Reply to