RE: [JBoss-user] Package does not exist problem
Not that I am the expert, but isn't com written in lowercase? So import com.ibm.db2.* instead of COM.ibm.db2. Regards, Cor. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Krishna PrasadSent: Wednesday, September 19, 2001 07:39To: [EMAIL PROTECTED]Subject: [JBoss-user] Package does not exist problem Hi all, I copied db2java.zip file in lib\ext directory. Even then i'm getting the following error, package COM.ibm.db2 does not exist import COM.ibm.db2.*; I set in classpath like JBOSS_HOME\lib\db2java.zip Do i need to modify any more files to avoid this error. Pls help me out. ---krishna *DisclaimerThis message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of thismessage, or the taking of any action based on it, is strictly prohibited.*Visit us at http://www.mahindrabt.com
Re: [JBoss-user] DB2 Connecting problem remotely
hi, DB2Driver loaded, but it is giving following exception, [DB2DS] XA Connection pool DB2DS bound to java:/DB2DS [XADataSourceLoader] Stopped java.lang.NullPointerException at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java: 178) at org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:407) at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:106) at java.lang.reflect.Method.invoke(Native Method) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Configurati onService.java:836) at $Proxy0.start(Unknown Source) at org.jboss.util.ServiceControl.start(ServiceControl.java:81) at java.lang.reflect.Method.invoke(Native Method) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at org.jboss.Main.(Main.java:210) at org.jboss.Main$1.run(Main.java:116) at java.security.AccessController.doPrivileged(Native Method) at org.jboss.Main.main(Main.java:112) [Configuration] java.lang.NullPointerException [Configuration] at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java: 178) [Configuration] at org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:407) [Configuration] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:106) [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.configuration.ConfigurationService$ServiceProxy.invoke(Configurati onService.java:836) [Configuration] at $Proxy0.start(Unknown Source) [Configuration] at org.jboss.util.ServiceControl.start(ServiceControl.java:81) [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.(Main.java:210) [Configuration] at org.jboss.Main$1.run(Main.java:116) [Configuration] at java.security.AccessController.doPrivileged(Native Method) [Configuration] at org.jboss.Main.main(Main.java:112) Can anyone tell me the solution --krishna - Original Message - From: David Jencks <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 18, 2001 6:15 PM Subject: Re: [JBoss-user] DB2 Connecting problem remotely > 2 comments > > > 1. If you are running embedded tomcat version of jboss there is a different > configuration directory I believe with its own copy of jboss.jcml. Perhaps > you are modifying the wrong one. If there is no indication of jboss trying > to load your XADataSourceLoader this is likely the case. > > 2. Instead of following the (written for 2.2) documentation, follow the > (working) hypersonic example and use > > org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl > > not > > org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp l > > > david jencks * Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. * Visit us at http://www.mahindrabt.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Package does not exist problem
Hi all, I copied db2java.zip file in lib\ext directory. Even then i'm getting the following error, package COM.ibm.db2 does not exist import COM.ibm.db2.*; I set in classpath like JBOSS_HOME\lib\db2java.zip Do i need to modify any more files to avoid this error. Pls help me out. ---krishna * Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. * Visit us at http://www.mahindrabt.com
Re: [JBoss-user] DB2 Connecting problem remotely --- solved
David, Thanks. I modified in .jcml file which is jboss/conf/default directory. Now i modified the file jboss.jcml which is jboss/conf/tomat directory. I also changed the DataSourceClass which u mentioned. Now driver is loaded. Thanks again. --krishna - Original Message - From: David Jencks <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 18, 2001 6:15 PM Subject: Re: [JBoss-user] DB2 Connecting problem remotely > 2 comments > > > 1. If you are running embedded tomcat version of jboss there is a different > configuration directory I believe with its own copy of jboss.jcml. Perhaps > you are modifying the wrong one. If there is no indication of jboss trying > to load your XADataSourceLoader this is likely the case. > > 2. Instead of following the (written for 2.2) documentation, follow the > (working) hypersonic example and use > > org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl > > not > > org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp l > > > david jencks > > > On 2001.09.18 07:32:27 -0400 Krishna Prasad wrote: > > John, > > I'm very happy for giving immediate reply. > > I tried the following way also. > > > > > name="DefaultDomain:service=JdbcProvider"> > > org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,COM. ibm.db2.jdbc.app.DB2Driver > > > > > > Eventhough no DB2 driver loaded. > > Yeah, i'm sure that my DB driver name is > > "COM.ibm.db2.jdbc.app.DB2Driver". > > I attached my jboss.jcml file. Could you please suggest me what > > code i have to add. > > > > --Krishna > > > > > > > > - Original Message - > > From: John LYC > > To: [EMAIL PROTECTED] > > Sent: Tuesday, September 18, 2001 3:12 PM > > Subject: Re: [JBoss-user] DB2 Connecting problem remotely > > > > > > did you see yr DB driver being loaded > > from the code... > > i only see the default frivers being loaded > > > > also , you should have one instant of the follwoing mbean, the > > JdbcProvider mbean. > > from your code , you have this in yr jboss.jcml > > > > > >> name="DefaultDomain:service=JdbcProvider"> > >COM.ibm.db2.jdbc.app.DB2Driver > > > > > > according to the above code, the 2 default Driver should not have been > > loaded... > > please check, you might have added the above mbean and not remove the > > exsiting one. > > they are the same mbean and cannot co-exisit. > > > > if you still want the default dirver include yr driver to be loaded.. > > just add yr driver to the exisiting "jdbcProvider" mbean... remmber, > > onlye one "JdbcProvider" mbean can be there. the "drivers" attribute > > within the mbean is a comma delimited list of jdbc drivers > > check yr DB driver name too... are you shure it starts with uppercase > > "COM".. > > > > --- > > > >> name="DefaultDomain:service=JdbcProvider"> > >org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,COM. ibm.db2.jdbc.app.DB2Driver > > > > > > -- > > > > john > > > > - Original Message - > > From: Krishna Prasad > > To: [EMAIL PROTECTED] > > Sent: Tuesday, September 18, 2001 4:42 PM > > Subject: Re: [JBoss-user] DB2 Connecting problem remotely > > > > > > Yes John, > > > > you are absolutely correct. I found the following lines, > > but not for DB2Driver, > > > > [JdbcProvider] Initializing > > [JdbcProvider] Loaded JDBC-driver:org.hsql.jdbcDriver > > [JdbcProvider] Loaded > > JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver > > [JdbcProvider] Initialized > > > > > > > > [JdbcProvider] Starting > > [JdbcProvider] Started > > [HypersonicDatabase] Starting > > [HypersonicDatabase] Database started > > [HypersonicDatabase] Started > > > > > > > > [XADataSourceLoader] Starting > > [DefaultDS] XA Connection pool DefaultDS bound to > > java:/DefaultDS > > [Default] Server 1.4 is running > > [Default] Press [Ctrl]+[C] to abort > > [XADataSourceLoader] Started > > . > > > > > > Can any one tell me, What could be the reason? > > The code for jdbc in jboss.jcml is, > > > > > > > > > > > >> name="DefaultDomain:service=JdbcProvider"> > > COM.ibm.db2.jdbc.app.DB2Driver > > > > > name="DefaultDomain:service=XADataSource,name=DB2DS"> > > org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp l > > > > DB2DS > > jdbc:db2://websphere:8080/demomall > > wcs > > wcs > > > > > >>
Re: [JBoss-user] Help on JMX Connector
You don't indicate which version of jboss you are using. For rabbithole, you can find a working example in testsuite/src/org/jboss/test/JBossTestServices.java. For previous versions, the /test/util/Deploy.java may provide a working example. david jencks On 2001.09.18 22:29:16 -0400 Sheng Zou wrote: > Hi, > > I am trying to access one MBean, which is deployed on JBoss at localhost, > via JMXConnector. The code is like: > > _JMXConnector = new RMIClientConnectorImpl("localhost"); > > and I have jndi.properties in my classpath as well. However, I got this > exception: > > javax.naming.NoInitialContextException: Need to specify class name in > environment or system property, or as an applet parameter, or in an > application resource f > ile: java.naming.factory.initial > at > javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:646) > at > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246) > at > javax.naming.InitialContext.getEnvironment(InitialContext.java:475) > at > org.jboss.jmx.client.RMIClientConnectorImpl.start(RMIClientConnectorImpl.jav > a:92) > at > org.jboss.jmx.client.RMIClientConnectorImpl.(RMIClientConnectorImpl.ja > va:78) > at HeartBeat.appHeartBeat(HeartBeat.java:26) > at HeartBeat.run(HeartBeat.java:54) > at java.lang.Thread.run(Thread.java:484) > > Please help! > > Thanks, > Sheng > > > > > > > > > > class=156502602-19092001>Hi, > class=156502602-19092001> > class=156502602-19092001>I am trying to access one MBean, which is > deployed on > JBoss at localhost, via JMXConnector. The code is > like: > class=156502602-19092001> > class=156502602-19092001>_JMXConnector = new > RMIClientConnectorImpl("localhost"); > class=156502602-19092001> > class=156502602-19092001>and I have jndi.properties in my classpath as > well. > However, I got this exception: > class=156502602-19092001> > size=2>javax.naming.NoInitialContextException: Need to specify class name > > in class=156502602-19092001> environment or system property, or > as an > applet parameter, or in an application class=156502602-19092001> resource file: > java.naming.factory.initial > > at >class=156502602-19092001> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:646) > > at >class=156502602-19092001> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246) > > at >class=156502602-19092001> javax.naming.InitialContext.getEnvironment(InitialContext.java:475) > > at >class=156502602-19092001> org.jboss.jmx.client.RMIClientConnectorImpl.start(RMIClientConnectorImpl.java:92) > > at >class=156502602-19092001> org.jboss.jmx.client.RMIClientConnectorImpl.(RMIClientConnectorImpl.java:78) > > at > >HeartBeat.appHeartBeat(HeartBeat.java:26) > > at > HeartBeat.run(HeartBeat.java:54) > > at java.lang.Thread.run(Thread.java:484) class=156502602-19092001>Please help! > class=156502602-19092001> > class=156502602-19092001>Thanks, > class=156502602-19092001>Sheng > class=156502602-19092001> > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] error runing tomcat
hi all, i get this error wherever i run the run_with_tomcat.sh. - JBOSS_CLASSPATH=:/usr/j2sdk1_3_1/lib/tools.jar: is not an identifier. - this is due to the first line the run_with_tomcat.sh the path to the tools.jar is correct.. when i exec run.sh. my jboss starts up okay. i only change the jboss.jcml in both the default and tomcat directory. the changes are identical... i have change nothing else... do i need to do any configuration to the tomcat conf? thanks john ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Any Great JSP Tag Library
thanks... will check it out john - Original Message - From: "Sebastian Hauer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 19, 2001 12:31 AM Subject: Re: [JBoss-user] Any Great JSP Tag Library > > Hi John, > > John LYC wrote: > > > > Hi All, > > > > has anyone come across a great JSP Tag library that can be use with the > > current Jboss/tomcat 3.2.x ? > > > > Thanks > > john > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > Try Struts. Its taglibs can also be used without following the struts > MVC pattern. > http://jakarta.apache.org/struts/ > > The jakarta taglibs: > http://jakarta.apache.org/taglibs/ > > Bye, > Sebastian > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] NPE: org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl- Oracle8i and JBoss2.4.0
Can I ask a possibly stupid question. Are you able to get a connection from a standalone jdbc client using the same url, user an dpassword? cheers dim On Wed, 19 Sep 2001, Paul McLachlan wrote: > Thanks Dragos, I wish that were enough . > > My setup is currently: > >name="DefaultDomain:service=JdbcProvider"> > name="Drivers">oracle.jdbc.driver.OracleDriver > > >name="DefaultDomain:service=XADataSource,name=OracleDS"> > OracleDS > name="DataSourceClass">org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl attribute> > name="URL">jdbc:oracle:thin:@localhost:1521:jbossb > xxx > yyy > > > I have the drivers in classes12.zip in lib/ext > > I still get an NPE at > > [XADataSourceLoader] Stopped > java.lang.NullPointerException > at > org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.j > ava:178) > > I cannot afford to spend anymore time on this, I never thought at this > stage of the project I would run into an issue like this. Unbelievable. > Luckily I have convinced my boss that HypersonicDB will suffice for now > until a future release. > > Paul. > > -Original Message- > From: Dragos Haiduc [mailto:[EMAIL PROTECTED]] > Sent: Monday, 17 September 2001 6:14 PM > To: [EMAIL PROTECTED] > Subject: AW: [JBoss-user] Class Not Found Exception: > org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl > > > I am using JBoss2.4.0_Jetty-3.1RC8-1, but as DB i'm using Postgre, not > Oracle8. > > This is my jboss.jcml entry for my DB connection pool: > > > > name="DefaultDomain:service=XADataSource,name=PostgreSQLDS"> > > PostgreSQLDS > > name="DataSourceClass">org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl attribute> > > name="URL">jdbc:postgresql://localhost:5432/play_with_ejbs > > tog > > secret > > > > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]Im Auftrag von Paul > McLachlan > Gesendet: Montag, 17. September 2001 09:10 > An: [EMAIL PROTECTED] > Betreff: RE: [JBoss-user] Class Not Found Exception: > org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl > > > Yes, it is. > > What version of JBoss are you using. I am using 2.4.0 > > Paul. > > -Original Message- > From: Dragos Haiduc [mailto:[EMAIL PROTECTED]] > Sent: Monday, 17 September 2001 4:41 PM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Class Not Found Exception: > org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl > > > Paul, i was getting this NPE when trying to connect from JBoss to a > stopped DB system(Postgre). > Is ur Oracle up and running? > > > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]Im Auftrag von Paul > McLachlan > Gesendet: Montag, 17. September 2001 01:17 > An: [EMAIL PROTECTED] > Betreff: RE: [JBoss-user] Class Not Found Exception: > org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl > > > Thanks Dragos, this answer looked promising but I get a NPE! > > > [XADataSourceLoader] Stopped > java.lang.NullPointerException > at > org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.j > ava:178) > > Surely someone out there must know how to use JBoss 2.4 and Oracle8! > > > This is the class you should use in the jboss.jcml file in JBoss 2.4 for > DataSource creation , not the one mentioned by you: > org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl > Best, > > Dragos > > > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Help on JMX Connector
Title: Hi, I am trying to access one MBean, which is deployed on JBoss at localhost, via JMXConnector. The code is like: _JMXConnector = new RMIClientConnectorImpl("localhost"); and I have jndi.properties in my classpath as well. However, I got this exception: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:646) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246) at javax.naming.InitialContext.getEnvironment(InitialContext.java:475) at org.jboss.jmx.client.RMIClientConnectorImpl.start(RMIClientConnectorImpl.java:92) at org.jboss.jmx.client.RMIClientConnectorImpl.(RMIClientConnectorImpl.java:78) at HeartBeat.appHeartBeat(HeartBeat.java:26) at HeartBeat.run(HeartBeat.java:54) at java.lang.Thread.run(Thread.java:484)Please help! Thanks, Sheng
[JBoss-user] NPE: org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl - Oracle8i and JBoss2.4.0
Title: Thanks Dragos, I wish that were enough . My setup is currently: oracle.jdbc.driver.OracleDriver OracleDS org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl jdbc:oracle:thin:@localhost:1521:jbossb xxx yyy I have the drivers in classes12.zip in lib/ext I still get an NPE at [XADataSourceLoader] Stoppedjava.lang.NullPointerException at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:178) I cannot afford to spend anymore time on this, I never thought at this stage of the project I would run into an issue like this. Unbelievable. Luckily I have convinced my boss that HypersonicDB will suffice for now until a future release. Paul. -Original Message-From: Dragos Haiduc [mailto:[EMAIL PROTECTED]]Sent: Monday, 17 September 2001 6:14 PMTo: [EMAIL PROTECTED]Subject: AW: [JBoss-user] Class Not Found Exception: org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl I am using JBoss2.4.0_Jetty-3.1RC8-1, but as DB i'm using Postgre, not Oracle8. This is my jboss.jcml entry for my DB connection pool:PostgreSQLDSattribute> org.jboss.pool.jdbc.xa.wrapper.XADataSourceImplattribute> jdbc:postgresql://localhost:5432/play_with_ejbsattribute> togattribute> secretattribute> mbean> -Ursprüngliche Nachricht-Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Paul McLachlanGesendet: Montag, 17. September 2001 09:10An: [EMAIL PROTECTED]Betreff: RE: [JBoss-user] Class Not Found Exception: org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl Yes, it is. What version of JBoss are you using. I am using 2.4.0 Paul. -Original Message-From: Dragos Haiduc [mailto:[EMAIL PROTECTED]]Sent: Monday, 17 September 2001 4:41 PMTo: [EMAIL PROTECTED]Subject: [JBoss-user] Class Not Found Exception: org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl Paul, i was getting this NPE when trying to connect from JBoss to a stopped DB system(Postgre). Is ur Oracle up and running? -Ursprüngliche Nachricht-Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Paul McLachlanGesendet: Montag, 17. September 2001 01:17An: [EMAIL PROTECTED]Betreff: RE: [JBoss-user] Class Not Found Exception: org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl Thanks Dragos, this answer looked promising but I get a NPE! [XADataSourceLoader] Stoppedjava.lang.NullPointerException at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:178) Surely someone out there must know how to use JBoss 2.4 and Oracle8! This is the class you should use in the jboss.jcml file in JBoss 2.4 for DataSource creation , not the one mentioned by you:org.jboss.pool.jdbc.xa.wrapper.XADataSourceImplBest, Dragos
[JBoss-user] J2EE SDK 1.3 FCS now shipping!
Hello All, J2EE 1.3 FCS is now available. You can download the final release of the specifications and the J2EE SDK at http://java.sun.com/j2ee/ Thanks, J2EE Team ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Collection implementation ERROR
On Mon, Sep 17, 2001 at 03:27:29PM -0500, [EMAIL PROTECTED] wrote: > I have tried this in my JSP but get these errors. > I have an import of java.util.* at top of the JSP. > I am using a HashSet so that items in dd box are unique. > Any help is appreciatedGraham ... > //HERE IS JSP CODE. > <%@page contentType="text/html"%> > <%@page import="java.util.*"%> Replace with <%@page contentType="text/html" imporT="java.util.*"%> The <%page %> must not appear more than once! Btw. I suggest migrating to a web application framework like webwork (http://sourceforge.net/projects/webwork/) or jakarta-struts. -billy -- Philipp Meier o-matic GmbH Geschäftsführer Pfarrer-Weiß-Weg 16-18 Tel.: +49-(0)700-66284236 89077 Ulm PGP signature
RE: [JBoss-user] Urgent Help to Compare JBOSS and Web Logic!!
I just wrote an article for onjava.com that is supposedly being published sometime soon on Clustering JBoss, how our company worked around not having clustering features in JBoss. If it doesn't get put up there this week, I'll post it here directly. We had used Weblogic for about a year before we switched to JBoss in February this year. I must tell you that having the source code greatly dismystifies the AppServer. JBoss is well written, has a few minor holes here and there, but 3.0 is really, really going to kick-ass. Bill > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > [EMAIL PROTECTED] > Sent: Tuesday, September 18, 2001 12:48 PM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Urgent Help to Compare JBOSS and Web Logic!! > > > Hi All > My Boss gave me short notice to make a write up on JBOSS and WebLogic > comparison. We are about to make a company wide decision for a Application > Server. I did play around with JBoss and WebLogic App Servers 3 months > ago. Recently I am working on MFC project and my knowledge is not up to > date on Application SERVER. Could you please give me some pointers?? > > Thanks, > NRC > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Sacha's clustering support
Sacha and I are working on clustering. Should have a tested implementation of clustering by mid-October based on JavaGroups. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lynes > Sent: Tuesday, September 18, 2001 12:48 PM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Sacha's clustering support > > > Just wondering if the clustering support that Sacha Labourey has > been working > on will be in the JBoss 3.0 release? > > If so, any ideas on any ballpark figure on when 3.0 might be released? > > Thanks in advance. > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Sacha's clustering support
Just wondering if the clustering support that Sacha Labourey has been working on will be in the JBoss 3.0 release? If so, any ideas on any ballpark figure on when 3.0 might be released? Thanks in advance. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Urgent Help to Compare JBOSS and Web Logic!!
http://www.cmis.csiro.au/adsat/ has a controversial comparison of a number of app servers, check out theserverside.com as well for both comparisons and some discussion on this paper. MikeD > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > [EMAIL PROTECTED] > Sent: Tuesday, September 18, 2001 10:48 AM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Urgent Help to Compare JBOSS and Web Logic!! > > > Hi All > My Boss gave me short notice to make a write up on JBOSS and WebLogic > comparison. We are about to make a company wide decision for a Application > Server. I did play around with JBoss and WebLogic App Servers 3 months > ago. Recently I am working on MFC project and my knowledge is not up to > date on Application SERVER. Could you please give me some pointers?? > > Thanks, > NRC > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Urgent Help to Compare JBOSS and Web Logic!!
Hi All My Boss gave me short notice to make a write up on JBOSS and WebLogic comparison. We are about to make a company wide decision for a Application Server. I did play around with JBoss and WebLogic App Servers 3 months ago. Recently I am working on MFC project and my knowledge is not up to date on Application SERVER. Could you please give me some pointers?? Thanks, NRC ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Any Great JSP Tag Library
Hi John, John LYC wrote: > > Hi All, > > has anyone come across a great JSP Tag library that can be use with the > current Jboss/tomcat 3.2.x ? > > Thanks > john > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user Try Struts. Its taglibs can also be used without following the struts MVC pattern. http://jakarta.apache.org/struts/ The jakarta taglibs: http://jakarta.apache.org/taglibs/ Bye, Sebastian ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss-2.4.1a_Tomcat-3.2.3 patch available
Hi Scott, Scott M Stark wrote: > > I released a patch to the JBoss-2.4.1/Tomcat-3.2.3 bundle that corrects a > security problem that manifests as not being able to access secure content > that > should have been accessible since the user credentials were valid. Only the > tomcat-service contained the problem so the JBoss-2.4.1 core is unchanged. > > Its available from here: > http://prdownloads.sourceforge.net/jboss/JBoss-2.4.1a_Tomcat-3.2.3.zip I've tried checking it out from cvs but it seams that your update is not tagged. Bye, Sebastian ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] MDB listening to a queue not working?
Title: RE: [JBoss-user] MDB listening to a queue not working? put your test code in a try...finally block. in the finally, close the session, connection and queue so every thing is cleanup property. I already had that prob and thats how I fixed it. -Original Message- From: prajapatib [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 18, 2001 11:22 AM To: '[EMAIL PROTECTED]' Subject: [JBoss-user] MDB listening to a queue not working? Hi, I am trying to send a message to a queue which a MDB is listening to, however the onMessage() method never gets called, I just get a stacktrace telling me that the peer has reset the connection. ( I am using a JUnit TestCase as the Client on NT4 sp 4 with JBoss 2.4 (with tomcat running), JDK 1.3 ) I have provided bean and client code below, with the contents of the relevant xml files. - The stacktrace is as follows: New Client Connection accepted. Current Thread=Thread[OIL Worker,5,JBossMQ Server Threads] Client Connection set spyDistributedConnection, ClientID=ID2. Current Thread=Thread[OIL Worker,5,JBossMQ Server Threads] [java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read at java.net.SocketInputStream.socketRead(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:86) at java.io.BufferedInputStream.fill(BufferedInputStream.java:186) at java.io.BufferedInputStream.read(BufferedInputStream.java:204) at java.io.ObjectInputStream.peekCode(ObjectInputStream.java:1549) at java.io.ObjectInputStream.refill(ObjectInputStream.java:1683) at java.io.ObjectInputStream.read(ObjectInputStream.java:1659) at java.io.ObjectInputStream.readByte(ObjectInputStream.java:1905) at org.jbossmq.distributed.server.DistributedJMSServerOIL.run(DistributedJMSSer verOIL.java:79) at java.lang.Thread.run(Thread.java:484) - The bean code is very simple: public class TaskProxy implements MessageListener, MessageDrivenBean { MessageDrivenContext ctx = null; public TaskProxy(){} public void setMessageDrivenContext(MessageDrivenContext ctx) throws EJBException{ this.ctx = ctx; } public void ejbRemove(){ctx=null;} public void ejbCreate(){} public void onMessage(Message m) { System.out.println("i have just received a message, and it says"+m.toString()); } } - The client code is: private void sendTestQueueMessage()throws Exception { Properties props = new Properties(); props = new Properties(); props.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFac tory"); props.put("java.naming.provider.url","localhost:1099"); props.put("java.naming.factory.url.pkgs","org.jboss.naming"); Context context = new InitialContext(props); QueueConnectionFactory queueFactory = (QueueConnectionFactory)context.lookup("QueueConnectionFactory"); QueueConnection connection = queueFactory.createQueueConnection(); QueueSession queueSession = connection.createQueueSession( false, Session.AUTO_ACKNOWLEDGE); Queue queue = (Queue)context.lookup("queue/testQueue"); QueueSender sender = queueSession.createSender(queue); TextMessage message = queueSession.createTextMessage("hello this is a message to a mdb"); System.out.println("HELLO"); sender.send(queue, message); // CRASHES HERE!! System.out.println("GOODBYE"); } - The jboss.xml has this in it: uk.co.isesolutions.util.scheduler.biz.TaskProxy Standard Message Driven Bean queue/testQueue - The ejb-jar.xml has this in it: uk.co.isesolutions.util.scheduler.biz.TaskProxy uk.co.isesolutions.util.scheduler.biz.TaskProxy Container Auto-acknowledge javax.jms.Queue uk.co.isesolutions.util.scheduler.biz.TaskProxy * Required - The jbossmq.xml has this: testQueue What is going on ?!?! Many thanks in advance. Disclaimer This communication together with any attachments transmitted with it ('this E-mail') is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are notified that any use of this E-mail is prohibited. Addressees should check this E-mail for viruses. The Carphone Warehouse Group PLC makes no representations as regards the absence of viruses in this E-mail. If you have received this E-mail in error please notify our ISe Response Team immediately by telephone on + 44 (0)20 8896 5828 or via E-mail at [EMAIL PROTECTED] Please then immedia
RE: [JBoss-user] How can i see JNDI tree?
Did you put jnpserver.jar or jnp-client.jar in CLASSPATH? I think that is the problem : -) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of pyliu8621 Sent: Friday, September 14, 2001 3:24 AM To: [EMAIL PROTECTED] Subject: re:[JBoss-user] How can i see JNDI tree? Now I have added these lines: System.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory"); System.setProperty("java.naming.provider.url", "localhost:1099"); the error is : " Cannot instantiate class: org.jnp.interfaces.NamingContextFactory" why? thanks for any hints! pylio --- thanks for Scott's help Now I have seen "estore/ReportForm" in jndi tree. I can confirm it. - +- estore | +- PLU | +- Payment | +- RTNReport | +- DlvDtl | +- Cheval | +- RtnHead | +- ReportForm* | +- CashStock | +- Adj | +- Mrk | +- DlvHead | +- PosulReport | +- Store | but why I can't get it in my another apllication (A) by ic.lookup("estore/ReportForm")? ic: InitialContext ic = new InitialContext(); perhaps ic is wrong? ** now jboss and my application A is in same one PC. thanks.$2(r)¨C¨C$2(r)?o~z??il2??q?¨¨?¡ìzltX??)?¡ê??¡é?.$2?(r)f ¨C)¨C+$2?(r)X??o¡¤~?zw??3???2?q?(r)z???tX?)¡ê?¡é? ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Re: [jetty-discuss] Re: Security and Jetty
Greg Wilkins <[EMAIL PROTECTED]> writes: > Can you also send me that section of your web.xml so that I can > test your exact setup. Is on it's way. > sorry about this - if you need to get past this point for testing > now, try using BASIC auth for the time being. We are demonstrating it right now. Whether it's on tomcat or not is not so much of an issue right now. I'd like to deploy on jetty though, which is end of this month. Thankx for your quick response :) -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] final public static String in PK class seen as cmp_field
Also, if it is declared as a private it is seen as a cmp_field. But a data member with final or static keywords should not be seen as a cmp_field. Does that make sense? It looks like it is saying since there is a cmp field (which is actually a constant) in the primary key class, it should also exist in the Bean class. I am getting the following exception: [AutoDeployer] org.jboss.deployment.J2eeDeploymentException: Error while starting my-model.jar: Could not deploy file:/var/jboss/tmp/deploy/Default/my-model.jar, Cause: org.jboss.ejb.DeploymentException: Could not deploy file:/var/jboss/tmp/deploy/Default/my-model.jar, Cause:org.jboss.ejb.DeploymentException: Bean MyBean has PK of type com.multideck.myModel.MyBeanPK, so it should have a cmp-field named CONST_MYBEANPK Is this correct? Frederick N. Brier Sr. Software Engineer Multideck Corporation ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] MDB listening to a queue not working?
Hi, I am trying to send a message to a queue which a MDB is listening to, however the onMessage() method never gets called, I just get a stacktrace telling me that the peer has reset the connection. ( I am using a JUnit TestCase as the Client on NT4 sp 4 with JBoss 2.4 (with tomcat running), JDK 1.3 ) I have provided bean and client code below, with the contents of the relevant xml files. - The stacktrace is as follows: New Client Connection accepted. Current Thread=Thread[OIL Worker,5,JBossMQ Server Threads] Client Connection set spyDistributedConnection, ClientID=ID2. Current Thread=Thread[OIL Worker,5,JBossMQ Server Threads] [java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read at java.net.SocketInputStream.socketRead(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:86) at java.io.BufferedInputStream.fill(BufferedInputStream.java:186) at java.io.BufferedInputStream.read(BufferedInputStream.java:204) at java.io.ObjectInputStream.peekCode(ObjectInputStream.java:1549) at java.io.ObjectInputStream.refill(ObjectInputStream.java:1683) at java.io.ObjectInputStream.read(ObjectInputStream.java:1659) at java.io.ObjectInputStream.readByte(ObjectInputStream.java:1905) at org.jbossmq.distributed.server.DistributedJMSServerOIL.run(DistributedJMSSer verOIL.java:79) at java.lang.Thread.run(Thread.java:484) - The bean code is very simple: public class TaskProxy implements MessageListener, MessageDrivenBean { MessageDrivenContext ctx = null; public TaskProxy(){} public void setMessageDrivenContext(MessageDrivenContext ctx) throws EJBException{ this.ctx = ctx; } public void ejbRemove(){ctx=null;} public void ejbCreate(){} public void onMessage(Message m) { System.out.println("i have just received a message, and it says"+m.toString()); } } - The client code is: private void sendTestQueueMessage()throws Exception { Properties props = new Properties(); props = new Properties(); props.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFac tory"); props.put("java.naming.provider.url","localhost:1099"); props.put("java.naming.factory.url.pkgs","org.jboss.naming"); Context context = new InitialContext(props); QueueConnectionFactory queueFactory = (QueueConnectionFactory)context.lookup("QueueConnectionFactory"); QueueConnection connection = queueFactory.createQueueConnection(); QueueSession queueSession = connection.createQueueSession( false, Session.AUTO_ACKNOWLEDGE); Queue queue = (Queue)context.lookup("queue/testQueue"); QueueSender sender = queueSession.createSender(queue); TextMessage message = queueSession.createTextMessage("hello this is a message to a mdb"); System.out.println("HELLO"); sender.send(queue, message); // CRASHES HERE!! System.out.println("GOODBYE"); } - The jboss.xml has this in it: uk.co.isesolutions.util.scheduler.biz.TaskProxy Standard Message Driven Bean queue/testQueue - The ejb-jar.xml has this in it: uk.co.isesolutions.util.scheduler.biz.TaskProxy uk.co.isesolutions.util.scheduler.biz.TaskProxy Container Auto-acknowledge javax.jms.Queue uk.co.isesolutions.util.scheduler.biz.TaskProxy * Required - The jbossmq.xml has this: testQueue What is going on ?!?! Many thanks in advance. Disclaimer This communication together with any attachments transmitted with it ('this E-mail') is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are notified that any use of this E-mail is prohibited. Addressees should check this E-mail for viruses. The Carphone Warehouse Group PLC makes no representations as regards the absence of viruses in this E-mail. If you have received this E-mail in error please notify our ISe Response Team immediately by telephone on + 44 (0)20 8896 5828 or via E-mail at [EMAIL PROTECTED] Please then immediately destroy this E-mail and any copies of it. Please feel free to visit our website: http://www.phonehouse.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] protected classes called by an EJB
Hi Scott, The problem with placing the protected classes in the ejb-jar is that they, the protected classes that is, depend on other, public classes in other packages in my application for more mundane functionality. When I try to deploy the ejb-jar this way, it fails, as the ClassLoader that loads the ejb-jar is not able to find the required classes needed to load the protected objects. I guess I could put the *entire* application in the ejb-jar, and just forget about placing anything in lib/ext, but this seems to against the normal concept of this jar. Is this a bad way to go? What are the problems with this approach? I guess one nice thing is that I could truly use hot-deploy to wipe out the application and deploy a new version without taking down the appserver. Thanks for your insight. -Eric - Original Message - From: "Scott M Stark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 17, 2001 7:22 PM Subject: Re: [JBoss-user] protected classes called by an EJB > Why not place the EJBs + the package access classes in the ejb-jar and the > rest in > a jar in lib/ext? > > - Original Message - > From: Eric Lindauer > To: [EMAIL PROTECTED] > Sent: Monday, September 17, 2001 3:57 PM > Subject: [JBoss-user] protected classes called by an EJB > > > Hi, > > I'd like to deploy an EJB that calls methods in a protected class in its own > package. I am currently trying to do this by jarring up all the protected > classes, along with the rest of my application, into a .jar file which I > place in lib/ext. In the ejbs deploy jar, I only place the minimum classes > ( Home, Remote, Bean, etc. ). > > I suspect that the problem arises because the EJB and the jar are loaded by > different ClassLoaders, leading to SecurityExceptions. It won't work to > place the protected classes in the EJB jar, as they are dependent on other, > public classes in different packages, etc... I could conceivably end up > placing my whole application in there. And to automate figuring out which > classes need to be present, fuhgedaboudit. > > So... any ideas? It doesn't kill my application to just make the other > classes public, but things would be a lot cleaner if they weren't. Thanks > for any help. > > Yours, > Eric > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Jboss JAAS and tomcat 4.0
I am stuck and need some suggestions. Within the JBoss context of things I try to get my application (JSP + EJB) running via tomcat 4.0 and JBoss. I use a JAAS authorization scheme, but what I keep getting is the exception shown below. java.security.AccessControlException: access denied (java.security.SecurityPermission getProperty.login.configuration.provider) I already added the following line to the catalina.policy file of tomcat 4.0 and started using the "startup -security" command. permission java.util.SecurityPermission "getProperty.login.configuration.provider"; The addition of the line above doesn't seem to make any impression whatsoever. Regards, Cor. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] EJB Entity design question: Can ejbRemove() be used to modify a row in the DB?
Yes, The beans use BMP. Sorry I forgot to mention that :-) Adam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Maurice le Rutte Sent: 18 September 2001 13:28 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] EJB Entity design question: Can ejbRemove() be used to modify a row in the DB? > I have several entity EJB's that model database tables. > Rows in the tables are never physically deleted, but rather they are > logically deleted by setting a "obsolete_indicator" column "Y". > > Can I use ejbRemove() to simply modify the row (setting this flag to "Y") or > will this break application server caching? Are there any other reasons why > I should not use ejbRemove()? I can't answer this, but I assume you are not using CMP? Otherwise your beans would still be accessible with findByPrimaryKey. Maurice. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Tomcat 4.0 is now final
Good news! Tomcat 4.0 is now final and mod_webapp connector should be final in the next couple of days. This should also mean we will be seeing a bundled release of Tomcat 4.0 and Jboss in the near future. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] DB2 Connecting problem remotely
2 comments 1. If you are running embedded tomcat version of jboss there is a different configuration directory I believe with its own copy of jboss.jcml. Perhaps you are modifying the wrong one. If there is no indication of jboss trying to load your XADataSourceLoader this is likely the case. 2. Instead of following the (written for 2.2) documentation, follow the (working) hypersonic example and use org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl not org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl david jencks On 2001.09.18 07:32:27 -0400 Krishna Prasad wrote: > John, > I'm very happy for giving immediate reply. > I tried the following way also. > > name="DefaultDomain:service=JdbcProvider"> > name="Drivers">org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,COM.ibm.db2.jdbc.app.DB2Driver > > > Eventhough no DB2 driver loaded. > Yeah, i'm sure that my DB driver name is > "COM.ibm.db2.jdbc.app.DB2Driver". > I attached my jboss.jcml file. Could you please suggest me what > code i have to add. > > --Krishna > > > > - Original Message - > From: John LYC > To: [EMAIL PROTECTED] > Sent: Tuesday, September 18, 2001 3:12 PM > Subject: Re: [JBoss-user] DB2 Connecting problem remotely > > > did you see yr DB driver being loaded > from the code... > i only see the default frivers being loaded > > also , you should have one instant of the follwoing mbean, the > JdbcProvider mbean. > from your code , you have this in yr jboss.jcml > > >name="DefaultDomain:service=JdbcProvider"> >COM.ibm.db2.jdbc.app.DB2Driver > > > according to the above code, the 2 default Driver should not have been > loaded... > please check, you might have added the above mbean and not remove the > exsiting one. > they are the same mbean and cannot co-exisit. > > if you still want the default dirver include yr driver to be loaded.. > just add yr driver to the exisiting "jdbcProvider" mbean... remmber, > onlye one "JdbcProvider" mbean can be there. the "drivers" attribute > within the mbean is a comma delimited list of jdbc drivers > check yr DB driver name too... are you shure it starts with uppercase > "COM".. > > --- > >name="DefaultDomain:service=JdbcProvider"> >name="Drivers">org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,COM.ibm.db2.jdbc.app.DB2Driver > > > -- > > john > > - Original Message - > From: Krishna Prasad > To: [EMAIL PROTECTED] > Sent: Tuesday, September 18, 2001 4:42 PM > Subject: Re: [JBoss-user] DB2 Connecting problem remotely > > > Yes John, > > you are absolutely correct. I found the following lines, > but not for DB2Driver, > > [JdbcProvider] Initializing > [JdbcProvider] Loaded JDBC-driver:org.hsql.jdbcDriver > [JdbcProvider] Loaded > JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver > [JdbcProvider] Initialized > > > > [JdbcProvider] Starting > [JdbcProvider] Started > [HypersonicDatabase] Starting > [HypersonicDatabase] Database started > [HypersonicDatabase] Started > > > > [XADataSourceLoader] Starting > [DefaultDS] XA Connection pool DefaultDS bound to > java:/DefaultDS > [Default] Server 1.4 is running > [Default] Press [Ctrl]+[C] to abort > [XADataSourceLoader] Started > . > > > Can any one tell me, What could be the reason? > The code for jdbc in jboss.jcml is, > > > > > >name="DefaultDomain:service=JdbcProvider"> > COM.ibm.db2.jdbc.app.DB2Driver > > name="DefaultDomain:service=XADataSource,name=DB2DS"> > name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl > > DB2DS > jdbc:db2://websphere:8080/demomall > wcs > wcs > > >name="DefaultDomain:service=Hypersonic"> > 1476 > true > default > false > > >name="DefaultDomain:service=XADataSource,name=InstantDB"> > InstantDB > name="DataSourceClass">org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl > > name="URL">jdbc:idb:../conf/default/instantdb.properties > 120 > > 10 > > false > false > false > true > 12 > 180 > false > false > 1.0 > 0 > > >name
Re: [JBoss-user] EJB Entity design question: Can ejbRemove() be used to modify a row in the DB?
> I have several entity EJB's that model database tables. > Rows in the tables are never physically deleted, but rather they are > logically deleted by setting a "obsolete_indicator" column "Y". > > Can I use ejbRemove() to simply modify the row (setting this flag to "Y") or > will this break application server caching? Are there any other reasons why > I should not use ejbRemove()? I can't answer this, but I assume you are not using CMP? Otherwise your beans would still be accessible with findByPrimaryKey. Maurice. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: [jetty-discuss] Re: Security and Jetty
Nicolai P Guba wrote: > Greg > > I've tried this fix but the problem persists. Unfortunately tomcat > and jetty seem to behave different when it comes to the security bit. Well form authentication has only recently been added to Jetty - so I'm sure it is more bugs than "different" behaviour. > For eg, when I had a page in the /protected area and wasn't logged on, > I got the logon screen from Tomcat. However, Jetty gives me > > HTTP ERROR: 500 Internal Server Error > > RequestURI=/restricted/ This should have produced an exception or some form of log message in the jetty log file or the console. Did you get one? > And the url on top of the browser says > > http://ejb.frontwire.com/restricted/? > > Ok. Now let's got to the login page directly and the output is the > same as before. > > HTTP ERROR: 404 Not Found > Could not find resource for /j_security_check > > RequestURI=/j_security_check You should be able to fix this one by making sure that the url-pattern for the security constraint includes /j_security_check. Can you also send me that section of your web.xml so that I can test your exact setup. sorry about this - if you need to get past this point for testing now, try using BASIC auth for the time being. cheers -- Greg Wilkins<[EMAIL PROTECTED]> GB Phone: +44-(0)7092063462 Mort Bay Consulting Australia and UK.Mbl Phone: +61-(0)4 17786631 http://www.mortbay.com AU Phone: +61-(0)2 98107029 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] EJB Entity design question: Can ejbRemove() be used to modify a row in the DB?
Folks, I have several entity EJB's that model database tables. Rows in the tables are never physically deleted, but rather they are logically deleted by setting a "obsolete_indicator" column "Y". Can I use ejbRemove() to simply modify the row (setting this flag to "Y") or will this break application server caching? Are there any other reasons why I should not use ejbRemove()? Thanks in advance Adam ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: [jetty-discuss] Re: Security and Jetty
Greg Wilkins <[EMAIL PROTECTED]> writes: > Nicolai P Guba wrote: > > > Greg Wilkins <[EMAIL PROTECTED]> writes: > > > >>Nicalai, > >> > >>RC9 contains a bug with FORM authentication. If the > >>URL j_security_check is not covered by the security contraint > >>then it is not handled correctly.I know this is counter > >>intuitive and it has already beed fixed for the next release. > >> > > Greg, thank you for the pointer. Could you kindly provide me with a > > more concise example on how I can fix this? > > The simplest thing to do is to probably get > > ftp://jetty.mortbay.org/pub/nightly/Jetty3-latest/lib/org.mortbay.jetty.jar > > And replace the org.mortbay.jetty.jar in your release. > Greg I've tried this fix but the problem persists. Unfortunately tomcat and jetty seem to behave different when it comes to the security bit. For eg, when I had a page in the /protected area and wasn't logged on, I got the logon screen from Tomcat. However, Jetty gives me HTTP ERROR: 500 Internal Server Error RequestURI=/restricted/ And the url on top of the browser says http://ejb.frontwire.com/restricted/? Ok. Now let's got to the login page directly and the output is the same as before. HTTP ERROR: 404 Not Found Could not find resource for /j_security_check RequestURI=/j_security_check H. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] DB2 Connecting problem remotely
did you see yr DB driver being loaded from the code... i only see the default frivers being loaded also , you should have one instant of the follwoing mbean, the JdbcProvider mbean. from your code , you have this in yr jboss.jcml COM.ibm.db2.jdbc.app.DB2Driver according to the above code, the 2 default Driver should not have been loaded... please check, you might have added the above mbean and not remove the exsiting one. they are the same mbean and cannot co-exisit. if you still want the default dirver include yr driver to be loaded.. just add yr driver to the exisiting "jdbcProvider" mbean... remmber, onlye one "JdbcProvider" mbean can be there. the "drivers" attribute within the mbean is a comma delimited list of jdbc drivers check yr DB driver name too... are you shure it starts with uppercase "COM".. --- org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,COM.ibm.db2.jdbc.app.DB2Driver -- john - Original Message - From: Krishna Prasad To: [EMAIL PROTECTED] Sent: Tuesday, September 18, 2001 4:42 PM Subject: Re: [JBoss-user] DB2 Connecting problem remotely Yes John, you are absolutely correct. I found the following lines, but not for DB2Driver, [JdbcProvider] Initializing [JdbcProvider] Loaded JDBC-driver:org.hsql.jdbcDriver [JdbcProvider] Loaded JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver [JdbcProvider] Initialized [JdbcProvider] Starting [JdbcProvider] Started [HypersonicDatabase] Starting [HypersonicDatabase] Database started [HypersonicDatabase] Started [XADataSourceLoader] Starting [DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS [Default] Server 1.4 is running [Default] Press [Ctrl]+[C] to abort [XADataSourceLoader] Started . Can any one tell me, What could be the reason? The code for jdbc in jboss.jcml is, COM.ibm.db2.jdbc.app.DB2Driver org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl DB2DS jdbc:db2://websphere:8080/demomall wcs wcs 1476 true default false InstantDB org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl jdbc:idb:../conf/default/instantdb.properties 120 10 false false false true 12 180 false false 1.0 0 DefaultDS org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl jdbc:HypersonicSQL:hsql://localhost:1476 120 sa 10 false false false true 12 180 false false 1.0 0 Help me out pls, --Krishna *DisclaimerThis message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of thismessage, or the taking of any action based on it, is strictly prohibited.*Visit us at http://www.mahindrabt.com
Re: [JBoss-user] DB2 Connecting problem remotely
Yes John, you are absolutely correct. I found the following lines, but not for DB2Driver, [JdbcProvider] Initializing [JdbcProvider] Loaded JDBC-driver:org.hsql.jdbcDriver [JdbcProvider] Loaded JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver [JdbcProvider] Initialized [JdbcProvider] Starting [JdbcProvider] Started [HypersonicDatabase] Starting [HypersonicDatabase] Database started [HypersonicDatabase] Started [XADataSourceLoader] Starting [DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS [Default] Server 1.4 is running [Default] Press [Ctrl]+[C] to abort [XADataSourceLoader] Started . Can any one tell me, What could be the reason? The code for jdbc in jboss.jcml is, COM.ibm.db2.jdbc.app.DB2Driver org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl DB2DS jdbc:db2://websphere:8080/demomall wcs wcs 1476 true default false InstantDB org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl jdbc:idb:../conf/default/instantdb.properties 120 10 false false false true 12 180 false false 1.0 0 DefaultDS org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl jdbc:HypersonicSQL:hsql://localhost:1476 120 sa 10 false false false true 12 180 false false 1.0 0 Help me out pls, --Krishna * Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. * Visit us at http://www.mahindrabt.com
[JBoss-user] differences btw JBoss_w_tomcat and non-integrated?
Hi all, as we know Tom_cat just release 4.0 i know i can install jboss and tomcat as seperate entities altogether... not the jboss bundle version. i was wondering... how does this impact me? configuration? my j2ee apps? has anyone did this beofre? can i just use the configuration files in $Jboss_Dist/conf/tomcat in the bundle version and run it? will that work? john ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Any Great JSP Tag Library
Hey, > Hi All, > > has anyone come across a great JSP Tag library that can be > use with the > current Jboss/tomcat 3.2.x ? One is WebWork. http://sourceforge.net/projects/webwork It's in release candidate 1, great stuff. Simon ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
AW: [JBoss-user] DB2 Connecting problem remotely
Are you sure about the port number, anyway? jdbc:db2://servername:8080/demomall Usually embedded Tomcat listens for HTTP connections on this port. Second, the package name should be started with uppercase letters: import COM.ibm.db2.*; //maybe this is your problem -Ursprüngliche Nachricht-Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Krishna PrasadGesendet: Dienstag, 18. September 2001 08:56An: [EMAIL PROTECTED]Betreff: [JBoss-user] DB2 Connecting problem remotely Hi all, I'm trying to get connection DB2 7.1 which is in remote system. I copied db2java.zip lib/ext directory under JBoss directory. I followed the document http://www.jboss.org/documentation/HTML/ch04s11.html In jboss.jcml, added code is: COM.ibm.db2.jdbc.app.DB2Driver org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl DB2DS jdbc:db2://servername:8080/demomall user pwd After I started run_with_tomcat, i'm not able to find out whether the connection established or not. I tried to run my client program, then i got errors like: package import com.ibm.db2.* ; does not exist So, can anyone help me out from this problem. Thanx in advance, Krishna *DisclaimerThis message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of thismessage, or the taking of any action based on it, is strictly prohibited.*Visit us at http://www.mahindrabt.com
Re: [JBoss-user] DB2 Connecting problem remotely
check yr jboss after it has startup... it should tell you something abt whether the XADatasource is started or not.. or whether yr jdbc driver is loaded... look for the following.. -- [JdbcProvider] Initializing[JdbcProvider] Loaded JDBC-driver:com.sybase.jdbc2.jdbc.SybDriver[JdbcProvider] Initialized ... ... ... [JdbcProvider] Starting[JdbcProvider] Started[XADataSourceLoader] Starting[DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS[XADataSourceLoader] Started ... -- if you dont see the above lines.. you most likey get some error msg from jboss paste it here... for everyone to have a better idea... John - Original Message - From: Krishna Prasad To: [EMAIL PROTECTED] Sent: Tuesday, September 18, 2001 2:55 PM Subject: [JBoss-user] DB2 Connecting problem remotely Hi all, I'm trying to get connection DB2 7.1 which is in remote system. I copied db2java.zip lib/ext directory under JBoss directory. I followed the document http://www.jboss.org/documentation/HTML/ch04s11.html In jboss.jcml, added code is: COM.ibm.db2.jdbc.app.DB2Driver org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl DB2DS jdbc:db2://servername:8080/demomall user pwd After I started run_with_tomcat, i'm not able to find out whether the connection established or not. I tried to run my client program, then i got errors like: package import com.ibm.db2.* ; does not exist So, can anyone help me out from this problem. Thanx in advance, Krishna *DisclaimerThis message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of thismessage, or the taking of any action based on it, is strictly prohibited.*Visit us at http://www.mahindrabt.com