[JBoss-user] [Installation, Configuration Deployment] - Error page for mod_jk installtation
Hi I have an Apache 2 -- JBoss 4.0.2 server using mod_jk2. When jboss is down, a redirect brings up an error page with a status code of 200. I would like to trap this with (the equivalent of, or) an Apache ErrorDocument. I can't figure out where this behavior (the Status code, presumably generated by the mod_jk module) is controlled. Anyone know how to do this? TIA ---Raymond View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3888722#3888722 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888722 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - jboss 4.0.2, hibernate3 and mysql NullPointer problem
jboss 4.0.2, hibernate3 and mysql NullPointer problem I am trying to deploy a simple persistence class using hibernate3 on Jboss 4.0.2 with database being mysql. Following is the my hibernate-service.xml java:/mySQL org.hibernate.dialect.MySQLDialect java:/hibernate/SessionFactory org.hibernate.cache.HashtableCacheProvider !-- create-drop -- My Customer.hbm.xml ?xml version=1.0? !DOCTYPE hibernate-mapping PUBLIC -//Hibernate/Hibernate Mapping DTD 2.0//EN http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd; hibernate-mapping package=com.anand.data id name=no type=int unsaved-value=null column name=number sql-type=integer not-null=true/ property name=name not-null=true/ /hibernate-mapping My persistent class public class Customer { public int no; public String name; /** * @return Returns the name. */ public String getName() { return name; } /** * @param name The name to set. */ public void setName(String name) { this.name = name; } /** * @return Returns the no. */ public int getNo() { return no; } /** * @param no The no to set. */ public void setNo(int no) { this.no = no; } } As soon as i deploy this my my jboss crashes. Any idea what could be wrong I am attaching the stacktrace below. 16:56:33,343 INFO [ConnectionFactoryBindingService] Bound connection factory for res ource adapter for ConnectionManager 'jboss.jca:name=JmsXA,service=ConnectionFactoryBi nding to JNDI name 'java:JmsXA' 16:56:33,515 INFO [WrapperDataSourceService] Bound connection factory for resource a dapter for ConnectionManager 'jboss.jca:name=mySQL,service=DataSourceBinding to JNDI name 'java:mySQL' 16:56:34,109 INFO [Environment] Hibernate 3.0.2 16:56:34,109 INFO [Environment] hibernate.properties not found 16:56:34,109 INFO [Environment] using CGLIB reflection optimizer 16:56:34,125 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling 16:56:34,296 INFO [Hibernate] Using JDBC batch size : null 16:56:34,312 ERROR [Hibernate] Starting failed jboss.har:service=Hibernate java.lang.NullPointerException at org.jboss.hibernate.jmx.Hibernate.buildSessionFactory(Hibernate.java:595) at org.jboss.hibernate.jmx.Hibernate.startService(Hibernate.java:578) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSuppor t.java:272) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSu pport.java:222) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm pl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.ja va:141) 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:644) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.j ava:897) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:418) at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm pl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.ja va:141) 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:644) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy4.start(Unknown Source) at org.jboss.deployment.SARDeployer.start(SARDeployer.java:273) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:956) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738) at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source) at
[JBoss-user] [Security JAAS/JBoss] - Re: LoginContext retrieving
Thanks for your answer, anyway the explanation you give in the FAQ is really short and doesn't tell why if I put a breakpoint into the login() method of my login moduleit shows that the login() is not called the second time. The following steps display my scenario: 1) First time I login the breakpoint stops execution, showing that myLoginModule.login() has been called 2) I logout, invalidating the session in my logout action 3) I login again at the login page, logon is successful, but the breakpoint doesn't stop execution Can you please explain this fact to me, please? TREMALNAIK View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3888728#3888728 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888728 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Stickiness and load balancing does not work at the same time
Hello, based on the info from Wiki and some other resources, I was able to setup Apache -- mod_jk -- JBoss 4.0.1 using single node. However I had problems with clustering. It seems that, I can only use sticky behavior, or load balancing, not both at the same time. When I changed my workers.properties file to: | worker.node2.port=8109 | worker.node2.host=localhost | worker.node2.type=ajp13 | worker.node2.lbfactor=100 | worker.node2.local_worker=1 | | worker.node1.port=8209 | worker.node1.host=localhost | worker.node1.type=ajp13 | worker.node1.lbfactor=100 | worker.node1.local_worker=1 | | worker.loadbalancer.type=lb | worker.loadbalancer.balanced_workers=node2,node1 | worker.loadbalancer.sticky_session=1 | worker.loadbalancer.local_worker_only=1 | JMeter load tests keep going to the same server. One node is not utilized at all, it is as if the second node (whichever node is listed last in the worker.loadbalancer.balanced_worker list) does not exist. If I comment out worker.node2.local_worker line for both nodes, then I get load balancing, but no session stickiness. I have checked the jmvRoute option in server.xml file, it looks OK. I am using Apache 1.3, JDK 1.4.2 and JBoss 4.0.1 running on SuSe 8. I've read JBossClustering.pdf document (which is for JBoss 3). Any help would be appreciated. Thanks, View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3888731#3888731 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888731 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Re: JBoss not setting up application-policy entries
Easy to find on jmx-console: log in to http://localhost:8080/jmx-console/ click on link to service=JNDIView click on button 'Invoke' to MBean operation String list() look in the java: Namespace section, under the jaas branch, on my server the section looks like this: | +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) | +- DefaultDS (class: javax.sql.DataSource) | +- SecurityProxyFactory (class: org.jboss.security.SubjectSecurityProxyFactory) | +- DefaultJMSProvider (class: org.jboss.jms.jndi.JNDIProviderAdapter) | +- comp (class: javax.naming.Context) | +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) | +- jdbc (class: org.jnp.interfaces.NamingContext) | | +- SurveyDS (class: javax.sql.DataSource) | | +- RealmDS (class: javax.sql.DataSource) | | +- LinklibDS (class: javax.sql.DataSource) | | +- UserDS (class: javax.sql.DataSource) | +- JmsXA (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl) | +- jaas (class: javax.naming.Context) | | +- JmsXARealm (class: org.jboss.security.plugins.SecurityDomainContext) | | +- jbossmq (class: org.jboss.security.plugins.SecurityDomainContext) | | +- HsqlDbRealm (class: org.jboss.security.plugins.SecurityDomainContext) | +- timedCacheFactory (class: javax.naming.Context) | Failed to lookup: timedCacheFactory, errmsg=org.jboss.util.TimedCachePolicy | +- TransactionPropagationContextExporter | +- StdJMSPool (class: org.jboss.jms.asf.StdServerSessionPoolFactory) | +- Mail (class: javax.mail.Session) | +- TransactionPropagationContextImporter | +- TransactionManager (class: org.jboss.tm.TxManager) | I looked at that code as well, it's obviously within that, the line of logging output points in that direction too: | TRACE [org.jboss.security.auth.login.XMLLoginConfigImpl] Begin loadConfig, loginConfigURL=file:/home | /java/jboss-4.0.2/server/default/conf/login-config.xml | but I also did a few experiments trying to get setup other application-policies, using JBoss examples and I couldn't get them to work in the 'default' server. The only application-policies that JBoss will read for me are from the example app which sets up a complete new directory in the server dir. Confusing. Basically though my guess is that a big nasty exception is getting swallowed up without any log output, and that's where the answer will be. I'm pretty snowed under this weekend but I'll try to get onto it ASAP. Obviously if you do first, make sure you report back! Good luck (and for me!) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3888737#3888737 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888737 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Class re-Loading after compile
I'm porting from Weblogic to JBOSS 4.0.2, In weblogic when I used to compile a class (such as a utility or action class) it reloaded the class automatically. In JBOSS, I'm not able to configure this. I have spent endless hours trying to do so. Is this possible at all. Please let me know if you need an details. I really need this to work, please help. Thanks, Row View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3888738#3888738 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888738 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Jboss 3 to 4 and hibernate sars x har
Hi. I upgraded my jboss from 3.x to 4 series and I got a problem with my hibernate sar. My application was deployed as an EAR with a SAR inside: app.ear --- app.sar --(hbm.xml files) --meta-inf -jboss-service.xml (referencing classpath to external jars) ---app.war(...) --- meta-inf (...) But something weird started to happen. The service is registered, the jboss log does not give any error, but when I try to lookup it just returns null. It does not return a not-found error... what is strange! I see that there is a more integrated way to do this with the har archive... but I found the wiki unclear on how to use it. I just don't TRUST it! can't make it work. is the sar deprecated for hibernate deployment? I really wanted to make my EAR JBOSS VERSION INDEPENDENT. my jboss-service is: | server |classpath codebase='deploy/pettwo.ear/pettwo.war/WEB-INF/lib/' archives='*' / |classpath codebase='deploy/pettwo.ear/' archives='*' / |mbean code=org.hibernate.jmx.HibernateService name=jboss.jca:service=pettwoHibernateSessionFactory |dependsjboss.jca:service=RARDeployer/depends |attribute name=MapResources | (...my files...) | /attribute |attribute name=JndiNamejava:/hibernate/pettwoSessionFactory/attribute |attribute name=Datasourcejava:/jdbc/pettwo/attribute |attribute name=Dialectorg.hibernate.dialect.PostgreSQLDialect/attribute |attribute name=UserTransactionNamejava:comp/UserTransaction/attribute |attribute name=TransactionStrategyorg.hibernate.transaction.JTATransactionFactory/attribute |attribute name=TransactionManagerLookupStrategyorg.hibernate.transaction.JBossTransactionManagerLookup/attribute |/mbean | /server | my java lookup code is: | InitialContext ic = new InitialContext(); | SessionFactory _sessionFactory = (SessionFactory) ic.lookup(java:/hibernate/pettwoSessionFactory); | the jboss log: anonymous wrote : 2005-08-05 18:09:58,984 DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] initializing class SessionFactoryObjectFactory | 2005-08-05 18:09:58,984 DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] JNDI lookup: hibernate/pettwoSessionFactory | 2005-08-05 18:09:58,984 DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] lookup: uid=402880830588776801058877718c | 2005-08-05 18:09:58,984 WARN [org.hibernate.impl.SessionFactoryObjectFactory] Not found: 402880830588776801058877718c | It worked fine on jboss 3x series. Thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3888739#3888739 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888739 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - jboss-5.0.0alpha NoClassDefFoundError
Hello all, receiving NoClassDefFoundError in the last cvs-checkout. Older checkouts no showing this error. It is a super-class for a servlet which is defined in the web.xml. The superclass is shure in a library under WEB-INF/lib. Thanks for help Harald View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3888742#3888742 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888742 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JNDI/Naming/Network] - Re: Accessing EJB through HTTPS Invoker...
Hi Jim all, Following my previous post, I got it to work by opening port (the RmiObject port). I guess that the scenario specified above allow only JNDI access via HTTPs but the RMI is not encrypted. I then have setup RMI over SSL without too much trouble (see Chap 8 of the Jboss Admin Dev guide). And, yes you will require a port to be open 14445 in the example. The trick is that the client application MUST have access to a trustore if your server certificate is self-signed. You may want to create your public/private keys then export the X509 certificate and then import it in another keystore and distribute that one instead of the original (as it would only contain the public key through the certificate). I can post a bit more if you want. Best regards from London (yeah, then English one) Benoit View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3888747#3888747 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888747 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: Stickiness and load balancing does not work at the same
burakbayramli wrote : Hello, based on the info from Wiki Which you either didn't read or decided to not to use, because your configuration is not the same as that shown there. http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingMod_jk1.2WithJBoss Anyway, I changed the footnote to step #5 to make it more clear and I added a short summary at the top. Print it out and tick each step when you've done it. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3888750#3888750 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888750 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Complex types in WS4EE.
Does anyone have a working example of using a DII client to access a web service with custom types? I am almost there but am not having any luck specifying the correct parameter values for the method described in the Wiki which takes the additional parameters to locate the type mappings and the WIki falls short of actually giving an example usage (just shows parameters but not actual values) Thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3888755#3888755 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888755 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Re: How to Forward to a Particular Page if Login is of a Par
As the clock is ticking and no further answer is visible at the horizon, I decided to drop the redirection/reforward idea at form-error-page and experiment with having an error page element for this as shown below: | error-page | error-code403/error-code | location/showLogonErrors.do/location | /error-page | Just for information to anyone who might stumble upon similar problem. Cheers View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3888756#3888756 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888756 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: Stickiness and load balancing does not work at the same
Thanks, this worked. I had been using Apache 1.3, so I was taking some parts of Wiki and not others. To get things running, I did have to recompile both Apache 2 and mod_jk from sources however. If there is any need for this info on the Wiki, I can add them. Regards, View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3888759#3888759 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888759 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Nukes User] - Which JBoss versions...
Hi, I just tried to deploy nukes on JBoss 4.0.2. I followed the instructions in install.txt but still I got a lot of exceptions. There's a lot of talk about Nukes 3.2.x. Is it only specific versions of JBoss that works with Nukes? Best regards Lasse View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3888762#3888762 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888762 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - mod_jk fails on certain file names (
I recently installed JBoss on XP, and set up an Apache proxy using mod_jk. Everything works fine except I cannot access any files through port 80 if the file name contains the words get or post. For example, I am trying to use a web application that contains post.gif, but the image is not accessible through 80. It works fine through 8080. I looked at the mod_jk log file (on debug) and all logs on Apache and JBoss, but I don't see anything related. Is there a way around this issue without changing the web application? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3888763#3888763 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888763 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Nukes User] - Re: Which JBoss versions...
Hi. Look at this thread http://www.jboss.com/index.html?module=bbop=viewtopict=66495 In jboss 4.0.2 two things are wrong for nukes. -You need to move files from /lib/endorsed into /lib as they are needed during compilation. -I think that there is some differences in classes in /lib/jboss-jmx.jar between 4.0.2 and 3.2.3 Try jboss AS 3.2.3 - nukes from cvs head should deploy there for sure (just set JBOSS_HOME, provide proper JavaCC.zip and follow the instructions in wiki - carefully - there are some minor differences). Please let me know if you'll be able to deploy on 4.0.2... View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3888764#3888764 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888764 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Is this A dumb Question -- How to map table name to bean nam
I am new to J2EE w/jboss. Where do I map the name of a table in which I want to pesist my bean to the name of the bean? To date, I always let the container create my Entity Bean's persitance tables and never had to think about it. But for the first time I need to map a bean to a preexisting table with a funny name, and I just realized I don't know which xml discriptior file to use to map the bean to the funny table name. Can I do that, or is it like java class names that have to be in file with the same name as the class. Thanx. George View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3888765#3888765 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888765 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Complex types in WS4EE.
I realized after posting that I wasn't very clear on what my roadblock is, sorry I have this working to the point where I can run an application client and get an exception that there are no deserializers for my Custom Type. I have a ws4ee-deployment.xml file and believe that I need to use the version of the createService method described on the Wiki. But I am unable to code a correct URL for ws4eeLocation. Can someone help me out or point me to a working example? | * @param wsdlLocationURL for the WSDL document location | * @param jaxrpcLocation An optional URL for the jaxrpc-mapping.xml location | * @param ws4eeLocation An optional URL for the ws4ee-deployment.xml location | * @param serviceName QName for the service. | * @param portNameAn optional port name | * @return Service. | * @throws ServiceException If any error in creation of the | * specified service | */ | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3888770#3888770 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888770 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - how to read/write to clobs under jBoss 4+ with Oracle 9i?
I've been looking everywhere for a solution for this problem but no luck. I am using Oracle 9i, thin drivers (the jar version 1.4), jBoss 3.1rc. I want to read/write to a clob field. The code worked very well under OC4J 1.3 but now on jBoss it simply does not work. I am using just JDBC no cmps or ejbs. Can someone help me please? 20:26:35,046 INFO [STDOUT] ..getConnection() Connection Count [1] 20:26:35,187 INFO [STDOUT] ReadForm() lFormID 20:26:35,203 INFO [STDOUT] localCxn [$Proxy74] 20:26:35,203 INFO [STDOUT] statement [$Proxy75] 20:27:08,078 INFO [STDOUT] java.lang.reflect.UndeclaredThrowableException 20:27:08,078 INFO [STDOUT] at $Proxy76.getClob(Unknown Source) 20:27:08,078 INFO [STDOUT] at FG_TalkBack.FG_Form_DAL.getValue_clob(FG_Form_DAL.java:351) 20:27:08,078 INFO [STDOUT] at FG_TalkBack.FG_Form_DAL.get_FormProperties(FG_Form_DAL.java:750) 20:27:08,093 INFO [STDOUT] at FG_TalkBack.FG_DataAccessLayer.ReadForm(FG_DataAccessLayer.java:451) 20:27:08,093 INFO [STDOUT] at FG_TalkBack.GetDataServlet.doPost(GetDataServlet.java:125) 20:27:08,093 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 20:27:08,109 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 20:27:08,109 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) 20:27:08,109 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 20:27:08,109 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) 20:27:08,109 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) 20:27:08,109 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 20:27:08,109 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) 20:27:08,109 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) 20:27:08,125 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) 20:27:08,125 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153) 20:27:08,125 INFO [STDOUT] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) 20:27:08,125 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) 20:27:08,125 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 20:27:08,125 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) 20:27:08,125 INFO [STDOUT] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 20:27:08,125 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) 20:27:08,140 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) 20:27:08,140 INFO [STDOUT] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) 20:27:08,140 INFO [STDOUT] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) 20:27:08,140 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595) 20:27:08,156 INFO [STDOUT] Caused by: java.lang.IllegalAccessException: Method=public abstract java.sql.Clob java.sql.ResultSet.getClob(java.lang.String) throws java.sql.SQLException does not return Serializable 20:27:08,156 INFO [STDOUT] at org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService.doResultSetMethod(WrapperDataSourceService.java:475) 20:27:08,156 INFO [STDOUT] at org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService.invoke(WrapperDataSourceService.java:249) 20:27:08,156 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source) 20:27:08,156 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 20:27:08,156 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585) 20:27:08,156 INFO [STDOUT] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) 20:27:08,156 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) 20:27:08,171 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) 20:27:08,171 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245) 20:27:08,171 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) 20:27:08,171 INFO [STDOUT] at
[JBoss-user] [JCA/JBoss] - Problem whit many connections DB in SQL Server 2000
We have a set of applications and , each app connect with 3 different DB, two DB are shared for all app, and the others are only use for each app Example app db att des --- att des --- att des If run only one app, all work nice, but when run many app's the Shared DB (att,des) work nice, but the others work randomly(some times update the db, sometimes not, but ever read nicely). This app's run over JBoss 4.0.2 whit MS SQL server 2000 (Microsoft's Driver). this is the mssql-ds.xml . local-tx-datasource jndi-namedes/jndi-name connection-urljdbc:microsoft:sqlserver://PROGRAMACION\\DESARROLLO:1433;DatabaseName=des/connection-url driver-classcom.microsoft.jdbc.sqlserver.SQLServerDriver/driver-class user-namesa/user-name prepared-statement-cache-size50/prepared-statement-cache-size min-pool-size5/min-pool-size max-pool-size50/max-pool-size idle-timeout-minutes15/idle-timeout-minutes track-statementsfalse/track-statements type-mappingMS SQLSERVER2000/type-mapping many other's here How we can do? Many thank's for your answers... and sorry for my english, I'm latin View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3888771#3888771 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888771 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: ClusteredSingleSignOn - TreeCacheSSOClusterManager fails
My initial thought on this is that what you're suggesting seems like a reasonable option, but having read the tomcat-dev thread, I have to agree that doing this expands the scope of the SingleSignOn valve from handling authentication issues to managing session lifecycle, which is a pretty big change. (I consider invalidating associated sessions when one session in the SSO is invalidated for reasons other than timeout to be authentication related, although I can understand your point of view :) In any case, for maintainability reasons I want to keep the logic of ClusteredSingleSignOn the same as the Tomcat SingleSignOn valve on which it is based (except, of course, for communicating with the clustering layer). So, I wouldn't want to add this to ClusteredSingleSignOn unless the Tomcat folks were willing to add it to their version. (Besides Remy is the lead on JBoss/Tomcat integration, so I wouldn't add something he doesn't agree with). All that being said, I'm more than happy to help you get a custom version working. I suspect your problem is that your keepaliveSessions block is being executed too early. A session is not actually bound to the SingleSignOnEntry until the associate() method is called. This happens later in the pipeline, when the request gets to the authenticate() method of one of the Tomcat authenticators (e.g. org.apache.catalina.authenticator.BasicAuthenticator). If you move your keepaliveSessions block to ClusteredSingleSignOn.associate(), I believe this will fix your problem (haven't tried it myself). BTW, needing to move this block to associate() slightly increases my concern about adding this option. Now we're doing somethat that affects session lifecycle in an obscure location, rather than in a call from the invoke() method. Best regards, View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3888777#3888777 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888777 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JNDI/Naming/Network] - JNDI Lookup in Cluster Environment
Hi all, We have developed our application on a Weblogic server and right now we are migrating to JBoss. I have gone through the tutorials of Jboss Cluserting. And I'm testing my application in Jboss clustering environment and my application is failing and this is happening because od JNDI lookup in my JSP page. In my Jboss-xml, I specified JNDI name as | session | ejb-nameInitializationSLBean/ejb-name | jndi-nameInitializationSLHome/jndi-name | clusteredtrue/clustered | /session JNDI lookup code in my JSP for InitializationSLBean is given below and the error which it is printing it on the console is ClassCastException and the last debug statement is printed as InitializationSLHomeHome. Properties prop = new Properties(); | prop.put(InitialContext.PROVIDER_URL, jnp://localhost:1099); | Context context = new InitialContext(prop); | InitializationSLHome initializationSLHome = (InitializationSLHome) context.lookup(InitializationSLHome); | System.out.println(initializationSLHome ::: + initializationSLHome); Same code is working in a non clustered environment. please help me to solve this problem View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3888778#3888778 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888778 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user