[JBoss-user] [Beginners Corner] - Re: eBank error message: ejb.account doesn't exist
I meet the same question, Can you tell more detail ? which zip file incorrect ? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865378#3865378 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865378 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - CMP 2.0 with oracle-sequence and composite primary key
Hi All, I want to use the CMP 2.0 that would work with the oracle database sequence... I m using Jboss 4.0.1 as my application server. I have successfully used the Oracle sequence with my CMP 2.0, but it works only when the primary key is a single field primary key and not a composite key for which PrimaryKeyClass would have to be used. Example when the primary key is a single field:: in ejb-jar.xml::== prim-key-classjava.lang.Integer/prim-key-class primkey-fieldno/primkey-field in the jbosscmp-jdbc.xml file ::== unknown-pk unknown-pk-classjava.lang.Integer/unknown-pk-class field-nameno/field-name column-nameNO/column-name jdbc-typeInteger/jdbc-type sql-typeInteger/sql-type auto-increment/ /unknown-pk entity-command name=oracle-sequence tempseq /entity-command Here field-nameno/field-name is my field on which oracle-sequence is appliedand so that I dont have to pass that field while calling create method of the bean (CMP 2.0)... The problem I face is that in one of the tables, the primary key is a composite key, constituting of 4 fields. On one of the fields out of these, the oracle-sequence is to be applied. But the above described method does not work in the case of composite primary key. Could some one please help me out in this ? the ejb-jar.xml file has the following entry for the primary key class::== prim-key-classcom.business.process.EjbTwoPK/prim-key-class in the jbosscmp-jdbc.xml file the entry for the field on which sequence is applied, is::== unknown-pk unknown-pk-classcom.business.process.EjbTwoPK/unknown-pk-class field-nameemailId/field-name column-nameEMAIL_ID/column-name jdbc-typeInteger/jdbc-type sql-typeInteger/sql-type auto-increment/ /unknown-pk entity-command name=oracle-sequence MT_REQ_EMAIL_ID_SEQ /entity-command But with above configuration, at deployment time, I get following exception . == org.jboss.deployment.DeploymentException: Generation only supported with single PK field at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.getGenerated PKField(JDBCAbstractCreateCommand.java:160) at org.jboss.ejb.plugins.cmp.jdbc.JDBCIdentityColumnCreateCommand.initGe neratedFields(JDBCIdentityColumnCreateCommand.java:46) at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.init(JDBCAbs tractCreateCommand.java:84) at org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCOracleCreateCommand.init(JD BCOracleCreateCommand.java:37) at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateEntityC ommand(JDBCCommandFactory.java:151) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDB CStoreManager.java:466) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManage Please guide me in using Oracle-sequence with CMP 2.0 EntityBean when the primary key is composite key and the application server used is JBoss 4.0.1. Thanks in advance, View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865379#3865379 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865379 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Two simple questions about MDBs
Instead of wasting so many words on mocking me. Could you not just have answered my question? A URL to a FAQ, a book? Something? Thank you and goodnight. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865380#3865380 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865380 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [HTTPD, Servlets JSP] - JSP paradigm versus Swing paradigm
(If this is mis-posted, and should be in the J2EE patterns forum instead, apologies - tell me and I'l cross-post it). In my research, I am concentrating very much on coding web applications with a swing-like paradigm, using projects such as Echo (http://nextapp.com/products/echo) or WebOnSwing (http://webonswing.sourceforge.net/xoops) My rationale is that virtually no developer in their right mind wans to bother with a page-oriented paradigm, that requires separate development of pages, configuration of controller, etc. There are too many disparate elements to deal with in order to get the final product. In all my experience, this approach has led to very poor productivity and quality. What the Object-Oriented developer wants is to code object-oriented code, develop rich and elegant frameworks using inheritance, interfaces and the OOpatterns we are all so familiar with. Using Echo, we have implemented this approach, and productivity and quality has gone through the roof. I am interested in other people's point of view here. Am I missing the point somehow? Why would anyone recommend the page-oriented approach for anything other than the static text display that HTML was originally designed for? Am I making a mistake and architecting myself down any blind alleys? Flame me. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865381#3865381 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865381 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Question about ClientMonitorInterceptor
I use ClientMonitorIntecepor for disconnects clients that have been idle for to long. My client used HTTPConnection (HTTPConnectionFactory) to subscribe to the nondurable topic. If client don't receive messages during ClientTimeout time interceptor close connection for it, because http connection is stateles and client don't ping server even I set PingPeriod for http connection to some value difference from 0, and getClientStats(dc).lastUsed value udate only if client receive any message from the server. But client send sends post request to the server for get messages from temprory queu. May be I can change ClientMonitorInterceptor or HTTPClientILStorageQueue.java for update lastUsed value in ClinetMonitorInterceptor then client do post if even no message it temprory queue? If it's possible how I can do it? Or I do not right uderstand how it's work? Now I use simple sevice that send simple test message to the topic every time do detect that client is not killed yet(in this case lastUsed time update every time than client recieve message, because he is used receive method for it). View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865383#3865383 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865383 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Stop Displaying Exception PrintStackTRace in Server Console
Hi Friends, I want to know is there any option to stop displaying exception printStackTrace in Jboss Server Console. For Example, If i add a record in the table which already exists.The exception printstacktrace shows. | Could not create entity | java.sql.SQLException: Invalid argument value, message from server: Duplicate entry 'Np1' for key 2 | at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1905) | at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1109) | at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1203) | at com.mysql.jdbc.Connection.execSQL(Connection.java:2090) | at | Help me friends if you have any ideas. Thanks Siva View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865384#3865384 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865384 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Binding to multiple interfaces
Scenario: a machine with say 5 interfaces How does one get JBoss to bind to say three of these and ignore the rest? I know of the -b start-up option, but that binds JBoss to only one interface. Can one instance of JBoss bind to more than one interface? I am starting to suspect that one has to run a cluster of JBosses and bind each to one interface. Thanks, View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865386#3865386 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865386 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [HTTPD, Servlets JSP] - Re: FormAuthValve
most likely you will have to patch JBOSS_HOME/server/instance/deploy/jbossweb-tomcat50.sar/catalina.jar with a patched Authenticators.properties to point out the new FormAuthenticator subclass. I dislike the idea of overriding the FormAuthenticator class, much nicer to hook into the request pipeline with an independant valve such as the FormAuthValve. For my needs it suffice to: 1. In web.xml set form-error-page to login-error-client-redirect.jsp that does | %-- do an extra request/response roundtrip --% | body onLoad=window.location = 'login-error.jsp'/ | . 2. Have login-error.jsp format the LoginException that was set in the session by Scott's FormAuthValve. /niklas View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865387#3865387 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865387 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [HTTPD, Servlets JSP] - Re: FormAuthValve
The problem with that aproach is that ALL my application is protected: /* /login-error.jsp wont be displayed since it is protected also. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865389#3865389 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865389 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: Invalid url-pattern /WEB-INF/*.tld
I have the same kind of error. I am using JBoss 4.0.1 (with embedded Tomcat/5.0.28). If I try this: servlet-mapping servlet-nametestservlet/servlet-name url-pattern/me/*.do/url-pattern /servlet-mapping OR servlet-mapping servlet-nametestservlet/servlet-name url-patternme/*.do/url-pattern /servlet-mapping OR servlet-mapping servlet-nametestservlet/servlet-name url-patternme\*.do/url-pattern /servlet-mapping I get the error below (note: the servlet itself exists, and I've changed the name several times and that's not what is causing the problem). 10:41:38,265 ERROR [ContextConfig] Parse error in application web.xml java.lang.IllegalArgumentException: Invalid url-pattern /me/*.do in servlet mapping at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.endElement(Digester.java:1061) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:263) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:624) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4290) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5441) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:332) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:85) at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:374) at org.jboss.web.WebModule.startModule(WebModule.java:62) at org.jboss.web.WebModule.startService(WebModule.java:40) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at
[JBoss-user] [JBoss Getting Started Documentation] - j2eetutorail14 issue - it does't work for jboss following GE
When I try to deploy the j2ee tutorial into jboss4.0.1, all stages seems succesfull (compile, package-ejb, package-web ..), except following errors: deployer: [EMAIL PROTECTED] status: Deployment FAILED reason: Verification of Enterprise Beans failed, see above for error messages. state: FAILED watch: file:/D:/jboss-4.0.1/server/default/deploy/JBossDukesBank.ear altDD: null Any input what happens? Thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865391#3865391 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865391 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: Errors in Jboss 3.2.5
The class is in a jar and I put the jar file in the /clients directory. It compiles, but runtime dies. Here is the code in the bean class. I was just testing it . package com.javiers.j2ee; import java.rmi.RemoteException; import javax.ejb.SessionBean; import javax.ejb.SessionContext; import com.javiers.JaviersBroker.FitnessBroker; public class LoginBean implements SessionBean { /** * */ public boolean login(String username, String password) { boolean res; String loginxml = com.javiers.contactmanagement.WSContact + + username + + password + ; FitnessBroker fb = new FitnessBroker(loginxml); System.out.println(loginxml = + loginxml); String result = fb.processRequest(); System.out.println(result = + result); if ( result.indexOf(FAILURE) == -1 ) { res = true; } else { res = false; } return res; } public LoginBean(){} public void ejbCreate() {} public void ejbRemove() {} public void ejbActivate() {} public void ejbPassivate() {} public void setSessionContext(SessionContext sc) {} } Thanks. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865393#3865393 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865393 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Javassist user questions] - Re: reading java 5.0 annotations
Can you replace AnnotationsAttribute.invisibleTag with AnnotationsAttribute.visibleTag in the above test code and try again? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865395#3865395 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865395 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Javassist user questions] - Re: Get a private final static field
You can obtain the value of a final static field if you go down to the lower-level API of Javassist (I agree that the next release of Javassist support this function with the regular API). You must get a java.bytecode.FieldInfo object from CtField and then obtain a ConstantAttribute object from that FieldInfo. Finally, you must search a constant pool in a class file to find the field value. Note that this way works only for some basic types of fields, for example, int or String. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865398#3865398 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865398 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: Invalid url-pattern /WEB-INF/*.tld
Its from the servlet 2.4 spec, 11.2. The url-pattern must be one of: anonymous wrote : | + A string beginning with a ?/? character and ending with a ?/*? suffix is used | for path mapping. | + A string beginning with a ?*.? prefix is used as an extension mapping. | + A string containing only the ?/? character indicates the default servlet of | the application. In this case the servlet path is the request URI minus the context | path and the path info is null. | + All other strings are used for exact matches only. | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865399#3865399 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865399 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Javassist user questions] - Re: Detecting and replacing operators expressions with Javas
I recommend using the lower-level API of Javassist, that is, javassist.bytecode.*. In fact, ExprEditor is a sort of wrapper on top of that package. I don't recommend you to use BCEL since it is slow. You should use either Javassist or ObjectWeb ASM. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865400#3865400 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865400 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Remote client and EJB (JBoss 4.0.x)
Anybody know the code for remote client if using JBoss 4? I wrote the remote client to work for JBoss 3.2.x, but it can't work on JBoss 4. Any inputs would be highly appreciated. Thnx in advance View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865403#3865403 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865403 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [HTTPD, Servlets JSP] - Re: FormAuthValve
It can be overriden at the web app using a WEB-INF/context.xml that specifies the valve implementing the Authenticator interface: | Context | Valve className=com.acme.authenticator.FormAuthenticator | disableProxyCaching=true / | /Context | The Authenticators.properties is loaded using the class path, so a conf/org/apache/catalina/startup/Authenticators.properties may work as an override but I have not tested it. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865404#3865404 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865404 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Javassist user questions] - Re: reading java 5.0 annotations
Thanks for suggestion. I did that: I can now get as far as seeing the @Author attribute, but cannot retrieve the name() element. In fact, getMemberNames() always is null. Benedict Here's a self-contained test class that shows the problem . Thanks Benedict | | import java.lang.annotation.Retention; | import java.lang.annotation.RetentionPolicy; | import java.util.Arrays; | import java.util.List; | import java.util.Set; | | import javassist.ClassPool; | import javassist.CtClass; | import javassist.CtMethod; | import javassist.bytecode.AnnotationsAttribute; | import javassist.bytecode.AttributeInfo; | import javassist.bytecode.ClassFile; | import javassist.bytecode.MethodInfo; | import javassist.bytecode.SourceFileAttribute; | import javassist.bytecode.annotation.Annotation; | import javassist.bytecode.annotation.StringMemberValue; | import junit.framework.TestCase; | import junit.textui.TestRunner; | | /** | * This test demonstrates that when I try to access annotations using Javassist, | * I can get the annotation per se, but the membernames are always null, so I | * can't access the data within the annotation. | * p | * Output is: | * | * pre | . | | -testJavassistMethodAnnotations | raw [EMAIL PROTECTED] class ProblemTest$Thing fields=ProblemTest$Thing.this$0:LProblemTest;, [EMAIL PROTECTED] ProblemTest$Thing (LProblemTest;)V], [EMAIL PROTECTED] methodWithAuthor ()V], [EMAIL PROTECTED] methodWithoutAuthor ()V], ] | | -CtMethod: [EMAIL PROTECTED] methodWithAuthor ()V] | attr:@ProblemTest$Author | Author annotation:@ProblemTest$Author | author.getMemberNames is null | F. | | -testClassAnnotations | demoCtClass: [EMAIL PROTECTED] class ProblemTest$Thing fields=ProblemTest$Thing.this$0:LProblemTest;, [EMAIL PROTECTED] ProblemTest$Thing (LProblemTest;)V], [EMAIL PROTECTED] methodWithAuthor ()V], [EMAIL PROTECTED] methodWithoutAuthor ()V], ] | classfile: [EMAIL PROTECTED] | interfaces: [] | attributes: [EMAIL PROTECTED], [EMAIL PROTECTED], @ProblemTest$Author] | | --- | attribute:[EMAIL PROTECTED] | an AttributeInfo is of class: class javassist.bytecode.SourceFileAttribute - [EMAIL PROTECTED] | | --- | attribute:[EMAIL PROTECTED] | an AttributeInfo is of class: class javassist.bytecode.InnerClassesAttribute - [EMAIL PROTECTED] | | --- | attribute:@ProblemTest$Author | annotations: [EMAIL PROTECTED] | | ++annotation: @ProblemTest$Author of class class javassist.bytecode.annotation.Annotation | interfaces: [] | typename:ProblemTest$Author | memberNames: null | We have found the Author annotation, but cannot look at the members! | memberValue-name: null | stringMemberValue: null | F | Time: 0.141 | There were 2 failures: | 1) testJavassistMethodAnnotations(ProblemTest)junit.framework.AssertionFailedError: stringmembervalue for name() is null | at ProblemTest.testJavassistMethodAnnotations(ProblemTest.java:166) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at ProblemTest.main(ProblemTest.java:274) | 2) testClassAnnotations(ProblemTest)junit.framework.AssertionFailedError: On Author annotation, memberNames is null! | at ProblemTest.dumpAnnotation(ProblemTest.java:261) | at ProblemTest.testClassAnnotations(ProblemTest.java:217) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at ProblemTest.main(ProblemTest.java:274) | | FAILURES!!! | Tests run: 2, Failures: 2, Errors: 0 | | | * /pre | * | * @author bheal . | */ | public class ProblemTest extends TestCase { | | @Retention(RetentionPolicy.RUNTIME)// | public @interface Author { | | String name() default me; | | int age() default 999; | } | | @Author// | class Thing { | | @Author public void methodWithAuthor() { | } | | public void methodWithoutAuthor() { | } | } | | public void setUp() { | echo(\n\n- + getName()); | } | | /** | * * Output is: | * | * pre | * | * | * | * | * | * | * | * | * | * | * | * | * .classname:ProblemTest$Thing | * .raw [EMAIL PROTECTED] class
[JBoss-user] [Beginners Corner] - Re: Properties
Do you have experience loading properties froma file in JBoss 3.x? I have done that a lot and never had trouble. I am sorry to say that I don't have JBoss 4.0 experience so I cannot comment on any differences that arise from the version change. In 3.x we put properties files in the server/default/conf directory or inside the WAR file in WEB-INF/classes. Both of these locations load using getClass().getResourceAsStream() or by loading a resource bundle using the current class loader's methods. Is there a server/default/conf folder in JBoss 4? Have you tried WEB-INF/classes? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865406#3865406 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865406 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: JSP compilation problem
yes I am trying to run JMX-console, I am not sure where ANT is used. I thought Tomcat might be using ANT to compile JSP? Thanks Xjava View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865407#3865407 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865407 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - AXIS, and JBOSS 3.2.6 with embedded Tomcat 5.0
I have what I hope is a simple problem/question after installation of AXIS on Jboss 3.2.6 I attempt to run the EchoHeaders.jws and recieve the following: Fault - Error while compiling: C:\jboss-3.2.6\server\all\deploy\webapps\axis.war\WEB-INF\jwsClasses\EchoHeaders.java AxisFault faultCode: {http://xml.apache.org/axis/}Server.compileError faultString: Error while compiling: C:\jboss-3.2.6\server\all\deploy\webapps\axis.war\WEB-INF\jwsClasses\EchoHeaders.java faultActor: null faultDetail: Errors: Error compiling C:\jboss-3.2.6\server\all\deploy\webapps\axis.war\WEB-INF\jwsClasses\EchoHeaders.java: Line 0, column 0: could not parse error message: Note: sun.tools.javac.Main has been deprecated. C:\jboss-3.2.6\server\all\deploy\webapps\axis.war\WEB-INF\jwsClasses\EchoHeaders.java:59: Class javax.servlet.http.HttpServletRequest not found in import. import javax.servlet.http.HttpServletRequest; This I believe is caused by jaxrpc.jar and saaj.jar not being available . When I run Happyaxis.jsp it reports: The core axis libraries are present. 1 optional axis library is missing Note: On Tomcat 4.x and Java1.4, you may need to put libraries that contain java.* or javax.* packages into CATALINA_HOME/common/lib jaxrpc.jar and saaj.jar are two such libraries. But in Jboss 3.2.6 there is no such directory CATALINA_HOME/common/lib . So how do I solve this problem, and where do I put jaxrpc.jar and saaj.jar so that they are available . Thanks very much, Alexander Berry, Jr. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865411#3865411 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865411 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: Invalid url-pattern /WEB-INF/*.tld
A little more research on this found me this link: http://www.javakb.com/Uwe/Forum.aspx/java-tools/501/Tomcat-5-0-web-xml-filter-mapping-url-pattern-content-jsp Guess my issue with this is that if you are running pointing to a 2.3 DTD shouldn't it work as it used to? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865413#3865413 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865413 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: Invalid url-pattern /WEB-INF/*.tld
The 2.3 servlet spec has the same mapping rules. If tomcat 4.1 did not throw an exception for an invalid url-pattern, file a bug report on the tomcat site asking if the more leniant behavior can be enabled. In general they are anal about not allowing what they view as non-spec behavior. http://jakarta.apache.org/site/bugs.html View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865415#3865415 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865415 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Deploying EJB Problems
Hello Mario202 Thanks again for the help. I tried with the new ejb-jar.xml It does not help. I don't even get any errors at all. Strange! But when I do the http:/127.0.0.1:8080 it does bring up the Jboss web page. Also I am using run -c all under bin directory to run the Jboss after placing the simple.jar file in server/all/deploy directory. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865416#3865416 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865416 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: I am the coord and I'm being am suspected
The member to the 'left' of the coordinator (first and oldest member in the group) suspects that the coord has died. Could be caused by an overloaded member process. You could replace FD with FD_SOCK (no parameters), then this should disappear View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865418#3865418 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865418 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Upgarding from JBOSS 2.4.1 to JBOSS 4
Can somebody help , I have upgraded my application from JBOSS 2.4 to Jboss 4 everything else works fine but when my finder is returning 2 records and it goes into Enumeration code then it throws, java.rmi.NoSuchObjectException.But the same code works well if enumeration gets only one record.Can any body help in this.For reference i am putting the stack trace below 17:18:36,366 ERROR [LogInterceptor] TransactionRolledbackException in method: public abstract com.calloff.model.CalloffVO com.calloff.persistance.Calloff.getData() throws java.rmi.RemoteException, causedBy: java.rmi.NoSuchObjectException: Entity not found: [EMAIL PROTECTED] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:187) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:313) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:146) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:123) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:514) at org.jboss.ejb.Container.invoke(Container.java:870) at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104) at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:115) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:101) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55) at org.jboss.proxy.ejb.EntityInterceptor.invoke(EntityInterceptor.java:97) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:91) at $Proxy372.getData(Unknown Source) at com.calloff.business.CalloffHandlerEJB.updateCalloffContract(CalloffHandlerEJB.java:603) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.invocation.Invocation.performCall(Invocation.java:345) at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:113) at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51) at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:313) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:146) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:123) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192) at