Re: [JBoss-user] [HTTPD, Servlets JSP] - Re: JSTL/JBoss/JSP error
Ed: Send your email address tom me at [EMAIL PROTECTED] and I'll send you what you want. I'm using JBoss 4.0.1. Jack epleisman wrote: Jack - great news that you got this fixed... So - the only way around this right now is to recompile JBoss? Did I read correctly thatmodifying the properties file is NON effective? Also - any way you can saved me time and send me the new .class or .jar file I need? Would be really helpful. Thanks so much. `Ed Leisman View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3861777#3861777 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3861777 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] [HTTPD, Servlets JSP] - Re: JSTL/JBoss/JSP error
Scott: Thanks for your reply. The exception is coming from a custom tag library that I use for scheduling. This code works fine in v3.2.7 but not in v4.0.1. I tried several different combinations in the 'properties-service.xml' file, all of which generated mbean errors. I don't have a clue as to what should be used here. Is the a way to disable the default date parser? Any help would be appreciated. Thanks, Jack org.jboss.util.NestedRuntimeException: Unparseable date: Mon Dec 27 16:49:16 PST 2004; - nested throwable: (java.text.ParseException: Unparseable date: Mon Dec 27 16:49:16 PST 2004) org.jboss.util.propertyeditor.DateEditor.getValue(DateEditor.java:42) org.apache.taglibs.standard.lang.jstl.Coercions.coerceToObject(Unknown Source) org.apache.taglibs.standard.lang.jstl.Coercions.coerce(Unknown Source) org.apache.taglibs.standard.lang.jstl.ELEvaluator.convertStaticValueToExpectedType(Unknown Source) org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(Unknown Source) org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(Unknown Source) org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Unknown Source) org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Unknown Source) org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate(Unknown Source) com.nwc.tags.DateSelectTag.doEndTag(DateSelectTag.java:120) --- CODE SNIP --- public int doEndTag() throws JspException { /* * Evaluate the EL expression, if any */ Integer days = (Integer) ExpressionEvaluatorManager.evaluate(days, daysEL, Integer.class, this, pageContext); THIS IS THE LINE THAT THROWS THE EXCEPTION java.util.Date attribSelect = (java.util.Date) ExpressionEvaluatorManager.evaluate(select, selectEL, java.util.Date.class, this, pageContext); String name = (String) ExpressionEvaluatorManager.evaluate(name, nameEL, String.class, this, pageContext); String expires = (String) ExpressionEvaluatorManager.evaluate(expires, expiresEL, String.class, this, pageContext); Calendar now = Calendar.getInstance(); now.set(Calendar.HOUR_OF_DAY, 0); now.set(Calendar.MINUTE, 0); now.set(Calendar.SECOND, 0); now.set(Calendar.MILLISECOND, 0); SimpleDateFormat displayFormat = new SimpleDateFormat(MMM dd (EE)); SimpleDateFormat valueFormat = new SimpleDateFormat(MMMdd); HttpServletResponse response = (HttpServletResponse) pageContext.getResponse(); try { JspWriter out = pageContext.getOut(); out.write(SELECT NAME=\ + name + \); java.util.Date today = valueFormat.parse(valueFormat.format(now.getTime())); java.util.Date select = null; if (attribSelect == null) { Calendar invalid = Calendar.getInstance(); invalid.set(Calendar.HOUR_OF_DAY, 0); invalid.set(Calendar.MINUTE, 0); invalid.set(Calendar.SECOND, 0); invalid.set(Calendar.MILLISECOND, 0); invalid.set(Calendar.DAY_OF_YEAR, invalid.get(Calendar.DAY_OF_YEAR) + days.intValue() + 1); select = valueFormat.parse(valueFormat.format(invalid.getTime())); } else { select = valueFormat.parse(valueFormat.format(attribSelect)); } if (select.before(today)) { if (expires.equals(yes)) { out.write(OPTION SELECTED CLASS=\red\ VALUE=\ + valueFormat.format(select) + \Expired/OPTION); } else { out.write(OPTION SELECTED VALUE=\ + valueFormat.format(select) + \ + displayFormat.format(select) + /OPTION); } } --- END CODE SNIP --- [EMAIL PROTECTED] wrote: Apparently the new version is using java bean property editors for the string conversion, and jboss installs its own date property editor. This is simply doing the following: |public Object getValue() |{ | try | { | DateFormat df = DateFormat.getDateInstance(); | return df.parse(getAsText()); | } | catch (ParseException e) | { | throw new NestedRuntimeException(e); | } |} | This is using the locale default format parser, which is not very flexible. You can use the properties-service.xml PropertyEditorManagerService to | mbean code=org.jboss.varia.property.PropertyEditorManagerService | name=jboss:type=Service,name=PropertyEditorManager | | !-- || Register and editor for each of the type_name=editor_type_name listed || in properties file style convetion. | -- | attribute name=Editors | java.util.Date=my.project.editors.DateEditor | /attribute | | /mbean | Presumably there is a DateEditor in the jstl release that should be used. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3859637#3859637 Reply to the post :
Re: [JBoss-user] [JCA/JBoss] - Re: Connection errors using Connector/J 3.0.13 with JBoss/My
I had the same problem. Mark released 3.0.14 yesterday and the problem was solved. (See the change log). Jack tbauer wrote: Uhh, well, what I want to know is whether there is a bug in Connector/J 3.0.13 or is there another NEW feature in jboss 3.2.4FC2 that causes the connections to fail?? With Connector/J 3.0.13 I get a connection errors...If I stop the server, and replace it with 3.0.11 everything works fine --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] [Beginners Corner] - JAVA_HOME set, not finding /lib/tools.jar
I assume you out the JAVA_HOME line in /etc/profile. Add this line below it: export JAVA_HOME Then log out and log back in. santoshamb wrote: I'm trying to set up JBoss - In /etc/default/jboss I have the line: JAVA_HOME=/usr/lib/j2sdk1.4.2 I've verified that /usr/lib/j2sdk1.4.2 is good, and that lib/tools.jar exists However, when I start jboss using run.sh it gives me the following error at the beginning of the startup process: run.sh: Missing file: /lib/tools.jar run.sh: Unexpected results may occur. Make sure JAVA_HOME points to a JDK and not a JRE. All documentation that I can find says that this error points to an improperly configured JAVA_HOME. But as far as I can tell, JAVA_HOME is set correctly. What else could be causing this problem? Thanks for the help, Ben View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3829033#3829033 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3829033 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Authentication Problem
Scott: I have attached both the boot.log and server.log as seperate zip files as requested. Thanks, Jack Jack Lauman wrote: I am trying to move an app from 3.0.7 to 3.2.3RC1 and am getting the following error. Apparently it's trying to connect to hsqldb instead of the mysql db named java:/RestaurantDS. The app works correctly under 3.0.7. I would appreciate any help in resolving this. I have included a short stack trace, login-config.xml and restaurant-ds.xml. Thanks, Jack --snip-- [org.jboss.system.server.Server] JBoss (MX MicroKernel) [3.2.3RC1 (build: CVSTag=JBoss_3_2_3_RC1 date=200311101720)] Started in 1m:35s:493ms INFO [STDOUT] 95508 [main] INFO org.jboss.system.server.Server - JBoss (MX MicroKernel) [3.2.3RC1 (build: CVSTag=JBoss_3_2_3_RC1 date=200311101720)] Started in 1m:35s:493ms DEBUG [org.apache.tomcat.util.threads.ThreadPool] Getting new thread data INFO [STDOUT] 399044 [TP-Processor3] DEBUG org.apache.tomcat.util.threads.ThreadPool - Getting new thread data INFO [org.jboss.security.plugins.JaasSecurityManagerService] Created [EMAIL PROTECTED] INFO [STDOUT] 399210 [TP-Processor4] INFO org.jboss.security.plugins.JaasSecurityManagerService - Created [EMAIL PROTECTED] INFO [org.jboss.security.plugins.JaasSecurityManagerService] setCachePolicy, [EMAIL PROTECTED] INFO [STDOUT] 399212 [TP-Processor4] INFO org.jboss.security.plugins.JaasSecurityManagerService - setCachePolicy, [EMAIL PROTECTED] INFO [org.jboss.security.plugins.JaasSecurityManagerService] Added RestaurantSecurityRealm, [EMAIL PROTECTED] to map INFO [STDOUT] 399213 [TP-Processor4] INFO org.jboss.security.plugins.JaasSecurityManagerService - Added RestaurantSecurityRealm, [EMAIL PROTECTED] to map ERROR [org.jboss.security.auth.spi.DatabaseServerLoginModule] Query failed java.sql.SQLException: Table not found: USER in statement [SELECT Password FROM User WHERE UserID = 'jlauman'] at org.hsqldb.Trace.getError(Unknown Source) at org.hsqldb.jdbcResultSet.init(Unknown Source) at org.hsqldb.jdbcConnection.executeStandalone(Unknown Source) at org.hsqldb.jdbcConnection.execute(Unknown Source) at org.hsqldb.jdbcStatement.fetchResult(Unknown Source) at org.hsqldb.jdbcStatement.executeQuery(Unknown Source) at org.hsqldb.jdbcPreparedStatement.executeQuery(Unknown Source) at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:304) at org.jboss.security.auth.spi.DatabaseServerLoginModule.getUsersPassword(DatabaseServerLoginModule.java:100) at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:150) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) --snip-- -- restaurant-ds.xml -- ?xml version=1.0 encoding=UTF-8? !-- = -- !-- -- !-- JBoss Server Configuration -- !-- -- !-- = -- !-- $Id: mysql-ds.xml,v 1.1 2002/07/22 22:57:24 d_jencks Exp $ -- !-- -- !-- Datasource config for MySQL using 3.0.9 driver -- !-- -- datasources local-tx-datasource jndi-nameRestaurantDS/jndi-name connection-urljdbc:mysql://localhost:3306/restaurants/connection-url driver-classcom.mysql.jdbc.Driver/driver-class user-name/user-name password/password min-pool-size5/min-pool-size max-pool-size20/max-pool-size !-- Use the getConnection(user, pw) for logins application-managed-security/ -- !-- Use the security domain defined in conf/login-config.xml -- security-domainRestaurantDbRealm/security-domain !-- Use the security domain defined in conf/login-config.xml or the getConnection(user, pw) for logins. The security domain takes precidence. security-domain-and-applicationRestaurantDbRealm/security-domain-and-application -- !-- Add this depends tag if you are using the tcp connection url dependsjboss:service=Hypersonic/depends -- /local-tx-datasource /datasources -- login-config.xml -- ?xml version='1.0'? !DOCTYPE policy PUBLIC -//JBoss//DTD JBOSS Security Config 3.0//EN http://www.jboss.org/j2ee/dtd/security_config.dtd; policy !-- Used by clients within the application server VM such as mbeans and servlets that access EJBs. -- application-policy name = RestaurantSecurityRealm
Re: [JBoss-user] Authentication Problem
Scott: Sorry, forgot the files. Thanks again, Jack Jack Lauman wrote: I am trying to move an app from 3.0.7 to 3.2.3RC1 and am getting the following error. Apparently it's trying to connect to hsqldb instead of the mysql db named java:/RestaurantDS. The app works correctly under 3.0.7. I would appreciate any help in resolving this. I have included a short stack trace, login-config.xml and restaurant-ds.xml. Thanks, Jack --snip-- [org.jboss.system.server.Server] JBoss (MX MicroKernel) [3.2.3RC1 (build: CVSTag=JBoss_3_2_3_RC1 date=200311101720)] Started in 1m:35s:493ms INFO [STDOUT] 95508 [main] INFO org.jboss.system.server.Server - JBoss (MX MicroKernel) [3.2.3RC1 (build: CVSTag=JBoss_3_2_3_RC1 date=200311101720)] Started in 1m:35s:493ms DEBUG [org.apache.tomcat.util.threads.ThreadPool] Getting new thread data INFO [STDOUT] 399044 [TP-Processor3] DEBUG org.apache.tomcat.util.threads.ThreadPool - Getting new thread data INFO [org.jboss.security.plugins.JaasSecurityManagerService] Created [EMAIL PROTECTED] INFO [STDOUT] 399210 [TP-Processor4] INFO org.jboss.security.plugins.JaasSecurityManagerService - Created [EMAIL PROTECTED] INFO [org.jboss.security.plugins.JaasSecurityManagerService] setCachePolicy, [EMAIL PROTECTED] INFO [STDOUT] 399212 [TP-Processor4] INFO org.jboss.security.plugins.JaasSecurityManagerService - setCachePolicy, [EMAIL PROTECTED] INFO [org.jboss.security.plugins.JaasSecurityManagerService] Added RestaurantSecurityRealm, [EMAIL PROTECTED] to map INFO [STDOUT] 399213 [TP-Processor4] INFO org.jboss.security.plugins.JaasSecurityManagerService - Added RestaurantSecurityRealm, [EMAIL PROTECTED] to map ERROR [org.jboss.security.auth.spi.DatabaseServerLoginModule] Query failed java.sql.SQLException: Table not found: USER in statement [SELECT Password FROM User WHERE UserID = 'jlauman'] at org.hsqldb.Trace.getError(Unknown Source) at org.hsqldb.jdbcResultSet.init(Unknown Source) at org.hsqldb.jdbcConnection.executeStandalone(Unknown Source) at org.hsqldb.jdbcConnection.execute(Unknown Source) at org.hsqldb.jdbcStatement.fetchResult(Unknown Source) at org.hsqldb.jdbcStatement.executeQuery(Unknown Source) at org.hsqldb.jdbcPreparedStatement.executeQuery(Unknown Source) at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:304) at org.jboss.security.auth.spi.DatabaseServerLoginModule.getUsersPassword(DatabaseServerLoginModule.java:100) at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:150) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) --snip-- -- restaurant-ds.xml -- ?xml version=1.0 encoding=UTF-8? !-- = -- !-- -- !-- JBoss Server Configuration -- !-- -- !-- = -- !-- $Id: mysql-ds.xml,v 1.1 2002/07/22 22:57:24 d_jencks Exp $ -- !-- -- !-- Datasource config for MySQL using 3.0.9 driver -- !-- -- datasources local-tx-datasource jndi-nameRestaurantDS/jndi-name connection-urljdbc:mysql://localhost:3306/restaurants/connection-url driver-classcom.mysql.jdbc.Driver/driver-class user-name/user-name password/password min-pool-size5/min-pool-size max-pool-size20/max-pool-size !-- Use the getConnection(user, pw) for logins application-managed-security/ -- !-- Use the security domain defined in conf/login-config.xml -- security-domainRestaurantDbRealm/security-domain !-- Use the security domain defined in conf/login-config.xml or the getConnection(user, pw) for logins. The security domain takes precidence. security-domain-and-applicationRestaurantDbRealm/security-domain-and-application -- !-- Add this depends tag if you are using the tcp connection url dependsjboss:service=Hypersonic/depends -- /local-tx-datasource /datasources -- login-config.xml -- ?xml version='1.0'? !DOCTYPE policy PUBLIC -//JBoss//DTD JBOSS Security Config 3.0//EN http://www.jboss.org/j2ee/dtd/security_config.dtd; policy !-- Used by clients within the application server VM such as mbeans and servlets that access EJBs. -- application-policy name = RestaurantSecurityRealm authentication login-module code
[JBoss-user] Authentication Problem
I am trying to move an app from 3.0.7 to 3.2.3RC1 and am getting the following error. Apparently it's trying to connect to hsqldb instead of the mysql db named java:/RestaurantDS. The app works correctly under 3.0.7. I would appreciate any help in resolving this. I have included a short stack trace, login-config.xml and restaurant-ds.xml. Thanks, Jack --snip-- [org.jboss.system.server.Server] JBoss (MX MicroKernel) [3.2.3RC1 (build: CVSTag=JBoss_3_2_3_RC1 date=200311101720)] Started in 1m:35s:493ms INFO [STDOUT] 95508 [main] INFO org.jboss.system.server.Server - JBoss (MX MicroKernel) [3.2.3RC1 (build: CVSTag=JBoss_3_2_3_RC1 date=200311101720)] Started in 1m:35s:493ms DEBUG [org.apache.tomcat.util.threads.ThreadPool] Getting new thread data INFO [STDOUT] 399044 [TP-Processor3] DEBUG org.apache.tomcat.util.threads.ThreadPool - Getting new thread data INFO [org.jboss.security.plugins.JaasSecurityManagerService] Created [EMAIL PROTECTED] INFO [STDOUT] 399210 [TP-Processor4] INFO org.jboss.security.plugins.JaasSecurityManagerService - Created [EMAIL PROTECTED] INFO [org.jboss.security.plugins.JaasSecurityManagerService] setCachePolicy, [EMAIL PROTECTED] INFO [STDOUT] 399212 [TP-Processor4] INFO org.jboss.security.plugins.JaasSecurityManagerService - setCachePolicy, [EMAIL PROTECTED] INFO [org.jboss.security.plugins.JaasSecurityManagerService] Added RestaurantSecurityRealm, [EMAIL PROTECTED] to map INFO [STDOUT] 399213 [TP-Processor4] INFO org.jboss.security.plugins.JaasSecurityManagerService - Added RestaurantSecurityRealm, [EMAIL PROTECTED] to map ERROR [org.jboss.security.auth.spi.DatabaseServerLoginModule] Query failed java.sql.SQLException: Table not found: USER in statement [SELECT Password FROM User WHERE UserID = 'jlauman'] at org.hsqldb.Trace.getError(Unknown Source) at org.hsqldb.jdbcResultSet.init(Unknown Source) at org.hsqldb.jdbcConnection.executeStandalone(Unknown Source) at org.hsqldb.jdbcConnection.execute(Unknown Source) at org.hsqldb.jdbcStatement.fetchResult(Unknown Source) at org.hsqldb.jdbcStatement.executeQuery(Unknown Source) at org.hsqldb.jdbcPreparedStatement.executeQuery(Unknown Source) at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:304) at org.jboss.security.auth.spi.DatabaseServerLoginModule.getUsersPassword(DatabaseServerLoginModule.java:100) at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:150) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) --snip-- -- restaurant-ds.xml -- ?xml version=1.0 encoding=UTF-8? !-- = -- !-- -- !-- JBoss Server Configuration -- !-- -- !-- = -- !-- $Id: mysql-ds.xml,v 1.1 2002/07/22 22:57:24 d_jencks Exp $ -- !-- -- !-- Datasource config for MySQL using 3.0.9 driver -- !-- -- datasources local-tx-datasource jndi-nameRestaurantDS/jndi-name connection-urljdbc:mysql://localhost:3306/restaurants/connection-url driver-classcom.mysql.jdbc.Driver/driver-class user-name/user-name password/password min-pool-size5/min-pool-size max-pool-size20/max-pool-size !-- Use the getConnection(user, pw) for logins application-managed-security/ -- !-- Use the security domain defined in conf/login-config.xml -- security-domainRestaurantDbRealm/security-domain !-- Use the security domain defined in conf/login-config.xml or the getConnection(user, pw) for logins. The security domain takes precidence. security-domain-and-applicationRestaurantDbRealm/security-domain-and-application -- !-- Add this depends tag if you are using the tcp connection url dependsjboss:service=Hypersonic/depends -- /local-tx-datasource /datasources -- login-config.xml -- ?xml version='1.0'? !DOCTYPE policy PUBLIC -//JBoss//DTD JBOSS Security Config 3.0//EN http://www.jboss.org/j2ee/dtd/security_config.dtd; policy !-- Used by clients within the application server VM such as mbeans and servlets that access EJBs. -- application-policy name = RestaurantSecurityRealm authentication login-module code = org.jboss.security.auth.spi.DatabaseServerLoginModule