[JBoss-user] SQLException : table not found
Title: SQLException : table not found Hello, could someone help me? I will explain my problem : I'm using JBoss 2.0 final on Windows 2000 service pack 1 with Mysql 3.23.33 on a pentium III with 390 MB RAM. OS : Windows 2000 Service Pack 1 JBoss : JBoss 2.0 final JDK : java 2 sdk 1.3 J2EE : java 2 sdk enterprise edition 1.2.1 DBMS : MySQL 3.23.33 JDBC : mm.mysql-2.0.4-bin.jar I have created a database RailTrackerDB and I'd like to use it in my EJB's. When I start JBoss, I can see that it connects to mysql and to the right database. In that database, there is a table CL. I have an EJB Customer that access to the table CL. When I use this EJB on the sun J2EE reference implementation, it's all right; but when I try on JBoss, it tells me that it can't find the table CL. What can I do to make him find this table ??? Is is a security problem ??? here is the error message : Erreur : java.sql.SQLException: Table not found: CL in statement [SELECT CLUID, CLID, SYNWID, CLNM, CLNMAB, CLALIA, CLBAI FROM CL WHERE CLID = '0211' AND SYNWID = 'ZR' ] java.sql.SQLException: Table not found: CL in statement [SELECT CLUID, CLID, SYNWID, CLNM, CLNMAB, CLALIA, CLBAI FROM CL WHERE CLID = '0211' AND SYNWID = 'ZR' ] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122) at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown Source) at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:175) at $Proxy1.getMinimumDetail(Unknown Source) at com.RailTracker.Client.CL.init(CL.java:27) at com.RailTracker.Client.CL.main(CL.java:41) thanks to help me. Jean-François
[JBoss-user] Problem with PrimaryKey Class Conversion
Hi, I have some problems with my FindByPrimaryKey method (cf. SERVER.LOG). Maybe the deployers files (EJB-JAR and JAWS) are false. Thanks very much in advance, Sylvain Tourriere - My config : - JBOSS 2.0 running on my desktop (Windows2000) - Database : mySQL (v 3.23.35a) on my desktop My database : mysql desc im_url; ++-+--+-+-+---+ | Field | Type| Null | Key | Default | Extra | ++-+--+-+-+---+ | id | int(10) | | PRI | 0 | | | host | text| | | | | | host_name | varchar(30) | YES | | NULL| | | method | varchar(4) | YES | | NULL| | | frequency | int(10) | YES | | NULL| | | threshold | int(10) | YES | | NULL| | | begin_day | varchar(10) | YES | | NULL| | | end_day| varchar(10) | YES | | NULL| | | begin_time | datetime| YES | | NULL| | | end_time | datetime| YES | | NULL| | | user_name | varchar(15) | | | | | | parameters | text| YES | | NULL| | | bench | tinyint(1) | YES | | 0 | | | stamp | datetime| YES | | NULL| | ++-+--+-+-+---+ 14 rows in set (0.08 sec) my Data : Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-1999 Microsoft Corp. C:\cd mysql C:\mysqlmysql 'mysql' n'est pas reconnu en tant que commande interne ou externe, un programme excutable ou un fichier de commandes. C:\mysqlcd bin C:\mysql\binmysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4 to server version: 3.23.35a Type 'help;' or '\h' for help. Type '\c' to clear the buffer mysql use IMonitor Database changed mysql desc im_url - ; ++-+--+-+-+---+ | Field | Type| Null | Key | Default | Extra | ++-+--+-+-+---+ | id | int(10) | | PRI | 0 | | | host | text| | | | | | host_name | varchar(30) | YES | | NULL| | | method | varchar(4) | YES | | NULL| | | frequency | int(10) | YES | | NULL| | | threshold | int(10) | YES | | NULL| | | begin_day | varchar(10) | YES | | NULL| | | end_day| varchar(10) | YES | | NULL| | | begin_time | datetime| YES | | NULL| | | end_time | datetime| YES | | NULL| | | user_name | varchar(15) | | | | | | parameters | text| YES | | NULL| | | bench | tinyint(1) | YES | | 0 | | | stamp | datetime| YES | | NULL| | ++-+--+-+-+---+ 14 rows in set (0.08 sec) mysql select id from im_url; Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-1999 Microsoft Corp. C:\cd mysql C:\mysqlmysql 'mysql' n'est pas reconnu en tant que commande interne ou externe, un programme excutable ou un fichier de commandes. C:\mysqlcd bin C:\mysql\binmysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4 to server version: 3.23.35a Type 'help;' or '\h' for help. Type '\c' to clear the buffer mysql use IMonitor Database changed mysql desc im_url - ; ++-+--+-+-+---+ | Field | Type| Null | Key | Default | Extra | ++-+--+-+-+---+ | id | int(10) | | PRI | 0 | | | host | text| | | | | | host_name | varchar(30) | YES | | NULL| | | method | varchar(4) | YES | | NULL| | | frequency | int(10) | YES | | NULL| | | threshold | int(10) | YES | | NULL| | | begin_day | varchar(10) | YES | | NULL| | | end_day| varchar(10) | YES | | NULL| | | begin_time | datetime| YES | | NULL| | | end_time | datetime| YES | | NULL| | | user_name | varchar(15) | | | | | | parameters | text| YES | | NULL| | | bench | tinyint(1) | YES | | 0 | | | stamp | datetime| YES | | NULL| | ++-+--+-+-+---+ 14 rows in set (0.08 sec) mysql select id from im_url; +-+ | id | +-+ | 100 | +-+ mysql Client coding : ... UrlPK myUrlPK = new UrlPK(100); Url mySecondUrl = myUrlHome.findByPrimaryKey(myUrlPK); ...
Re: [JBoss-user] Few doubts regarding container code??
Hello Chris, Thanks for the information. BTW, can you please tell me where to find these kind of details ? Like i look in to the docs but could'nt find it.. am i missing something? Thanks Naresh "Kimpton,C (Chris)" wrote: Hi, -Original Message- From: Naresh Sharma [mailto:[EMAIL PROTECTED]] 1) In weblogic developer has to provide a standard jar(which contains your bean code) to ejbc compiler, which generates another jar file(deployable, this jar contains all the code generated by container). how this is done in JBoss??? where does container code resides and when it is being generated? 2) When client calls any Remote method how does it gets the stubs?? JBoss is way cooler! It uses the Dynamic Proxy facilities of Java to remove the need for application specific stubs. Thus on the client (in jboss-client.jar) the EJBObject dynamically looks like your remote interface, this then talks to the server which dynamically talks to your implementation. Thus there are no application specific stubs - just generic jboss ones that can handle any remote objects. So, with jboss, you can deploy your jar directly - no need to re-compile it to add any custom code. HTH, Chris This electronic message (email) and any attachments to it are subject to copyright and are sent for the personal attention of the addressee. Although you may be the named recipient, it may become apparent that this email and its contents are not intended for you and an addressing error has been made. This email may include information that is legally privileged and exempt from disclosure. If you have received this email in error, please advise us immediately and delete this email and any attachments from your computer system.Rabobank International is the trading name of Coperatieve Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. Registered with the Registrar of Companies for England Wales No. BR002630 and regulated by the SFA for the conduct of investment business in the UK. The presence of this footnote also confirms that this email has been automatically checked by Rabobank International for the presence of computer viruses prior to it being sent, however, no guarantee is given or implied that this email is virus free upon delivery. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] modifieng the cdEJB.zip
Hello! Maybe someone can help me! I?m new to JBoss, so I used the example (cdEJB) as a starting point for developing my own beans. The examples works fine, so I?ve tried to modify them to create an own cmp-entity-bean. I just changed the names of the method and the beans. After that i modified the xml files in the META-INF directory. Compiling and creating the jar works fine, but I can?t deploy the bean. I dont?t understand the error-messages, my PersonBean implements javax.ejb.EntityBean interface!! I have not changed the create() methods and my primkey field is the same as in the cdEJB.jar [Verifier] Bean : PersonBean Section: 9.2.2 Warning: The entity bean's class must implement, directly or indirectly, the javax.ejb.EntityBean interface. [Verifier] Bean : PersonBean Method : public void ejbCreate() Section: 9.2.3 Warning: The return type of an ejbCreate(...) method must be the entity bean's primary key type. [Verifier] Bean : PersonBean Method : public void ejbCreate() Section: 9.2.4 Warning: For each ejbCreate(...) method, the entity bean class must define a matching ejbPostCreate(...) method. [Verifier] Bean : PersonBean Section: 9.4.7.1 Warning: The primkey-field element must name a public field in the bean implementation class. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] ECPerf project
Lest you think me an Oracle bigot, I must point out that I don't really like Oracle. It's grossly overpriced and cumbersome to manage. My favourite database is Hmm, let me guess Peter.versioning engine, open source, ;-) Interbase. For a great number of technical reasons I regard it as markedly superior, but like InstantDB and Cloudscape, for the purposes of promoting JBoss it is insignificant. Probably the most important database servers from a promotional point of view would be DB2/400, Oracle 8i, Sybase and M$ SQL Server. OK, This is strictly for JBoss itself running on Win2K... I'll be happy to contribute to the MS SQL Server ECPerf work for MSSQL2K (maybe MSSQL7 too). I can't promise for Oracle 8/9 but I'll try if time permits. It's just that Oracle demands so much time for caring and fussing... Micheal ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Few doubts regarding container code??
Hi, -Original Message- From: Naresh Sharma [mailto:[EMAIL PROTECTED]] BTW, can you please tell me where to find these kind of details ? Like i look in to the docs but could'nt find it.. am i missing something? Yep - try looking harder... ;-) http://www.jboss.org/documentation/HTML/ch08s04.html For more on dynamic proxies - try http://java.sun.com HTH, Chris PS - TO JBOSS website maintainers... for us crippled greedy corporate types, stuck with IE4-sp2(NT4-sp3) that we have no power to upgrade, the "New JBoss manual" link on this page; http://www.jboss.org/business/doco.html still doesn't work - luckily view source does and so I can enter it manually... This electronic message (email) and any attachments to it are subject to copyright and are sent for the personal attention of the addressee. Although you may be the named recipient, it may become apparent that this email and its contents are not intended for you and an addressing error has been made. This email may include information that is legally privileged and exempt from disclosure. If you have received this email in error, please advise us immediately and delete this email and any attachments from your computer system.Rabobank International is the trading name of Coperatieve Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. Registered with the Registrar of Companies for England Wales No. BR002630 and regulated by the SFA for the conduct of investment business in the UK. The presence of this footnote also confirms that this email has been automatically checked by Rabobank International for the presence of computer viruses prior to it being sent, however, no guarantee is given or implied that this email is virus free upon delivery. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] ECperf project
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tom Coleman Sent: 04 April 2001 16:47 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] ECperf project Probably the most important database servers from a promotional point of view would be DB2/400, Oracle 8i, Sybase and M$ SQL Server. Agreed. The choice of DB, and it's configuration, will dramatically impact ECperf results. Here are the priorities the way I see them: 1) Get ECperf running. Somewhere. period. 2) Get it running with JBoss 3) Use it internally to monitor impact of modifications to JBoss sources. 4) Provide JBoss deployment to allow users to measure JBoss performance. According to the ECperf license, we can't "promote" based on the results. The best we can do is provide a simple framework to allow users to produce their own benchmark results. This is what a sophisticated user (our kind of user) would want to do anyhow. Cloudscape will work fine in steps 1-3. Except that often the different DB engines will often demand different optimisations. Nope, we need a representative set of DB engines to make (3) worth doing **in the long run**. (i.e. to do it really well) At least add Interbase and Oracle. They can likely run on our JBoss server machine - using the _free_ Oracle Linux developer license (is it still free?). I'd like to say add MSSQL Server but I guess it's up to Win2k'ers like me to provide the results on a regular basis... Although it is a big issue, we can easily postpone the problems of dealing with the big, expensive DB's until later in the project. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Error in the Jboss
Hi all , i am using JBoss2.1 , Tomcat3.2.1 and jdk1.3 . I have a module which session ejb bean that will create company : below is the code public void addCompanyUsers(int adminid,UserCompanyJB usercompanyJB ) throws RemoteException,FinderException,CreateException,UserException { seqkey = seqkeyHome.create(); - this is the session bean which will autogenerate primary keys if(isUserIsAdmin(adminid)){ int k = seqkey.executeSQLStatement ("Select NEXTVAL('usercompany_seq') from usercompany_seq"); usercompanyJB.setCompanyid(k); usercompanyHome.create(usercompanyJB); } else throw new UserException("Only Admin can add new company"); } When the users create the company over and over again , the web browser will have not response. below is the message in jboss : Transaction XidImpl[FormatId=257,GlobalId=point6.cesma.com.sg//37,BranchQual=] timeout.Status =STATUS_ACTIVE. What is happening in jboss ? I have include my ejb jar also. Anybody have any ideas ?? Thanks wt sequencekey.jar userproject.jar
RE: [JBoss-user] Can I find a Deployment tool?
3 min... -Original Message- From: Lennart Petersson [mailto:[EMAIL PROTECTED]] Sent: 4. april 2001 13:13 To: [EMAIL PROTECTED] Subject: SV: [JBoss-user] Can I find a Deployment tool? Ejbdoclet is my suggestion. Works very well for us. Ok it is not a graphical one but still ok. Look at: http://sourceforge.net/projects/ejbdoclet/ We have built an environment where we are using Ant, Ejbdoclet and soon also JBoss verifier to make everything very trivial to our developers. /Lennart - Original Message - From: Rajeev Bacchu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 04, 2001 12:07 PM Subject: RE: [JBoss-user] Can I find a Deployment tool? Hey, Copying a file is not the tough part, the clumsy part that can be disliked is to deal with all those xml tags, especially when we have a big bag of beans being developed, it makes a lot of sense during the development time when people are making changes deploying and redeploying things. EJX looks OK, I hope it will improve in the future. -RawLife. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, April 04, 2001 12:37 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Can I find a Deployment tool? Oh yes, everything but not the deployment. But copy a file to another directory is not too difficult, is it? ;) -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Vincent Harcq Envoy : mardi 3 avril 2001 20:19 : [EMAIL PROTECTED] Objet : RE: [JBoss-user] Can I find a Deployment tool? Hi, EJX is the GUI tool To start it simply double click ejx.jar under bin/ (Windows) or run a script java -jar ejx.jar (Unix) Vincent -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Rajeev Bacchu Envoy : mardi 3 avril 2001 12:51 : jboss Objet : [JBoss-user] Can I find a Deployment tool? Hi, Is'nt there a GUI deployment tool for JBoss that can take inputs, compose deployment descriptors, bundle all the classes, resources into a jar and deploy it, Like what comes with Sun's J2EE Reference implementation? having to write all the deployment descriptors in xml then putting them all in a jar through command lines and deploying the apps seem to be cumbersome. Is there an easy way out? -RawLife. _ Care a click for Nature? http://rainforest.care2.com/i?p=691557508 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] ejbStore and finder method
I would tend to agree with that. IMHO no commit means that you can rollback. It does not mean that you don't perform any actions what so ever. I guess the server could take one of two approaches (or both and leave the option to the developer): - use the rollback capabilities of the underlying datastore. This means performing updates and creates straight away to the database, which performance-wise is not great. - maintain the state at the server level with some kind of caching. This means performing updates and creates to the datastore only if there is no rollback required and commit straight after. That would probably provide better performance, but the caching layer seems to have to be fairly complexe to me. In both cases, I think you should be able to find an entity you have created in the same transaction. Do I make sens here or is there something I have not considered? Emmanuel - Original Message - From: "Dan Christopherson" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 04, 2001 4:31 PM Subject: RE: [JBoss-user] ejbStore and finder method I'm not so sure it's that simple, Marc. WRT to CMP created bean especially, the 1.1 spec indicates that the bean's state should be pushed into the database as part of the 'create' call. Shouldn't custom finders then find it? Assuming that the database allows a transaction to see what it has already done, that is. As for the problem where the customer finders come in, shouldn't the container do a cache look-aside sort of a thing? Oof, it then has to make sure transactions match, doesn't it. But the (InstanceInterceptor? TxInterceptor? one or the other) will block if the transactions don't match. A agree, obviously, that no commit means no commit, but I think it's reasonable to expect a transaction to see its own work. Implementing this look aside would require a bit of an egg-shell walk, perhaps. On Wed, 4 Apr 2001, marc fleury wrote: |Or is it simply not part of the spec? by definition, no commit - no commit marc ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user -- Dan Christopherson (danch) nVisia Technical Architect (www.nvisia.com) Opinions expressed are mine and do not neccessarily reflect any position or opinion of nVISIA. -- - If you're a capitalist and you have the best goods and they're free, you don't have to proselytize, you just have to wait. -Eben Moglen ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] newbie problem
Hi there! I am new to JBoss and just trying it. The server ist running well with embedded TomCat. I'm using JBoss 2.1 with Tomcat 3.2.1 on a Win2k-machine. But I have problems with deploying EJBs on JBoss. I was following the instructions shown in the documentation "Beginning EJB programming using JBoss" with the interest-example. Everything goes fine but when I copy the interest.jar-file into the /dist/deploy-directory I get following error: . . . [J2EE Deployer Default] Create application interest.jar [J2EE Deployer Default] install module interest.jar [Container factory] Deploying:file:/z:/JBoss/jboss-tomcat-2.1-beta/ jboss-2.1/tmp/deploy/Default/interest.jar [Container factory] org.jboss.ejb.DeploymentException: Error in ejb-jar.xml for Entity Bean null: expected one ejb-name tag [Container factory] org.jboss.metadata.ApplicationMetaData.importEjbJarXML (ApplicationMetaData.java:109) . . . It seems that the container can't find an ejb-name tag, although I have one in my ejb-jar.xml (see below). My ejb-jar.xml: ?xml version="1.0" encoding="Cp1252"? ejb-jar descriptionjBoss test application /description display-nameTest/display-name enterprise-beans session ejb-nameInterest/ejb-name homecom.web_tomorrow.interest.InterestHome/home remotecom.web_tomorrow.interest.Interest/remote ejb-classcom.web_tomorrow.interest.InterestBean/ejb-class session-typeStateless/session-type transaction-typeBean/transaction-type /session /enterprise-beans /ejb-jar My question now ist, why doesn't the container find the tag and why does he look "for Entity Bean null"?? Thanks in advance Thomas ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] SQLException : table not found
The very same problem i faced in my BMP entity bean that was due to datasource and pool...and as a temporary solution i used 'DefaultDS'(in jboss.jcml) instead of my own pool. -Naresh Jean-Francois Henrard wrote: Hello, could someone help me? I will explain my problem : I'm using JBoss 2.0 final on Windows 2000 service pack 1 with Mysql 3.23.33 on a pentium III with 390 MB RAM. OS : Windows 2000 Service Pack 1 JBoss : JBoss 2.0 final JDK : java 2 sdk 1.3 J2EE : java 2 sdk enterprise edition 1.2.1 DBMS : MySQL 3.23.33 JDBC : mm.mysql-2.0.4-bin.jar I have created a database "RailTrackerDB" and I'd like to use it in my EJB's. When I start JBoss, I can see that it connects to mysql and to the right database. In that database, there is a table "CL". I have an EJB "Customer" that access to the table "CL". When I use this EJB on the sun J2EE reference implementation, it's all right; but when I try on JBoss, it tells me that it can't find the table "CL". What can I do to make him find this table ??? Is is a security problem ??? here is the error message : Erreur : java.sql.SQLException: Table not found: CL in statement [SELECT CLUID, CLID, SYNWID, CLNM, CLNMAB, CLALIA, CLBAI FROM CL WHERE CLID = '0211' AND SYNWID = 'ZR' ] java.sql.SQLException: Table not found: CL in statement [SELECT CLUID, CLID, SYNWID, CLNM, CLNMAB, CLALIA, CLBAI FROM CL WHERE CLID = '0211' AND SYNWID = 'ZR' ] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122) at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown Source) at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:175) at $Proxy1.getMinimumDetail(Unknown Source) at com.RailTracker.Client.CL.init>(CL.java:27) at com.RailTracker.Client.CL.main(CL.java:41) thanks to help me. Jean-Franois
RE: [JBoss-user] Can I find a Deployment tool?
Hi Lennart, Can u tell me where I can find some docs to effectively make use of doclets for the purpose of deployment? That would be of great help. -RawLife. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Thursday, April 05, 2001 3:58 PM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] Can I find a Deployment tool? 3 min... -Original Message- From: Lennart Petersson [mailto:[EMAIL PROTECTED]] Sent: 4. april 2001 13:13 To: [EMAIL PROTECTED] Subject: SV: [JBoss-user] Can I find a Deployment tool? Ejbdoclet is my suggestion. Works very well for us. Ok it is not a graphical one but still ok. Look at: http://sourceforge.net/projects/ejbdoclet/ We have built an environment where we are using Ant, Ejbdoclet and soon also JBoss verifier to make everything very trivial to our developers. /Lennart - Original Message - From: Rajeev Bacchu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 04, 2001 12:07 PM Subject: RE: [JBoss-user] Can I find a Deployment tool? Hey, Copying a file is not the tough part, the clumsy part that can be disliked is to deal with all those xml tags, especially when we have a big bag of beans being developed, it makes a lot of sense during the development time when people are making changes deploying and redeploying things. EJX looks OK, I hope it will improve in the future. -RawLife. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, April 04, 2001 12:37 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Can I find a Deployment tool? Oh yes, everything but not the deployment. But copy a file to another directory is not too difficult, is it? ;) -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Vincent Harcq Envoy : mardi 3 avril 2001 20:19 : [EMAIL PROTECTED] Objet : RE: [JBoss-user] Can I find a Deployment tool? Hi, EJX is the GUI tool To start it simply double click ejx.jar under bin/ (Windows) or run a script java -jar ejx.jar (Unix) Vincent -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Rajeev Bacchu Envoy : mardi 3 avril 2001 12:51 : jboss Objet : [JBoss-user] Can I find a Deployment tool? Hi, Is'nt there a GUI deployment tool for JBoss that can take inputs, compose deployment descriptors, bundle all the classes, resources into a jar and deploy it, Like what comes with Sun's J2EE Reference implementation? having to write all the deployment descriptors in xml then putting them all in a jar through command lines and deploying the apps seem to be cumbersome. Is there an easy way out? -RawLife. _ Care a click for Nature? http://rainforest.care2.com/i?p=691557508 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Petstore deployment problem!! Help
Hi For the last three days I have been trying to deploy the petstore demo with JBoss 2.1 and tomcat 3.2.1 (all according to the "howto") and the patch and now I'm at the point to give up! Is it possible at all??? The problem is when I'm trying to rebuild the jps (with the patch). There is a known bug (been discussed previously here) with the build.xml file and I have corrected that (i.e. include the jbosssx-client.jar file in the classpath). But it still don't work. I got a tips yesterday to exclude the j2ee.jar file when I do that, nothing at all compile so I included the ejb2.0.jar file instead in the class path, it still won't compile (it can not find the javax.ejb.EJBObject according to the exception). So is it possible to deploy the petstore on jboss? What am I missing? Can anyone help me? (I can provide -verbose printout from ant if that would help but it is faaar to long to include here...) Thank you for your time!!! Cheers Christian ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jsp exception in JBOSS + TOMCAT
Put $JAVA_HOME/lib/tools.jar on your classpath or in $JBOSS_HOME/lib/ext Now when I deploy a JSP in the tomcat and view from the browser it throws the following exception. Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) Please not that I have not included the " jboss/tomcat/lib " in my CLASSPATH. If I do that then the tomcat doesn't start throwing a few more exceptions. Has anyone faced this problems before. Help me Zafer ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Gosh, this is slow !
It looks to me like you are accessing multiple entity beans through individual get methods and that is something you should never, not ever do. It is really, really slow. Depending on the number of addresses, you could be generating a really large number of remote references, going through the whole RMI remote invocation loop over and over. Actually, ten seconds is not bad considering that you are bringing the data into Swing. Here's how you can make it perform: 1. As a general rule don't access entity beans directly from a client. Wrap your entity beans within a stateless session bean. This is especially true when you're accessing data that returns a set. In this case the stateless session bean retrieves the entity beans and packages the data into a vector which it returns to the client. Or, the stateless session bean could retrieve the data and plunk it into a TableModel and send that (serializable) object to the Swing client. In either case, you make the references to the entity bean local and have replaced numerous remote references with just several. This is goodness. The difference in performance will be orders of magnitude. 2. Use bulk get and set operations for retrieving or updating all of the data members of the entiry bean. These methods can be used by the session bean when it retrieves the data. You replace numerous get operations with just one. 3. As a general rule don't use entity beans as wrappers for rows in a database. The intelligent use of an entity bean is as a reusable business object. If you just want to retrieve some rows in a database (especially if it is an ad-hoc query for data) do this in some framework classes that encapsulate the complexities of JDBC and SQL. So, what is the difference between a reusable business object and some rows in a database. I'll offer an example to clarify this point. Let's say that you have something like a customer list and it is used in many different ways in the organization. You want to make sure that it is updated and displayed consistenly throughout the organization. An entity bean is a good way to encapsulate this data. However, rule number 1 still applies. Wrap the access to this entity bean with a stateless session bean. The stateless session bean might also apply some business logic such as are you permitted to view this business object. -Original Message- From: fractals [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 4:48 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] Gosh, this is slow ! OK, this is my first "real" test of JBoss: I tried to make an address book with my own data which consist of ca 300 records. I just want to show the addresses in a JTable, so I use code like so: Object ref = jndiContext.lookup("totg/AddressBook"); AddressBookHome home = (AddressBookHome) PortableRemoteObject.narrow (ref, AddressBookHome.class); AddressBook addressBook = home.create( user.getId () ); VisitCard [] vcards = addressBook.listAll (); java.util.Vector data = new java.util.Vector (); for ( int i=0; ivcards.length; i++ ) { Vector v = new Vector (); v.add ( vcards [i].getFirstname() ); v.add ( vcards [i].getLastname() ); v.add ( vcards [i].getCompany () ); v.add ( vcards [i].getEmail () ); v.add ( vcards [i].getStreetAddress1 () ); v.add ( vcards [i].getStreetNumber () ); v.add ( vcards [i].getCity () ); v.add ( vcards [i].getCountry () ); v.add ( vcards [i].getPhone1 () ); v.add ( vcards [i].getPhone2 () ); data.add ( v ); } DefaultTableModel model = new DefaultTableModel (); Vector columnNames = new Vector (); columnNames.add ( "First name" ); columnNames.add ( "Last name" ); columnNames.add ( "Company" ); columnNames.add ( "E-mail" ); columnNames.add ( "Street address" ); columnNames.add ( "Nr" ); columnNames.add ( "City" ); columnNames.add ( "Country" ); columnNames.add ( "Phone 1" ); columnNames.add ( "Phone2" ); model.setDataVector ( data, columnNames ); addressBookTable.setModel ( model ); ...fairly explicit I think. The whole thing takes approx 10 secs, which is A LOT for something as simple as that. I thought the beans would be instantiated and thus cached for the second time I called them, but nope. But this kind of thing might just not be defaulted, so if someone could hint me on this... Any idea in general to get this thing go faster ? It's quite an essential requirement for me. Thanks in advance, Candide ___ JBoss-user mailing list [EMAIL PROTECTED]
Re: [jetty-discuss] Re: [JBoss-user] jsp-file not recognized for jboss_jetty?
Sorry to take so long to respond, The bundled version of Jetty is 3.0.2, which did not support this type of mapping. Jetty 3.0.4 does support this (since 3.0.3) as does the 3.1 release candidates. I believe a more recent jetty jboss bundle is now available on the jetty sourceforge site at least. cheers Julian Gosnell wrote: I'm forwarding this to the Jetty discussion list for you. You are far more likely to get Jetty related answers there. Incidently, Jetty and Tomcat both use Jasper for their JSP engine, so expect the same behavior under Tomcat. Jules Gerald Gutierrez wrote: Hi all. We are currently using Orion, but with its large number of bugs, I'm evaluating jboss/jetty/tomcat as an alternative J2EE platform. To start, I tried to deploy our website EAR file, which has GIF, HTML and JSP files. The JSP files are described in the descriptors as follows: servlet servlet-nameRootJSP/servlet-name display-nameRootJSP/display-name jsp-file/redirect/redirectionkeys/Root.jsp/jsp-file /servlet servlet-mapping servlet-nameRootJSP/servlet-name url-pattern/root/url-pattern /servlet-mapping Supposedly, when you go to context path/root, you would end up hitting Root.jsp. However, I got the following errors when I deployed the application: [Jetty] Missing servlet-class in servletservlet-nameRootJSP/servlet-namedisplay-nameRootJSP/display- namejsp-file/redirect/redirectionkeys/Root.jsp/jsp-file/servlet [Jetty] No such servlet: RootJSP We have a number of JSP pages, all done the same way, and there are errors for each one. The servlet 2.2 spec says that jsp-file can be used in place of servlet-class when it is a JSP file, so I don't see that we're breaking spec. What's wrong? Gerald. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com Yahoo! Groups Sponsor -~-~ Do you have 128-bit SSL encryption server security? Get VeriSign's FREE Guide, "Securing Your Web Site for Business." Get it now! http://us.click.yahoo.com/2cW4jC/c.WCAA/bT0EAA/CxaWlB/TM -_- For the latest information about Jetty, please see http://jetty.mortbay. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Forking threads in JBoss
Hi Dear all, I try to implement the following scenario within JBoss: Session bean S creates entity bean E. S.eventHandler() calls E.executeRequest(). E is supposed to do some stuff which might take some time and then callback S when it's finished. In the meantime S should continue processing other requests. Here is my problem: Whatever I do, S always waits for E to complete executeRequest(). That's normal if you do not use Thread, no ? I tried a thread subclass within E and called run() in executeRequest() but that does not help (and the EJB spec says I am not supposed to deal with threads). How can I achieve concurrent processing for E.executeRequest() and S.eventHandler()? As you said the spec does not allow using Threads inside an EJB. But it is permitted inside a client class. Maybe the answer to your problem is using a client class ? Or JMS ? Kind regards, Michael Vincent _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
SV: [JBoss-user] Can I find a Deployment tool?
My only source so far has been the Ejbdoclet project at SourceForge and the actual code of it. Then I guess that SUN has a lot of docs on how to use doclets but maybe not specific to code generation. /Lennart - Original Message - From: Rajeev Bacchu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 05, 2001 1:35 PM Subject: RE: [JBoss-user] Can I find a Deployment tool? Hi Lennart, Can u tell me where I can find some docs to effectively make use of doclets for the purpose of deployment? That would be of great help. -RawLife. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] SQLException : table not found
Title: Re: [JBoss-user] SQLException : table not found Thank you Now it's all right. Jean-François. Naresh Sharma wrote : The very same problem i faced in my BMP entity bean that was due to datasource and pool...and as a temporary solution i used 'DefaultDS'(in jboss.jcml) instead of my own pool. -Naresh Jean-Francois Henrard wrote: Hello, could someone help me? I will explain my problem : I'm using JBoss 2.0 final on Windows 2000 service pack 1 with Mysql 3.23.33 on a pentium III with 390 MB RAM. OS : Windows 2000 Service Pack 1 JBoss : JBoss 2.0 final JDK : java 2 sdk 1.3 J2EE : java 2 sdk enterprise edition 1.2.1 DBMS : MySQL 3.23.33 JDBC : mm.mysql-2.0.4-bin.jar I have created a database RailTrackerDB and I'd like to use it in my EJB's. When I start JBoss, I can see that it connects to mysql and to the right database. In that database, there is a table CL. I have an EJB Customer that access to the table CL. When I use this EJB on the sun J2EE reference implementation, it's all right; but when I try on JBoss, it tells me that it can't find the table CL. What can I do to make him find this table ??? Is is a security problem ??? here is the error message : Erreur : java.sql.SQLException: Table not found: CL in statement [SELECT CLUID, CLID, SYNWID, CLNM, CLNMAB, CLALIA, CLBAI FROM CL WHERE CLID = '0211' AND SYNWID = 'ZR' ] java.sql.SQLException: Table not found: CL in statement [SELECT CLUID, CLID, SYNWID, CLNM, CLNMAB, CLALIA, CLBAI FROM CL WHERE CLID = '0211' AND SYNWID = 'ZR' ] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122) at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown Source) at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:175) at $Proxy1.getMinimumDetail(Unknown Source) at com.RailTracker.Client.CL.init(CL.java:27) at com.RailTracker.Client.CL.main(CL.java:41) thanks to help me. Jean-François
[JBoss-user] CMP Config Problem
Hi, Just a quick question! [jboss2.1, jdk1.3, NT] I am attempting to get CMP working with hsql. I have added the following lines to my jboss.conf file (as per the guide): MLET CODE="org.jboss.jdbc.XADataSourceLoader" ARCHIVE="jboss.jar" CODEBASE="../../lib/ext/" ARG TYPE="java.lang.String" VALUE="hsqlDB" ARG TYPE="java.lang.String" VALUE="org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl" ARG TYPE="java.lang.String" VALUE="jdbc:HypersonicSQL:hsql://localhost:1521" ARG TYPE="java.lang.String" VALUE="sa" ARG TYPE="java.lang.String" VALUE="" ARG TYPE="java.lang.String" VALUE="" ARG TYPE="java.lang.Integer" VALUE="2" ARG TYPE="java.lang.Integer" VALUE="5" ARG TYPE="java.lang.String" VALUE="GCEnabled=true;ShrinkingEnabled=true;GCMinIdleTime=3;GCInterval=1 ;ShrinkMinIdleTime=3" /MLET but get the folloing error: ** Information in this email is confidential and may be privileged. It is intended for the addressee only. If you have received it in error, please notify the sender immediately and delete it from your system. You should not otherwise copy it, retransmit it or use or disclose its contents to anyone. Thank you for your co-operation. ** ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Apache and JBoss with embedded Tomcat HOWTO
I know this topic has been discussed over and over on this mailing list but I wondering if anyone has a written a HOWTO to connect Apache to JBoss with embedded Tomcat. Thanks in advance Eoin ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CMP Config Problem
SORRY ABOUT THE LAST POST. Hi, Just a quick question! [jboss2.1, jdk1.3, NT] I am attempting to get CMP working with hsql. I have added the following lines to my jboss.conf file (as per the guide): MLET CODE="org.jboss.jdbc.XADataSourceLoader" ARCHIVE="jboss.jar" CODEBASE="../../lib/ext/" ARG TYPE="java.lang.String" VALUE="hsqlDB" ARG TYPE="java.lang.String" VALUE="org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl" ARG TYPE="java.lang.String" VALUE="jdbc:HypersonicSQL:hsql://localhost:1521" ARG TYPE="java.lang.String" VALUE="sa" ARG TYPE="java.lang.String" VALUE="" ARG TYPE="java.lang.String" VALUE="" ARG TYPE="java.lang.Integer" VALUE="2" ARG TYPE="java.lang.Integer" VALUE="5" ARG TYPE="java.lang.String" VALUE="GCEnabled=true;ShrinkingEnabled=true;GCMinIdleTime=3;GCInterval=1 ;ShrinkMinIdleTime=3" /MLET but get the folloing error on startup: [Service Control] Registered with server java.lang.NoSuchMethodException: No such constructor at com.sun.management.jmx.MBeanServerImpl.internal_instantiate(MBeanServerImpl. java:2207) at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:761) at javax.management.loading.MLet.getMBeansFromURL(MLet.java:540) at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369) at org.jboss.Main.init(Main.java:173) at org.jboss.Main$1.run(Main.java:107) at java.security.AccessController.doPrivileged(Native Method) at org.jboss.Main.main(Main.java:103) Is this something obvious to you guys? Thanks, Richard ** Information in this email is confidential and may be privileged. It is intended for the addressee only. If you have received it in error, please notify the sender immediately and delete it from your system. You should not otherwise copy it, retransmit it or use or disclose its contents to anyone. Thank you for your co-operation. ** ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Writing a finder which returns max id used
What about java.rmi.server.UID? It has a hashCode() method that returns an integer. -Original Message- From: Peter Routtier-Wone [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 11:45 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Writing a finder which returns max id used You can also use the facilities of the database engine to help with this problem. Oracle has sequences which guarantee a unique number even with concurrent access. Sybase has autoincrement columns. Use of the database as a UID dispenser has its merits with respect to the concurrency issue, but it raises portability issues. Another possibility is one of the few really good ideas to come out of Redmond - the GUID. GUIDs are unique in space and time. The first eight bytes are a machine identifier (based on the MAC address of your network interface, if I remember correctly) and the second eight bytes are a timestamp. The benefit of this approach is that it is not necessary to contact any other computer to derive a unique value. The downside is that string comparisons - and worse yet string based indexes - are *expensive*. But they are seldom as expensive as contacting another machine, or rolling back and re-running a transaction. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Re: Tradeoffs: Running Tomcat separately from JBoss?
There is tons of documentation available on getting tomcat working with apache, so I'm assuming that is not an issue. Now on to jboss. I have it running on a separate server, but that is unimportant. To separate business logic from presentation (because we have creative types doing presentation and the left-brained programmers doing the business logic), I put all communication with the ejbs into simple java beans. These use the standard jndi lookup techniques to communicate with the ejb's under jboss. Then the JSPs running under tomcat simply use the useBean construct to instantiate the beans. Which part are you having difficulty with? The instructions for JBoss/Tomcat/Apache are confusing me. It talks about embedded Tomcat. It also says that JBoss source comes with prebuilt version of the tomcat-service.jar. What is embedded Tomcat? and how does the prebuilt version of tomcat-service work? I am comfortable with installing Tomcat standalone. It's just the integration with JBoss that is confusing. If I don't want to have them running in the same VM I assume I should follow these steps 1. Build JBoss from Src (run in it's own VM) 2. Build Tomcat from Src (run in it's own VM) 3. Use JNDI to call EJB's from Servlets running under Tomcat But, JBoss contains a "prebuilt version on tomcat-service.jar" where does this come into play? ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
SV: [JBoss-user] CMP Config Problem
That was a hard one to solve ;-) Seems like the error is so confidential that it has been erased from the mail! Try again :-) - Original Message - From: Taylor, Richard [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 05, 2001 2:44 PM Subject: [JBoss-user] CMP Config Problem but get the folloing error: ** Information in this email is confidential and may be privileged. It is intended for the addressee only. If you have received it in error, please notify the sender immediately and delete it from your system. You should not otherwise copy it, retransmit it or use or disclose its contents to anyone. Thank you for your co-operation. ** ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Gosh, this is slow !
whole RMI remote invocation loop over and over. Actually, ten seconds is not bad considering that you are bringing the data into Swing. Have somebody tried that with WebLogic. It is not 10 seconds but 10 minutes ;) It is not "not bad", it is EXCELENT ! (A free compliment is not a free contribution, but may this makes you all developers feel happy) Vincent. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] newbie problem
- Original Message - From: "Thomas Sutter" [EMAIL PROTECTED] To: "Emmanuel Sciara" [EMAIL PROTECTED] Sent: Thursday, April 05, 2001 2:18 PM Subject: Re: [JBoss-user] newbie problem The jboss.xml looks like following: ?xml version="1.0" encoding="Cp1252"? jboss securefalse/secure enterprise-beans session ejb-nameInterestBean/ejb-name jndi-nameinterest/Interest/jndi-name configurationDefault Stateless SessionBean/configuration /session /enterprise-beans /jboss I was able to deploy the example in the meantime, but I don't know why Here we go! Your ejb-name should be Interest, not InterestBean! Could it be, that JBoss is a bit like magic? Jboss *is* magic, but in different way ;) I have changed the transaction-type to Container and then I was able to deploy the example and run the client. But I really wanted to know if it was the transaction-type that let me waste 2 days of that wonderful life. So I changed it back to Bean and the deployment was succesfull too. With other words I don't know why I'm now able to deploy. I tested almost every combination of variables but I always can deploy. My wild guess is that more stuff is done being the woods during deployement of Bean managed transactions. So I don't think about it longer, but simply enjoy the sunny weather!! Your lucky. It's rainning in London. You should nevertheless try checking whether the ejb-name was the problem. Just to be sure. Thanks for helping, Gruessdich! Emmanuel Emmanuel Sciara schrieb: Do you have a jboss.xml file along with your ejb.xml? As a side question, are you sure you want transactions to be Bean managed? If not you better change you transaction type to Container. Hope this helps Emmanuel - Original Message - From: "Thomas Sutter" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 05, 2001 11:47 AM Subject: [JBoss-user] newbie problem Hi there! I am new to JBoss and just trying it. The server ist running well with embedded TomCat. I'm using JBoss 2.1 with Tomcat 3.2.1 on a Win2k-machine. But I have problems with deploying EJBs on JBoss. I was following the instructions shown in the documentation "Beginning EJB programming using JBoss" with the interest-example. Everything goes fine but when I copy the interest.jar-file into the /dist/deploy-directory I get following error: . . . [J2EE Deployer Default] Create application interest.jar [J2EE Deployer Default] install module interest.jar [Container factory] Deploying:file:/z:/JBoss/jboss-tomcat-2.1-beta/ jboss-2.1/tmp/deploy/Default/interest.jar [Container factory] org.jboss.ejb.DeploymentException: Error in ejb-jar.xml for Entity Bean null: expected one ejb-name tag [Container factory] org.jboss.metadata.ApplicationMetaData.importEjbJarXML (ApplicationMetaData.java:109) . . . It seems that the container can't find an ejb-name tag, although I have one in my ejb-jar.xml (see below). My ejb-jar.xml: ?xml version="1.0" encoding="Cp1252"? ejb-jar descriptionjBoss test application /description display-nameTest/display-name enterprise-beans session ejb-nameInterest/ejb-name homecom.web_tomorrow.interest.InterestHome/home remotecom.web_tomorrow.interest.Interest/remote ejb-classcom.web_tomorrow.interest.InterestBean/ejb-class session-typeStateless/session-type transaction-typeBean/transaction-type /session /enterprise-beans /ejb-jar My question now ist, why doesn't the container find the tag and why does he look "for Entity Bean null"?? Thanks in advance Thomas ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Apache and JBoss with embedded Tomcat HOWTO
http://www.jboss.org/business/jboss-tomcat.html contains info on embedded Tomcat but does not go into depth on how to configure Apache. I think there is an Apache-Tomcat howto on the web though. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of 195.12.228.51 Sent: Thursday, April 05, 2001 8:46 AM To: Jboss-User Subject: [JBoss-user] Apache and JBoss with embedded Tomcat HOWTO I know this topic has been discussed over and over on this mailing list but I wondering if anyone has a written a HOWTO to connect Apache to JBoss with embedded Tomcat. Thanks in advance Eoin ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Apache and JBoss with embedded Tomcat HOWTO
Assuming your using the latest version of JBoss w/Embedded Tomcat, you can find info on hooking Apache in at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html In other words, it's no different than using Tomcat in standalone mode. -- Dewayne I know this topic has been discussed over and over on this mailing list but I wondering if anyone has a written a HOWTO to connect Apache to JBoss with embedded Tomcat. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Solving Oracle Connection Pool Hanging
I too have suffered from the Oracle Connection Pool hanging JBoss 2.1 on startup. By adding the following line to the Datasource mbean (in jboss.jcml), the exact error is displayed in the JBoss output. attribute name="LoggingEnabled"true/attribute In my case it was an incorrect database instance that caused the connection pool to hand [OraclePool] Starting [OraclePool] XA Connection pool OraclePool bound to java:/OraclePool [OraclePool] java.sql.SQLException: Io exception: Connection refused(DESCRIPTION =(TMP=)(VSNNUM=135294976)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4) ))) [OraclePool] Pool OraclePool factory org.opentools.minerva.jdbc.xa.XAConnectionF actory@6ac461 unable to create new object! [OraclePool] Pool OraclePool [0/0/10] waiting for a free object Surely this is a problem in JBoss! So the connection pool couldn't connect to Oracle - causing JBoss to hang while it was waiting for a free connection, which could never be returned cos the connection failed! Tim ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jsp compile problem.
I have deployed my .ear in jboss+tomcat. All seemed good. When I hit http://localhost:8080/pip/User.jsp I got a compilation error: org.apache.jasper.JasperException: Unable to compile class for JSPC:\Java\jboss-tomcat-2.1-beta\jakarta-tomcat-3.2.1\work\localhost_8080%2F stampede\_0002fUser_0002ejspUser_jsp_0.java:15: Package net.indaco.pip not found in import. import net.indaco.pip.*; ^ 1 error at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) net.indaco.pip is the package I store my ejb. What's the problem? Thx Francesco ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Examples from Enterprise JavaBeans, by Richard Monson-Haefel
Hi, I try to deploy Cabin TravelAgent bean in JBoss2.1 container. I use Sybase ASA 6.x as database. When I deploy these beans I see following in the server log: ... [JAWS] Loading standardjaws.xml : file:/D:/jboss/jboss-tomcat-2.1-beta/jboss-2.1/conf/default/standardjaws.xml [JAWS] Table CabinBean created [JAWS] Created table 'CabinBean' successfully. [JAWS] Primary key of table 'CabinBean' is 'null' ... And when I try to run Client_1 I get: [JAWS] com.sybase.jdbc2.jdbc.SybSQLException: ASA Error -195: column 'name' in table 'CabinBean' cannot be NULL [JAWS] at com.sybase.jdbc2.tds.Tds.processEed(Tds.java:2408) [JAWS] at com.sybase.jdbc2.tds.Tds.nextResult(Tds.java:1844) [JAWS] at com.sybase.jdbc2.jdbc.ResultGetter.nextResult(ResultGetter.java:69) [JAWS] at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:201) [JAWS] at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:182) [JAWS] at com.sybase.jdbc2.jdbc.SybStatement.updateLoop(SybStatement.java:1479) [JAWS] at com.sybase.jdbc2.jdbc.SybStatement.executeUpdate(SybStatement.java:1462) [JAWS] at com.sybase.jdbc2.jdbc.SybPreparedStatement.executeUpdate(SybPreparedStatemen t.java:88) [JAWS] at org.opentools.minerva.jdbc.PreparedStatementInPool.executeUpdate(PreparedSta tementInPool.java:82) [JAWS] at org.jboss.ejb.plugins.jaws.jdbc.JDBCUpdateCommand.executeStatementAndHandleR esult(JDBCUpdateCommand.java:49) [JAWS] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:160 ) [JAWS] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCreateEntityCommand.execute(JDBCCreateEn tityCommand.java:135) [JAWS] at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.createEntity(JAWSPersisten ceManager.java:122) [JAWS] at org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManag er.java:207) [JAWS] at org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:441) [JAWS] at java.lang.reflect.Method.invoke(Native Method) [JAWS] at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContaine r.java:639) [JAWS] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySync hronizationInterceptor.java:160) [JAWS] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInt erceptor.java:87) [JAWS] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:135) [JAWS] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:263) [JAWS] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86) [JAWS] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav a:164) [JAWS] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106) [JAWS] at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:316) [JAWS] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContai nerInvoker.java:369) [JAWS] at java.lang.reflect.Method.invoke(Native Method) [JAWS] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241) [JAWS] at sun.rmi.transport.Transport$1.run(Transport.java:142) [JAWS] at java.security.AccessController.doPrivileged(Native Method) [JAWS] at sun.rmi.transport.Transport.serviceCall(Transport.java:139) [JAWS] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443) [JAWS] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:6 43) [JAWS] at java.lang.Thread.run(Thread.java:484) I follow the document instructions. When I see the CabinBean table in the DB the columns is created. But I don't understand why would the container make 'name' colum as primary key!! (It seems to me that this column was created at first. Why?) Any help is welcome! Thanks, Andris ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Starting a second Hypersonic data-source
Hey, I'm trying to set up a Hypersonic service to an existing database that I use. I'm trying to do it by re-using the Hypersonic service MBean, but it seems the service isn't starting. In my jboss.jcml I've added the following lines... mbean name="DefaultDomain:service=Hypersonic" attribute name="Port"1477/attribute attribute name="Silent"false/attribute attribute name="Database"FantasyFootball/attribute attribute name="Trace"false/attribute /mbean mbean name="DefaultDomain:service=XADataSource,name=FantasyFootballDS" attribute name="Properties"/attribute attribute name="URL"jdbc:HypersonicSQL:hsql://localhost:1477/attribute attribute name="GCMinIdleTime"120/attribute attribute name="JDBCUser"sa/attribute attribute name="MaxSize"10/attribute attribute name="Password" / attribute name="GCEnabled"false/attribute attribute name="InvalidateOnError"false/attribute attribute name="TimestampUsed"false/attribute attribute name="Blocking"true/attribute attribute name="GCInterval"12/attribute attribute name="IdleTimeout"180/attribute attribute name="IdleTimeoutEnabled"false/attribute attribute name="LoggingEnabled"false/attribute attribute name="MaxIdleTimeoutPercent"1.0/attribute attribute name="MinSize"0/attribute /mbean Note that I haven't deleted the service used by DefaultDS, as I don't want to replace it. Instead, I'm trying to start a second hypersonic server. I've copied the existing FantasyFootball files to the db/hypersonic directory. When I start jBoss I get a connection broken error as follows... [FantasyFootballDS] Starting [FantasyFootballDS] XA Connection pool FantasyFootballDS bound to java:/FantasyFootballDS [FantasyFootballDS] java.sql.SQLException: Connection is broken: Connection refused: no further information [FantasyFootballDS] at org.hsql.Trace.getError(Trace.java:124) [FantasyFootballDS] at org.hsql.Trace.getError(Trace.java:115) [FantasyFootballDS] at org.hsql.Trace.error(Trace.java:130) [FantasyFootballDS] at org.hsql.jdbcConnection.reconnectHSQL(jdbcConnection.java:621) [FantasyFootballDS] at org.hsql.jdbcConnection.openHSQL(jdbcConnection.java:605) [FantasyFootballDS] at org.hsql.jdbcConnection.init(jdbcConnection.java:523) [FantasyFootballDS] at org.hsql.jdbcDriver.connect(jdbcDriver.java:78) [FantasyFootballDS] at java.sql.DriverManager.getConnection(Unknown Source) [FantasyFootballDS] at java.sql.DriverManager.getConnection(Unknown Source) [FantasyFootballDS] at org.jboss.minerva.xa.XADataSourceImpl.getXAConnection(XADataSourceImpl.java: 121) [FantasyFootballDS] at org.jboss.minerva.xa.XADataSourceImpl.getXAConnection(XADataSourceImpl.java: 155) [FantasyFootballDS] at org.jboss.minerva.factories.XAConnectionFactory.createObject(XAConnectionFac tory.java:232) [FantasyFootballDS] at org.jboss.minerva.pools.ObjectPool.createNewObject(ObjectPool.java:801) [FantasyFootballDS] at org.jboss.minerva.pools.ObjectPool.getObject(ObjectPool.java:549) [FantasyFootballDS] at org.jboss.minerva.datasource.XAPoolDataSource.getConnection(XAPoolDataSource .java:169) [FantasyFootballDS] at org.jboss.jdbc.XADataSourceLoader.initializePool(XADataSourceLoader.java:288 ) [FantasyFootballDS] at org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:252) [FantasyFootballDS] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:92) [FantasyFootballDS] at java.lang.reflect.Method.invoke(Native Method) [FantasyFootballDS] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [FantasyFootballDS] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [FantasyFootballDS] at org.jboss.dependencies.DependencyManager.startMBean(DependencyManager.java:2 84) [FantasyFootballDS] at org.jboss.dependencies.DependencyManager.loadService(DependencyManager.java: 261) [FantasyFootballDS] at org.jboss.dependencies.DependencyManager.processService(DependencyManager.ja va:243) [FantasyFootballDS] at org.jboss.dependencies.DependencyManager.processService(DependencyManager.ja va:238) [FantasyFootballDS] at org.jboss.dependencies.DependencyManager.startMBeans(DependencyManager.java: 117) [FantasyFootballDS] at org.jboss.Main.init(Main.java:162) [FantasyFootballDS] at org.jboss.Main$1.run(Main.java:87) [FantasyFootballDS] at java.security.AccessController.doPrivileged(Native Method) [FantasyFootballDS] at org.jboss.Main.main(Main.java:83) If i remove the lines that declare my hypersonic database mbean name="DefaultDomain:service=Hypersonic" attribute name="Port"1477/attribute attribute name="Silent"false/attribute attribute name="Database"FantasyFootball/attribute attribute name="Trace"false/attribute /mbean from jboss.jcml,
Re: [JBoss-user] Are there DTDs available for the various EJB/JBOSSconfig files?
There are DTDs, but the jaws one (at least) is not up to date. I will be bringing the jaws dtd up to date Real Soon Now. On 4 Apr 2001, David M. Karr wrote: The subject says it all. I mostly only want these so the XML/SGML editor in XEmacs can be a little smarter about the config files I'm editing. (I would have searched the jboss-user archives, but the search facility appears to be broken at this time.) -- Dan Christopherson (danch) nVisia Technical Architect (www.nvisia.com) Opinions expressed are mine and do not neccessarily reflect any position or opinion of nVISIA. --- If you're a capitalist and you have the best goods and they're free, you don't have to proselytize, you just have to wait. -Eben Moglen ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Why can not I use my mySQL data source?
First, I assume you're running JBoss 2.0? If you're running 2.1/2.2, the config is a little different. Sam Liu wrote: Hi, all I am configing mySQL data source with my cmp ejb, according to the instructions on the jboss manual, I have done all of the steps, but I can't yet use my datasource. 2 In standardjaws.xml I commented java:/DefaultDS and added java:/mySQLDS !-- Comment by Sam Liu datasourcejava:/DefaultDS/datasource type-mappingHypersonic SQL/type-mapping -- datasourcejava:/mySQLDS/datasource type-mappingmySQL/type-mapping You should have only one datasource and type-mapping here. If you like you can create a file 'jaws.xml' in the META-INF directory of your ejb-jar that contains: datasourcejava:/mySQLDS/datasource type-mappingmySQL/type-mapping This will override JAWS' datasource for those beans only. Confidential e-mail for addressee only. Access to this e-mail by anyone else is unauthorized. If you have received this message in error, please notify the sender immediately by reply e-mail and destroy the original communication. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] persistent JNDI
Hi All, Is it possible to make JNDI context naming persistent between server start ups? I created several subcontexts, and when I reboot the server, the information is gone. Is there any mechanism to persist the user contexts? Thank you Sylvia ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Trying to run JBoss first time
Actually, you're best off running JBoss with an empty classpath. "DUBCHAK, JOHN [Non-Pharmacia/1000]" wrote: Sounds like you need crimson.jar in your classpath. -Original Message- From: Irfan Mohammed [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 11:44 AM To: '[EMAIL PROTECTED]' Subject: [JBoss-user] Trying to run JBoss first time I am trying to run JBoss and get this error. Any help would be appreciated Thanks Irfan D:\projects\jboss-tomcat-2.1-beta\jboss-2.1\binrun CLASSPATH=d:\java\class;d:\jdk1.3.0_02\jre\lib\rt.jar;d:\program files\bea\wlser ver6.0\lib\weblogic.jar;d:\program files\bea\wlserver6.0\lib\wlepool.jar;run.jar ;../lib/crimson.jar jboss.home = D:\projects\jboss-tomcat-2.1-beta\jboss-2.1 Using configuration "default" [Info] Java version: 1.3.0_02,Sun Microsystems Inc. [Info] Java VM: Java HotSpot(TM) Client VM 1.3.0_02,Sun Microsystems Inc. [Info] System: Windows NT 4.0,x86 [Shutdown] Shutdown hook added [Service Control] Registered with server [Default] Runtime error [Default] java.lang.NoSuchMethodError [Default] at org.apache.crimson.jaxp.DocumentBuilderImpl.init(DocumentBu ilderImpl.java:152) [Default] at org.apache.crimson.jaxp.DocumentBuilderFactoryImpl.newDocumen tBuilder(DocumentBuilderFactoryImpl.java:82) [Default] at org.jboss.configuration.ConfigurationService.loadConfiguratio n(ConfigurationService.java:258) [Default] at java.lang.reflect.Method.invoke(Native Method) [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl .java:1628) [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl .java:1523) [Default] at org.jboss.Main.init(Main.java:195) [Default] at org.jboss.Main$1.run(Main.java:107) [Default] at java.security.AccessController.doPrivileged(Native Method) [Default] at org.jboss.Main.main(Main.java:103) [Default] JBoss 2.1-BETA-Mar-26-2001 Started in 0m:0s [Default] Shutting down [Service Control] Stopping 0 MBeans [Service Control] Stopped 0 services [Service Control] Destroying 0 MBeans [Service Control] Destroyed 0 services [Default] Shutdown complete Press any key to continue . . . ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user Confidential e-mail for addressee only. Access to this e-mail by anyone else is unauthorized. If you have received this message in error, please notify the sender immediately by reply e-mail and destroy the original communication. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Trying to run JBoss first time
Its a run time exception stating that a method is not found which means that it finds the jar correctly and it is in the classpath. Just wondering if the jar is out of date or something since its looking for a Method called DocumentBuilderImpl, just wondering if I need another version of the crimson.jar file Thanks Irfan -Original Message- From: DUBCHAK, JOHN [Non-Pharmacia/1000] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 9:58 AM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] Trying to run JBoss first time Sounds like you need crimson.jar in your classpath. -Original Message- From: Irfan Mohammed [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 11:44 AM To: '[EMAIL PROTECTED]' Subject: [JBoss-user] Trying to run JBoss first time I am trying to run JBoss and get this error. Any help would be appreciated Thanks Irfan D:\projects\jboss-tomcat-2.1-beta\jboss-2.1\binrun CLASSPATH=d:\java\class;d:\jdk1.3.0_02\jre\lib\rt.jar;d:\program files\bea\wlser ver6.0\lib\weblogic.jar;d:\program files\bea\wlserver6.0\lib\wlepool.jar;run.jar ;../lib/crimson.jar jboss.home = D:\projects\jboss-tomcat-2.1-beta\jboss-2.1 Using configuration "default" [Info] Java version: 1.3.0_02,Sun Microsystems Inc. [Info] Java VM: Java HotSpot(TM) Client VM 1.3.0_02,Sun Microsystems Inc. [Info] System: Windows NT 4.0,x86 [Shutdown] Shutdown hook added [Service Control] Registered with server [Default] Runtime error [Default] java.lang.NoSuchMethodError [Default] at org.apache.crimson.jaxp.DocumentBuilderImpl.init(DocumentBu ilderImpl.java:152) [Default] at org.apache.crimson.jaxp.DocumentBuilderFactoryImpl.newDocumen tBuilder(DocumentBuilderFactoryImpl.java:82) [Default] at org.jboss.configuration.ConfigurationService.loadConfiguratio n(ConfigurationService.java:258) [Default] at java.lang.reflect.Method.invoke(Native Method) [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl .java:1628) [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl .java:1523) [Default] at org.jboss.Main.init(Main.java:195) [Default] at org.jboss.Main$1.run(Main.java:107) [Default] at java.security.AccessController.doPrivileged(Native Method) [Default] at org.jboss.Main.main(Main.java:103) [Default] JBoss 2.1-BETA-Mar-26-2001 Started in 0m:0s [Default] Shutting down [Service Control] Stopping 0 MBeans [Service Control] Stopped 0 services [Service Control] Destroying 0 MBeans [Service Control] Destroyed 0 services [Default] Shutdown complete Press any key to continue . . . ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
R: [JBoss-user] Stateful session beans, concurrency, and blocking?
Hey, I am developing a web application, in which the web tier is creating a Stateful Session bean for each user, and invoking methods on it for all business logic. Problem is, part of my web application requires framesets, and each frame pane needs to invoke methods on the session bean. When two frames simultaneously load, and their corresponding JSP pages simultaneously try to invoke methods on the same session bean, one of them fails with a "TRANSACTIONS ROLLED BACK EXCEPTION", having to do with being called from the wrong transaction context. I know that this is the correct behavior per the EJB spec, but what I am wondering is, can I configure jBoss to block the second call until the first call is done, rather than instantly throw an exception? This has been discussed, and it is not trivial to achieve. For now JBoss is strictly spec compliant, and there is no such configuration option. Bear in mind that if you code with such an option available, your ejbeans would not be portable among different application servers. Simon ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] wich database for a standalone workstation?
Hi! I need to take my application around in the notebook (Win98), i was thinking about use a pure java database, like InstantDB, Hypersonic (this project was closed? i read this somewhere...), PointBase or something "light", like Interbase... What's your experience about this? What's the one with less problems? Thank you, David __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Trying to run JBoss first time
Thanks, that worked. Could you explain why that happened...I'm assuming that there are some jars in the classpath that are over riding the default jboss classes and hence causing some problems. Irfan -Original Message- From: danch [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 10:27 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Trying to run JBoss first time Actually, you're best off running JBoss with an empty classpath. "DUBCHAK, JOHN [Non-Pharmacia/1000]" wrote: Sounds like you need crimson.jar in your classpath. -Original Message- From: Irfan Mohammed [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 11:44 AM To: '[EMAIL PROTECTED]' Subject: [JBoss-user] Trying to run JBoss first time I am trying to run JBoss and get this error. Any help would be appreciated Thanks Irfan D:\projects\jboss-tomcat-2.1-beta\jboss-2.1\binrun CLASSPATH=d:\java\class;d:\jdk1.3.0_02\jre\lib\rt.jar;d:\program files\bea\wlser ver6.0\lib\weblogic.jar;d:\program files\bea\wlserver6.0\lib\wlepool.jar;run.jar ;../lib/crimson.jar jboss.home = D:\projects\jboss-tomcat-2.1-beta\jboss-2.1 Using configuration "default" [Info] Java version: 1.3.0_02,Sun Microsystems Inc. [Info] Java VM: Java HotSpot(TM) Client VM 1.3.0_02,Sun Microsystems Inc. [Info] System: Windows NT 4.0,x86 [Shutdown] Shutdown hook added [Service Control] Registered with server [Default] Runtime error [Default] java.lang.NoSuchMethodError [Default] at org.apache.crimson.jaxp.DocumentBuilderImpl.init(DocumentBu ilderImpl.java:152) [Default] at org.apache.crimson.jaxp.DocumentBuilderFactoryImpl.newDocumen tBuilder(DocumentBuilderFactoryImpl.java:82) [Default] at org.jboss.configuration.ConfigurationService.loadConfiguratio n(ConfigurationService.java:258) [Default] at java.lang.reflect.Method.invoke(Native Method) [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl .java:1628) [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl .java:1523) [Default] at org.jboss.Main.init(Main.java:195) [Default] at org.jboss.Main$1.run(Main.java:107) [Default] at java.security.AccessController.doPrivileged(Native Method) [Default] at org.jboss.Main.main(Main.java:103) [Default] JBoss 2.1-BETA-Mar-26-2001 Started in 0m:0s [Default] Shutting down [Service Control] Stopping 0 MBeans [Service Control] Stopped 0 services [Service Control] Destroying 0 MBeans [Service Control] Destroyed 0 services [Default] Shutdown complete Press any key to continue . . . ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user Confidential e-mail for addressee only. Access to this e-mail by anyone else is unauthorized. If you have received this message in error, please notify the sender immediately by reply e-mail and destroy the original communication. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JNDI Naming for references
Thanks to Vladimir, and smund. I feel a bit daft (6 hours) since it was just a leading "/" problem in the end "java:/comp/env/..." vs "java:comp/env/...". Just as the manual had said. One more question though... When rereading the chapter (very, very carefully this time) it says that the narrow operation is not required after looking up the home interface when using JBoss. Every book that I have read though says it should be there. Is this a JBoss specific thing? Or all all containers likely to move in this direction? Thanks again. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Newbie: Need help with ConnectionPool
Hi, I am nwe with jboss and I am trying to use the connection pool with MSSQL Server7.0. And i am using commercial type-4 drivers. But i am not able to make it working... Please help me on this. Thanks, Ashesh. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] RE: JBOSS NT SERVICE
I have set up Jboss as an NT service, but it ain't pretty... You need to go out and get the srvany binary http://www.href.com/pub/Helpful/SrvAny/ Here you will find the docs and tools that will help you to set up anything as an NT service. You must let the service participate with the desktop --otherwise you will not be able to stop the service. Also to kill it, ^C does not work, you need to kill the entire command prompt window. If there is anyone out there that has a cleaner solution, I wouldn't mind seeing it... Kevin Kevin Meldorf Systems Analyst WorldTravel BTI 400 Skokie Blvd Northbrook, IL 60062 Phone: (847) 480-8340 [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] SHA MessageDigest exceptions on startup
I would say your JDK installation is wacked. If you can't execute this simple program your JDK installation is either crippled or has the security providers disabled as JDK1.3 ships with SHA message digest providers. import java.security.MessageDigest; class tst { public static void main(String[] args) throws Exception { MessageDigest md = MessageDigest.getInstance("SHA"); } } - Original Message - From: "Felix Munoz" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 05, 2001 10:18 AM Subject: [JBoss-user] SHA MessageDigest exceptions on startup Hello: I just installed JBoss 2.1, following the instructions, but when I start it up I get a series of exceptions thrown. Below is the top part of the log file. The "SHA MessageDigest not available" exception gets thrown multiple times after that. I am running JDK 1.3 on Windows 2000... Any ideas? ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jboss 2.0 connection pool AutoCommit default?
Folks, Jboss is great! I'm getting my feet wet porting some of the Sun j2ee tutorial code (stateless session "Converter", BMP entity "Account") over to jboss 2.0 and postgresql 7.0. It's been pretty straightforward so far, except for one issue: it appears that the Sun BMP code assumes (and the Sun reference j2ee container implements) that jdbc connections are by default AutoCommit true, since the AccountEJB code never calls setAutoCommit() or commit(), but the results *are* committed to the database. In jboss/postgresql it looks like AutoCommit is false by default since I get the same behavior if I explicitly setAutoCommit( false) that I get if I do nothing (i.e. results never committed to db). Just curious: is this the expected behavior? For all db's or just pgsql? Can it be changed in a configuration file? Regards, Toby Cabot ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JaasSecurityManager logout
The best way would be to provide your own implementation of the CachePolicy (org.jboss.util.CachePolicy) that is used by the JaasSecurityManager so that you could invalidate the cache when a user's roles have been updated. The default CachePolicy implementation is a TimedCachePolicy so after a time the login module should be reexecuted and new roles picked up. You set the JaasSecurityManager CachePolicy implementation using the AuthenticationCacheJndiName attribute. This is the JNDI name under which the CachePolicy implementation you want to use is bound: !-- JAAS security manager and realm mapping -- mbean code="org.jboss.security.plugins.JaasSecurityManagerService" name="Security:name=JaasSecurityManager" attribute name="SecurityManagerClassName"org.jboss.security.plugins.JaasSecurityManager/attribute attribute name="SecurityProxyFactoryClassName"org.jboss.security.SubjectSecurityProxyFactory/attribute attribute name="AuthenticationCacheJndiName"DynamicUserCache/attribute /mbean You would create a custom MBean to initialize your CachePolicy implementation and bind it into JNDI under the "DynamicUserCache" location used above. - Original Message - From: "Tobias Seelinger" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 05, 2001 8:07 AM Subject: [JBoss-user] JaasSecurityManager logout Hi, I have read the JAAS Howto and implemented my own server LoginModule. Now I like to integrate a feature for dynamically changing the list of user roles. A user passes the authentication via login and now he receives another role. But the LoginModule is never called again after the first authentication. The JaasSecurityManager has a cache for valid principals. To add a new role, I have to initialize the role list again. Maybe this could be done with a logout (old principal and role list gets invalid) and a new login/authentication. But I have no idea if this is possible with JaasSecurityManager or if this is a good idea at all. Tobias ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Jboss NT services
There is also this one: http://jsrvany.sourceforge.net/ Which looks pretty good. Jonathan -Original Message- From: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]] Sent: Friday, 6 April 2001 7:53 a.m. To: [EMAIL PROTECTED] Subject: [JBoss-user] Jboss NT services There are some good, open source Java NT service interfaces, one being found in the www.orionsupport.com write up on setting up an NT service. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CMP vs BMP
First of all, thanks to Sacha Labourey and Chris Kimpton: everything works fine now, and fast. I just had to understand that ejb's don't necesseraly HAVE TO be used everywhere. Now, another performance-related question: I've read somewhere in the JBoss tutorial that the default behavior of the container when asked to search for a specific information concerning an ejb's field is to instantiate all the beans and do a lookup inside the fields of each object. I wrote myself a couple of finder methods which return primary keys. Why in the world can't JBoss write the trivial SQL itself for such things as a "field lookup" (say for something like: select id from users where firstname='Candide') ? However, I can always write the trivial SQL myself, but what a pitty, don't you think ? Candide Kemmler ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Oracle Trigger Problem
What do you return from ejbCreate? this should be an instance of your primary key class, but if you generate the key value based on a trigger, i don't see how you can do this. -danch Creighton Kirkendall wrote: I have a table that has a primary key. I have setup a trigger to auto-increment with a sequence in oracle. When I call my ejb-create method everything seem to work fine. The record is inserted. However if I then try to call the getPrimaryID() method (this is the primary key an int) it returns 0 no matter what. And if I try to set any field it looks like it works however nothing is actually changed in the database. I hope someone out there can help me. Creighton Kirkendall Confidential e-mail for addressee only. Access to this e-mail by anyone else is unauthorized. If you have received this message in error, please notify the sender immediately by reply e-mail and destroy the original communication. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] CMP vs BMP
fractals wrote: First of all, thanks to Sacha Labourey and Chris Kimpton: everything works fine now, and fast. I just had to understand that ejb's don't necesseraly HAVE TO be used everywhere. Now, another performance-related question: I've read somewhere in the JBoss tutorial that the default behavior of the container when asked to search for a specific information concerning an ejb's field is to instantiate all the beans and do a lookup inside the fields of each object. I wrote myself a couple of finder methods which return primary keys. Why in the world can't JBoss write the trivial SQL itself for such things as a "field lookup" (say for something like: select id from users where firstname='Candide') ? Where does it say that? You mean for a finder that returns multiples? Hurt me harder, please! But at any rate for the finders, JBoss CMP does exactly what you suggest. Here's what jaws does for a Collection findByBlah( yada ) String sql = "SELECT " + getPkColumnList() + " FROM "+jawsEntity.getTableName()+ " WHERE "; sql += cmpField.getColumnName() + "=?"; Confidential e-mail for addressee only. Access to this e-mail by anyone else is unauthorized. If you have received this message in error, please notify the sender immediately by reply e-mail and destroy the original communication. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] persistent JNDI
Title: RE: [JBoss-user] persistent JNDI Sylvia, This is very possible, however, I am struggling with this one myself. I have successfully hooked up JBoss 2.1 using iPlanet Directory Server 5.0beta. You can use LDAP as one means of persistence. I am able to do lookups through the External/Context, however, when trying to do bind (write), I currently get errors with LDAP schema. The same bind to jnp works. Another means is a database through JDBC. Go through the FAQ on JBoss site. Let me know if you choose LDAP. Sam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 10:12 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] persistent JNDI Hi All, Is it possible to make JNDI context naming persistent between server start ups? I created several subcontexts, and when I reboot the server, the information is gone. Is there any mechanism to persist the user contexts? Thank you Sylvia ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Oracle Trigger Problem
I am doing something similar to this except that I am directly getting the sequence.nextval in the ejbCreate (rather than using a trigger) and setting my primary key data field in the bean to this value: ejbCreate ... { this.id = // get next value from sequence } This seems to work great. Ian. - Original Message - From: "danch" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 05, 2001 5:13 PM Subject: Re: [JBoss-user] Oracle Trigger Problem What do you return from ejbCreate? this should be an instance of your primary key class, but if you generate the key value based on a trigger, i don't see how you can do this. -danch Creighton Kirkendall wrote: I have a table that has a primary key. I have setup a trigger to auto-increment with a sequence in oracle. When I call my ejb-create method everything seem to work fine. The record is inserted. However if I then try to call the getPrimaryID() method (this is the primary key an int) it returns 0 no matter what. And if I try to set any field it looks like it works however nothing is actually changed in the database. I hope someone out there can help me. Creighton Kirkendall Confidential e-mail for addressee only. Access to this e-mail by anyone else is unauthorized. If you have received this message in error, please notify the sender immediately by reply e-mail and destroy the original communication. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] How to prevent jBoss overwrite update done directly to database
You should use "commit option B" or "commit option C" insted of A which is jboss default. look in standardjboss.xml as for where you can change it and look in ejb_spec-1.1 for details on what commit option is. Shahar. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kar YEOW Sent: Thursday, April 05, 2001 11:57 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] How to prevent jBoss overwrite update done directly to database I am having to do a lot of update to database, such as changes to price on products. When jBoss is running the cache object will overwrite all the changes I may, hence I could not make the changes I want 'live' without restarting jBoss. Does anyone have the same problems, if so how can you prevent it? Any help is appreciated. Kar YEOW ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Problem starting jboss with tomcat
To all jboss-tomcat users out there, If this question has been asked previously, I apologized for asking it again. I have gone through the archive and could not find any thing that shows this same error. Any help would be much apperciated. The environment that I have is as follow: JDK1.3 jboss-tomcat2.1 Win2K The problem is when I start jboss I get the following error and I can not figured out what is wrong or what I am doing wrong. Here is the error: jboss.home = C:\jbosstomcat\jboss Using configuration "default" [Info] Java version: 1.3.0,Sun Microsystems Inc. [Info] Java VM: Java HotSpot(TM) Client VM 1.3.0-C,Sun Microsystems Inc. [Info] System: Windows 2000 5.0,x86 [Shutdown] Shutdown hook added [Service Control] Registered with server [Configuration] Could not create MBean DefaultDomain:service=EmbeddedTomcat(org.jboss.tomcat.EmbeddedTomcatService) [Configuration] java.lang.NoClassDefFoundError: org/jboss/util/ServiceMBeanSupport [Configuration] at java.lang.ClassLoader.defineClass0(Native Method) [Configuration] at java.lang.ClassLoader.defineClass(Unknown Source) [Configuration] at java.security.SecureClassLoader.defineClass(Unknown Source) [Configuration] at java.net.URLClassLoader.defineClass(Unknown Source) [Configuration] at java.net.URLClassLoader.access$100(Unknown Source) [Configuration] at java.net.URLClassLoader$1.run(Unknown Source) [Configuration] at java.security.AccessController.doPrivileged(Native Method) [Configuration] at java.net.URLClassLoader.findClass(Unknown Source) [Configuration] at java.lang.ClassLoader.loadClass(Unknown Source) [Configuration] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) [Configuration] at java.lang.ClassLoader.loadClass(Unknown Source) [Configuration] at java.lang.ClassLoader.loadClass(Unknown Source) [Configuration] at com.sun.management.jmx.MBeanServerImpl.findClass(MBeanServerImpl.java:2466) [Configuration] at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:499) [Configuration] at org.jboss.configuration.ConfigurationService.create(ConfigurationService.jav a:340) [Configuration] at org.jboss.configuration.ConfigurationService.loadConfiguration(Configuration Service.java:271) [Configuration] at java.lang.reflect.Method.invoke(Native Method) [Configuration] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [Configuration] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [Configuration] at org.jboss.Main.init(Main.java:195) [Configuration] at org.jboss.Main$1.run(Main.java:107) [Configuration] at java.security.AccessController.doPrivileged(Native Method) [Configuration] at org.jboss.Main.main(Main.java:103) and my server.xml looks like this: ?xml version="1.0" encoding="ISO-8859-1"? Server !-- Debug low-level events in XmlMapper startup -- xmlmapper:debug level="0" / !-- Logging: Logging in Tomcat is quite flexible; we can either have a log file per module (example: ContextManager) or we can have one for Servlets and one for Jasper, or we can just have one tomcat.log for both Servlet and Jasper. Right now there are three standard log streams, "tc_log", "servlet_log", and "JASPER_LOG". Path: The file to which to output this log, relative to TOMCAT_HOME. If you omit a "path" value, then stderr or stdout will be used. Verbosity: Threshold for which types of messages are displayed in the log. Levels are inclusive; that is, "WARNING" level displays any log message marked as warning, error, or fatal. Default level is WARNING. verbosityLevel values can be: FATAL ERROR WARNING INFORMATION DEBUG Timestamps: By default, logs print a timestamp in the form "-MM-dd hh:mm:ss" in front of each message. To disable timestamps completely, set 'timestamp="no"'. To use the raw msec-since-epoch, which is more efficient, set 'timestampFormat="msec"'. If you want a custom format, you can use 'timestampFormat="hh:mm:ss"' following the syntax of java.text.SimpleDateFormat (see Javadoc API). For a production environment, we recommend turning timestamps off, or setting the format to "msec". Custom Output: "Custom" means "normal looking". "Non-custom" means "surrounded with funny xml tags". In preparation for possibly disposing of "custom" altogether, now the default is 'custom="yes"' (i.e. no tags) Per-component Debugging: Some components accept a "debug" attribute. This further enhances log output. If you set the "debug" level for a
Re: [JBoss-user] modifieng the cdEJB.zip
At 11:51 AM 4/5/01 +0200, you wrote: Hello! Maybe someone can help me! There's not much advice I can give without seeing your source code. Take those warnings seriously; they mean your code is not right and you really must fix it. -- Ken Jenks, http://abiblion.com/ Tools for reading. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Jboss/Tomcat/Apache Basic Authentication...
Title: RE: [JBoss-user] Jboss/Tomcat/Apache Basic Authentication... I had a similar problem in that my IE kept just logging on to the basic authentication dialog automatically, like in a session. I had to stop IE and restart it to have a new session. I thought that I was no longer being asked for authentication, but the browser IE5.5 was sending it automatically. In tomcat (check the docos) turn on debug listing for the authenication module. I cannot remeber what the setting is.. sorry.. But when you turn it on then you will see in the log that Tomcat is authenticating. Hope this helps Regards Scott Warren Lead Internet Technologies Developer - Phone: +61 3 5222 6240 mailto: [EMAIL PROTECTED] web: www.advancedresource.com.au - -Original Message- From: Tahir Awan [mailto:[EMAIL PROTECTED]] Sent: Friday, 6 April 2001 12:01 AM To: '[EMAIL PROTECTED]' Subject: [JBoss-user] Jboss/Tomcat/Apache Basic Authentication... I enabled basic authentication through .htaccess file and it all worked fine during development. But as soon as I created .ear file, basic authentication dialog is gone and JSP pages are not secured anymore. I am using JBoss 2.1, Tomcat 3.2.1, Apache. Any idea? Thanks, Tahir ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Problem starting jboss with tomcat
Well, that's wierd. How did you start JBoss? Johnson, Matt wrote: To all jboss-tomcat users out there, If this question has been asked previously, I apologized for asking it again. I have gone through the archive and could not find any thing that shows this same error. Any help would be much apperciated. The environment that I have is as follow: JDK1.3 jboss-tomcat2.1 Win2K The problem is when I start jboss I get the following error and I can not figured out what is wrong or what I am doing wrong. Here is the error: jboss.home = C:\jbosstomcat\jboss Using configuration "default" [Info] Java version: 1.3.0,Sun Microsystems Inc. [Info] Java VM: Java HotSpot(TM) Client VM 1.3.0-C,Sun Microsystems Inc. [Info] System: Windows 2000 5.0,x86 [Shutdown] Shutdown hook added [Service Control] Registered with server [Configuration] Could not create MBean DefaultDomain:service=EmbeddedTomcat(org.jboss.tomcat.EmbeddedTomcatService) [Configuration] java.lang.NoClassDefFoundError: org/jboss/util/ServiceMBeanSupport [Configuration] at java.lang.ClassLoader.defineClass0(Native Method) ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Error in the Jboss
Yes u are correct. I forget to close the connection. Thanks [EMAIL PROTECTED] wrote: I think my previous suggestion did not apply. It seems like you are retrieving more connection from the connection pool than returning to it. When the server runs out of connections, it will hang until connections become available again. After you are done with the connection that have retrieved from the connection pool, you must return it to the pool by calling connection.close(). Thomas Kirsch ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JAAS intraserver login/principal
I've written an MBean service that needs to access a session bean, but I get the following message: [boService] Authentication exception, principal=null The MBean service has not logged in to JBoss, so it has no principal. How does one handle the case where threads inside the server need to run as some privileged user in order to access secured resources? Tim Taylor ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
re: [JBoss-user] Why can not I use my mySQL data source?
thanks to danch, when I use Jboss2.1 beta, all of things are OK. thanks to Ken Jenks. in addition: Perhaps it is a silly problem. I want to know why the file "jboss.conf" and other likewise ***.conf files use the format of XML? but when I comment this line in jboss.conf like this: MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar" CODEBASE="../../lib/ext/" !-- Comment by Sam Liu ARG TYPE="java.lang.String" VALUE="../../../jakarta-tomcat-3.2.1/lib/" -- ARG TYPE="java.lang.String" VALUE="../../../tomcat/lib/" ARG TYPE="java.lang.String" VALUE="Tomcat" /MLET i found that jboss can not start up tomcat. that is to say ***.conf do NOT support XML parsering. when I correct it like this: MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar" CODEBASE="../../lib/ext/" !-- ARG TYPE="java.lang.String" VALUE="../../../jakarta-tomcat-3.2.1/lib/" -- ARG TYPE="java.lang.String" VALUE="../../../tomcat/lib/" ARG TYPE="java.lang.String" VALUE="Tomcat" /MLET it is OK. So, if all of the files of "***.conf" can be parsered on html or xml format, perhaps is it better? --- origional info-- First, I assume you're running JBoss 2.0? If you're running 2.1/2.2, the config is a little different. ... ,ºÇ«¨¥x%ËI,ºÇ«+-²Ê.Ç¢¸ëa¶ÚþX¬¶Ë(º·~àzwþX¬¶ÏåËbú?º,²ë
Re: [JBoss-user] Oracle Authentication
On Thu, Apr 05, 2001 at 05:07:24PM -0700, Greg Parker wrote: Hello All I'm newbie with JBOSS. I need users to be able to login and authenticate themselves as a user into our Oracle database. So that their session and connection to Oracle is with their own personal ID. It seems that when the JBOSS server starts, it connects to Oracle with whatever JDBCUser and password is specified in the jboss.jcml file. Therefore, if I have a trigger in my Oracle database which inserts a userid into a record, it inserts the JDBCUser that is specified in the jboss.jcml file. I need the trigger to recognize who the user is that has opened that connection and insert their userid not the JDBCUser. How do I connect and create as session to our Oracle database through jboss, using a personal ID and password? Hi. This is something that is not easy to do in the current version of J2EE. You have a couple of options: - have a separate connection pool for each user Depending on the number of users you have, it might be sufficient to set up the pools in jboss.jcml, or you might want to do it programmatically using JMX at runtime. - don't use connection pools, i.e. create a new JDBC connection every time In the future, the way to do this will be using the J2EE Connector Architecture. You can probably do this using the current JCA support in JBoss, but you'll need to write some code. Look at org.jboss.resource.security.* in the jbosscx cvs module and it should be apparent that you can write a OneToOnePrincipalMapping class to do what you desire. Let me know if you decide to do this and you want any help. Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] embedded tomcat Jboss2.1
Hi all When I tested embedded tomcat Everything went smooth With the inclusion of bean interfaces in war file I can call my beans but when I tried to do this on embedded tomcat Jboss2.1 I could not manage to call my beans through my servlets jsps. I went through all the mailing list -I did not find any clue how to make it work Any suggestion -please! thanks in advance ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Finder method in Jboss is not working
Hi all , I am using JBoss2.1 , jdk1.3 and Tomcat3.2.1. I have CMP fields as below : public int id; public String name; public String country I have added a finder method in the home interface as below : findByName() throws RemoteException,FinderException; findByCountry() throws RemoteException,FinderException; When I tried to access the finder in the client , it give javax.ejb.FinderException : Find Failed. I did not added anything in the xml file. Do i need to ? Didn't jboss will do automatically ? Thanks wt ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JAAS intraserver login/principal
Threads inside of JBoss accessing EJBs are no different than any other client. You have to login to allow the security policy associated with the EJB security domain to authenticate the access. - Original Message - From: "Tim Taylor" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 05, 2001 6:11 PM Subject: [JBoss-user] JAAS intraserver login/principal I've written an MBean service that needs to access a session bean, but I get the following message: [boService] Authentication exception, principal=null The MBean service has not logged in to JBoss, so it has no principal. How does one handle the case where threads inside the server need to run as some privileged user in order to access secured resources? Tim Taylor ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Why can not I use my mySQL data source?
Because jboss.conf is parsed by the javax.management.loading.MLet and this class does not accept an xml document. It has its own file format that looks like xml but is not. in addition: Perhaps it is a silly problem. I want to know why the file "jboss.conf" and other likewise ***.conf files use the format of XML? but when I comment this line in jboss.conf like this: MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar" CODEBASE="../../lib/ext/" !-- Comment by Sam Liu ARG TYPE="java.lang.String" VALUE="../../../jakarta-tomcat-3.2.1/lib/" -- ARG TYPE="java.lang.String" VALUE="../../../tomcat/lib/" ARG TYPE="java.lang.String" VALUE="Tomcat" /MLET ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] embedded tomcat Jboss2.1
What exactly goes wrong? faisal wrote: Hi all When I tested embedded tomcat Everything went smooth With the inclusion of bean interfaces in war file I can call my beans but when I tried to do this on embedded tomcat Jboss2.1 I could not manage to call my beans through my servlets jsps. I went through all the mailing list -I did not find any clue how to make it work Any suggestion -please! thanks in advance ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] The first bean
I have a question not seen before on any of the lists. I deployed yesterday the first CMP bean in JBoss, works fine. The situation: The bean shows database records and is able to update. However the database is also updated by legacy 4GL, as soon as this happens the beans don't show the actual values anymore, is there a way to refresh beans ? Should we turn 4GL update routines off ? Thanks Rene Jansen ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Oracle Authentication
I think J2EE (and JBoss) handle this, though I may have found a bug in JBoss. In jboss.jcml, when you create your connection pool, provide a URL but do not provide a userid or password. The MBean will start up successfully. In your bean code, use this form of connect statement: Connection connection = ((DataSource)new InitialContext().lookup("java:comp/env/jdbc/OracleDB")).getConnection("myuse rid", "mypassword"); Now your connection will use the credentials of the userid provided. I've tried this and it seems to work BUT... I see some odd behavior. If I define the MBean in jboss.jcml and include a userid and password, i.e. attribute name="JDBCUser"auserid/attribute attribute name="Password"apassword/attribute then everything works as expected. However, if I define the MBean without the above two entries, JBoss starts up fine and creates the connection pool. I can deploy the EJB fine with no errors. But when I run the code with the above connection, I get an exception stating "table or view does not exist". But if I then immediately rerun the client a second time, it succeeds. So there seems to be a bug in JBoss here. It doesn't pick up the new credentials until the second attempt. - Original Message - From: "Toby Allsopp" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 05, 2001 9:34 PM Subject: Re: [JBoss-user] Oracle Authentication On Thu, Apr 05, 2001 at 05:07:24PM -0700, Greg Parker wrote: Hello All I'm newbie with JBOSS. I need users to be able to login and authenticate themselves as a user into our Oracle database. So that their session and connection to Oracle is with their own personal ID. It seems that when the JBOSS server starts, it connects to Oracle with whatever JDBCUser and password is specified in the jboss.jcml file. Therefore, if I have a trigger in my Oracle database which inserts a userid into a record, it inserts the JDBCUser that is specified in the jboss.jcml file. I need the trigger to recognize who the user is that has opened that connection and insert their userid not the JDBCUser. How do I connect and create as session to our Oracle database through jboss, using a personal ID and password? Hi. This is something that is not easy to do in the current version of J2EE. You have a couple of options: - have a separate connection pool for each user Depending on the number of users you have, it might be sufficient to set up the pools in jboss.jcml, or you might want to do it programmatically using JMX at runtime. - don't use connection pools, i.e. create a new JDBC connection every time In the future, the way to do this will be using the J2EE Connector Architecture. You can probably do this using the current JCA support in JBoss, but you'll need to write some code. Look at org.jboss.resource.security.* in the jbosscx cvs module and it should be apparent that you can write a OneToOnePrincipalMapping class to do what you desire. Let me know if you decide to do this and you want any help. Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Oracle Authentication
Guy Rouillier wrote: I think J2EE (and JBoss) handle this, though I may have found a bug in You are quite right that the spec allows this. Apologies for the misinformation. The relevent section of the EJB2.0 spec that I have is 19.4. JBoss. In jboss.jcml, when you create your connection pool, provide a URL but do not provide a userid or password. The MBean will start up successfully. In your bean code, use this form of connect statement: Connection connection = ((DataSource)new InitialContext().lookup("java:comp/env/jdbc/OracleDB")).getConnection("myuse rid", "mypassword"); Now your connection will use the credentials of the userid provided. I've tried this and it seems to work Now, JBoss's support of this is obtained from Minerva. Looking at the code for XAPoolDataSource, we see: /** * Gets a new connection from the pool. If a new connection must be * created, it will use the specified user name and password. If there is * a connection available in the pool, it will be used, regardless of the * user name and password use to created it initially. */ public Connection getConnection(String user, String password) throws java.sql.SQLException { if(!initialized) initialize(); factory.setUser(user); factory.setPassword(password); return ((XAConnection)pool.getObject()).getConnection(); } So, Minerva does not do what you might expect, unless you are never returning your connections to the pool. This is superceded by the JCA stuff, which knows how to handle the case of requesting connections on behalf of different principals. Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user