11 Replies Latest reply on Mar 13, 2007 8:13 AM by justinb

    Something is wrong with the JSP files  in the Duke's Bank Tu

    vegas

      Hello Alll,

      I'm working my way through the j2ee/jboss tutorial. I've run into a stumbling block on chapter 4 of the tutorial. All of the Ant scripts run fine for me, but once the application is deployed, trying to use many of the applications' features results in unsightly error messages. Specifically, it seems that the .jsp files have an illegal unicode '0x1b' character in their CDATA sections or somesuch. I don't know diddly about unicode-encoding, but I'm thinking that maybe this is a result of the jsps being written in ASCII or something and SAX thinking they're unicode? Hopefully there's someone wise and friendly around that can make more sense of this. Following, please find a script of the server output from startup through deployment through several of the aforementioned errors.

      Cheers,

      Alex
      (error output follows)

      =========================================================================

      JBoss Bootstrap Environment

      JBOSS_HOME: /var/jboss/jboss-4.0.5.GA

      JAVA: /opt/jdk1.5.0_03/bin/java

      JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

      CLASSPATH: /var/jboss/jboss-4.0.5.GA/bin/run.jar:/opt/jdk1.5.0_03/lib/tools.jar

      =========================================================================

      15:44:43,187 INFO [Server] Starting JBoss (MX MicroKernel)...
      15:44:43,189 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
      15:44:43,191 INFO [Server] Home Dir: /var/jboss/jboss-4.0.5.GA
      15:44:43,204 INFO [Server] Home URL: file:/var/jboss/jboss-4.0.5.GA/
      15:44:43,206 INFO [Server] Patch URL: null
      15:44:43,219 INFO [Server] Server Name: default
      15:44:43,219 INFO [Server] Server Home Dir: /var/jboss/jboss-4.0.5.GA/server/default
      15:44:43,220 INFO [Server] Server Home URL: file:/var/jboss/jboss-4.0.5.GA/server/default/
      15:44:43,220 INFO [Server] Server Log Dir: /var/jboss/jboss-4.0.5.GA/server/default/log
      15:44:43,239 INFO [Server] Server Temp Dir: /var/jboss/jboss-4.0.5.GA/server/default/tmp
      15:44:43,240 INFO [Server] Root Deployment Filename: jboss-service.xml
      15:44:44,185 INFO [ServerInfo] Java version: 1.5.0_03,Sun Microsystems Inc.
      15:44:44,186 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_03-b07,Sun Microsystems Inc.
      15:44:44,186 INFO [ServerInfo] OS-System: Linux 2.6.14-1.1653_FC4.stk16,i386
      15:44:45,709 INFO [Server] Core system initialized
      15:44:53,121 INFO [WebService] Using RMI server codebase: http://localhost:8083/
      15:44:53,175 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
      15:45:15,298 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
      15:45:18,344 INFO [Embedded] Catalina naming disabled
      15:45:18,452 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
      15:45:18,455 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
      15:45:19,921 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
      15:45:19,935 INFO [Catalina] Initialization processed in 1460 ms
      15:45:19,936 INFO [StandardService] Starting service jboss.web
      15:45:19,943 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.20
      15:45:20,055 INFO [StandardHost] XML validation disabled
      15:45:20,341 INFO [Catalina] Server startup in 405 ms
      15:45:20,823 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
      15:45:21,543 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
      15:45:22,851 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
      15:45:23,233 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp58500jbossws-context-exp.war/
      15:45:26,433 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
      15:45:33,936 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
      15:45:35,746 INFO [MailService] Mail Service bound to java:/Mail
      15:45:36,295 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
      15:45:36,480 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
      15:45:36,553 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
      15:45:37,688 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
      15:45:37,811 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
      15:45:37,964 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
      15:45:39,779 INFO [STDOUT] [Server@369fdc]: [Thread[hypersonic-default,5,jboss]]: checkRunning(false) entered
      15:45:39,780 INFO [STDOUT] [Server@369fdc]: [Thread[hypersonic-default,5,jboss]]: checkRunning(false) exited
      15:45:39,781 INFO [STDOUT] [Server@369fdc]: Startup sequence initiated from main() method
      15:45:39,781 INFO [STDOUT] [Server@369fdc]: Loaded properties from [/var/jboss/jboss-4.0.5.GA/server.properties]
      15:45:39,810 INFO [STDOUT] [Server@369fdc]: Initiating startup sequence...
      15:45:39,832 INFO [STDOUT] [Server@369fdc]: Server socket opened successfully in 14 ms.
      15:45:40,989 INFO [STDOUT] [Server@369fdc]: Database [index=0, id=0, db=file:/var/jboss/jboss-4.0.5.GA/server/default/data/hypersonic/default, alias=] opened sucessfully in 1008 ms.
      15:45:40,992 INFO [STDOUT] [Server@369fdc]: Startup sequence completed in 1176 ms.
      15:45:41,031 INFO [STDOUT] [Server@369fdc]: 2006-11-02 15:45:41.010 HSQLDB server 1.8.0 is online
      15:45:41,033 INFO [STDOUT] [Server@369fdc]: To close normally, connect and execute SHUTDOWN SQL
      15:45:41,043 INFO [STDOUT] [Server@369fdc]: From command line, use [Ctrl]+[C] to abort abruptly
      15:45:42,513 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
      15:45:44,626 INFO [A] Bound to JNDI name: queue/A
      15:45:44,649 INFO [B] Bound to JNDI name: queue/B
      15:45:44,675 INFO [C] Bound to JNDI name: queue/C
      15:45:44,698 INFO [D] Bound to JNDI name: queue/D
      15:45:44,722 INFO [ex] Bound to JNDI name: queue/ex
      15:45:44,847 INFO [testTopic] Bound to JNDI name: topic/testTopic
      15:45:44,875 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
      15:45:44,899 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
      15:45:44,933 INFO [testQueue] Bound to JNDI name: queue/testQueue
      15:45:45,813 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
      15:45:46,191 INFO [DLQ] Bound to JNDI name: queue/DLQ
      15:45:50,765 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
      15:45:51,934 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
      15:45:57,056 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
      15:45:58,625 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
      15:46:00,763 INFO [JkMain] Jk running ID=0 time=0/2567 config=null
      15:46:00,916 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 1m:17s:671ms
      15:47:16,696 INFO [EARDeployer] Init J2EE application: file:/var/jboss/jboss-4.0.5.GA/server/default/deploy/JBossDukesBank.ear
      15:47:32,921 INFO [EjbModule] Deploying CustomerBean
      15:47:42,651 INFO [EjbModule] Deploying AccountBean
      15:47:45,027 INFO [EjbModule] Deploying TxBean
      15:47:45,407 INFO [EjbModule] Deploying NextIdBean
      15:47:45,840 INFO [EjbModule] Deploying AccountControllerBean
      15:47:47,715 INFO [EjbModule] Deploying CustomerControllerBean
      15:47:48,068 INFO [EjbModule] Deploying TxControllerBean
      15:48:13,170 INFO [ClientDeployer] Client ENC bound under: bank-client
      15:49:02,224 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CustomerBean' to jndi 'MyCustomer'
      15:49:02,776 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'AccountBean' to jndi 'MyAccount'
      15:49:04,898 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'TxBean' to jndi 'MyTx'
      15:49:05,025 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'NextIdBean' to jndi 'MyNextId'
      15:49:06,246 INFO [ProxyFactory] Bound EJB Home 'AccountControllerBean' to jndi 'MyAccountController'
      15:49:06,596 INFO [ProxyFactory] Bound EJB Home 'CustomerControllerBean' to jndi 'MyCustomerController'
      15:49:08,149 INFO [ProxyFactory] Bound EJB Home 'TxControllerBean' to jndi 'MyTxController'
      15:49:08,237 INFO [EJBDeployer] Deployed: file:/var/jboss/jboss-4.0.5.GA/server/default/tmp/deploy/tmp58532JBossDukesBank.ear-contents/bank-ejb.jar
      15:49:11,388 INFO [TomcatDeployer] deploy, ctxPath=/bank, warUrl=.../tmp/deploy/tmp58532JBossDukesBank.ear-contents/web-client-exp.war/
      15:49:17,316 INFO [EARDeployer] Started J2EE application: file:/var/jboss/jboss-4.0.5.GA/server/default/deploy/JBossDukesBank.ear
      15:50:30,907 ERROR [STDERR] Debug: Creating bean manager.
      15:50:31,780 ERROR [STDERR] Debug: CustomerControllerBean ejbCreate
      15:50:31,845 ERROR [STDERR] Debug: AccountControllerBean ejbCreate
      15:50:31,895 ERROR [STDERR] Debug: TxControllerBean ejbCreate
      15:50:31,966 ERROR [STDERR] Debug: /main
      15:50:31,967 ERROR [STDERR] Debug: Forwarding to template.
      15:50:32,425 ERROR [STDERR] Debug: CustomerControllerBean ejbCreate
      15:50:32,467 ERROR [STDERR] Debug: AccountControllerBean ejbCreate
      15:50:32,494 ERROR [STDERR] Debug: TxControllerBean ejbCreate
      15:50:32,719 ERROR [STDERR] Debug: AccountControllerBean getAccountsOfCustomer
      15:50:32,787 ERROR [STDERR] Debug: CustomerBean setEntityContext
      15:50:32,832 ERROR [STDERR] Debug: CustomerBean ejbLoad
      15:50:32,926 ERROR [STDERR] Debug: AccountBean setEntityContext
      15:50:32,926 ERROR [STDERR] Debug: AccountBean ejbActivate
      15:50:32,937 ERROR [STDERR] Debug: AccountBean ejbLoad
      15:50:32,941 ERROR [STDERR] Debug: AccountBean setEntityContext
      15:50:32,949 ERROR [STDERR] Debug: AccountBean ejbActivate
      15:50:32,949 ERROR [STDERR] Debug: AccountBean ejbLoad
      15:50:32,952 ERROR [STDERR] Debug: AccountBean setEntityContext
      15:50:32,960 ERROR [STDERR] Debug: AccountBean ejbActivate
      15:50:32,960 ERROR [STDERR] Debug: AccountBean ejbLoad
      15:50:32,963 ERROR [STDERR] Debug: AccountBean setEntityContext
      15:50:32,988 ERROR [STDERR] Debug: AccountBean ejbActivate
      15:50:32,989 ERROR [STDERR] Debug: AccountBean ejbLoad
      15:50:32,991 ERROR [STDERR] Debug: CustomerBean ejbStore
      15:50:33,000 ERROR [STDERR] Debug: AccountBean ejbStore
      15:50:33,001 ERROR [STDERR] Debug: AccountBean ejbStore
      15:50:33,002 ERROR [STDERR] Debug: AccountBean ejbStore
      15:50:33,009 ERROR [STDERR] Debug: AccountBean ejbStore
      15:50:46,787 ERROR [STDERR] Debug: /accountList
      15:50:46,787 ERROR [STDERR] Debug: Forwarding to template.
      15:50:46,960 ERROR [STDERR] Debug: CustomerControllerBean ejbCreate
      15:50:46,986 ERROR [STDERR] Debug: AccountControllerBean ejbCreate
      15:50:47,035 ERROR [STDERR] Debug: TxControllerBean ejbCreate
      15:50:47,086 ERROR [STDERR] Debug: AccountControllerBean getAccountsOfCustomer
      15:50:47,086 ERROR [STDERR] Debug: CustomerBean setEntityContext
      15:50:47,091 ERROR [STDERR] Debug: CustomerBean ejbLoad
      15:50:47,194 ERROR [STDERR] Debug: AccountBean ejbLoad
      15:50:47,198 ERROR [STDERR] Debug: AccountBean ejbLoad
      15:50:47,207 ERROR [STDERR] Debug: AccountBean ejbLoad
      15:50:47,210 ERROR [STDERR] Debug: AccountBean ejbLoad
      15:50:47,219 ERROR [STDERR] Debug: CustomerBean ejbStore
      15:50:47,219 ERROR [STDERR] Debug: AccountBean ejbStore
      15:50:47,219 ERROR [STDERR] Debug: AccountBean ejbStore
      15:50:47,220 ERROR [STDERR] Debug: AccountBean ejbStore
      15:50:47,220 ERROR [STDERR] Debug: AccountBean ejbStore
      15:50:50,103 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
      org.apache.jasper.JasperException: <h3>Validation error messages from TagLibraryValidator for c in /accountList.jsp</h3>null: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1b) was found in the CDATA section.<h3>Validation error messages from TagLibraryValidator for fmt in /accountList.jsp</h3>null: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1b) was found in the CDATA section.
      at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
      at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
      at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:72)
      at org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:1549)
      at org.apache.jasper.compiler.Validator.validate(Validator.java:1495)
      at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:166)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
      at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
      at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
      at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:602)
      at com.sun.ebank.web.template.InsertTag.doTag(InsertTag.java:82)
      at org.apache.jsp.template.template_jsp._jspx_meth_tt_insert_3(template_jsp.java:924)
      at org.apache.jsp.template.template_jsp._jspService(template_jsp.java:92)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at com.sun.ebank.web.Dispatcher.doGet(Dispatcher.java:92)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)
      15:50:52,510 ERROR [STDERR] Debug: /transferFunds
      15:50:52,510 ERROR [STDERR] Debug: Forwarding to template.
      15:50:52,710 ERROR [STDERR] Debug: CustomerControllerBean ejbCreate
      15:50:52,732 ERROR [STDERR] Debug: AccountControllerBean ejbCreate
      15:50:52,762 ERROR [STDERR] Debug: TxControllerBean ejbCreate
      15:50:52,792 ERROR [STDERR] Debug: AccountControllerBean getAccountsOfCustomer
      15:50:52,841 ERROR [STDERR] Debug: CustomerBean ejbLoad
      15:50:52,867 ERROR [STDERR] Debug: AccountBean ejbLoad
      15:50:52,871 ERROR [STDERR] Debug: AccountBean ejbLoad
      15:50:52,873 ERROR [STDERR] Debug: AccountBean ejbLoad
      15:50:52,875 ERROR [STDERR] Debug: AccountBean ejbLoad
      15:50:52,878 ERROR [STDERR] Debug: CustomerBean ejbStore
      15:50:52,878 ERROR [STDERR] Debug: AccountBean ejbStore
      15:50:52,878 ERROR [STDERR] Debug: AccountBean ejbStore
      15:50:52,878 ERROR [STDERR] Debug: AccountBean ejbStore
      15:50:52,879 ERROR [STDERR] Debug: AccountBean ejbStore
      15:50:57,717 ERROR [STDERR] Debug: AccountControllerBean getAccountsOfCustomer
      15:50:57,722 ERROR [STDERR] Debug: CustomerBean ejbLoad
      15:50:57,735 ERROR [STDERR] Debug: AccountBean ejbLoad
      15:50:57,738 ERROR [STDERR] Debug: AccountBean ejbLoad
      15:50:57,747 ERROR [STDERR] Debug: AccountBean ejbLoad
      15:50:57,751 ERROR [STDERR] Debug: AccountBean ejbLoad
      15:50:57,767 ERROR [STDERR] Debug: CustomerBean ejbStore
      15:50:57,768 ERROR [STDERR] Debug: AccountBean ejbStore
      15:50:57,768 ERROR [STDERR] Debug: AccountBean ejbStore
      15:50:57,769 ERROR [STDERR] Debug: AccountBean ejbStore
      15:50:57,769 ERROR [STDERR] Debug: AccountBean ejbStore
      15:51:08,101 ERROR [STDERR] Debug: English (United States)
      15:51:08,101 ERROR [STDERR] Debug: /transferAck
      15:51:08,103 ERROR [STDERR] Debug: Setting from account id to: 5005
      15:51:08,103 ERROR [STDERR] Debug: Setting to account id to: 5006
      15:51:08,103 ERROR [STDERR] Debug: Setting transfer amount to: 100.00
      15:51:08,105 ERROR [STDERR] Debug: AccountBean setEntityContext
      15:51:08,123 ERROR [STDERR] Debug: AccountBean ejbLoad
      15:51:08,127 ERROR [STDERR] Debug: TxControllerBean executeTx
      15:51:08,142 ERROR [STDERR] Debug: TxBean setEntityContext
      15:51:08,143 ERROR [STDERR] Debug: TxBean ejbCreate
      15:51:08,201 ERROR [STDERR] Debug: AccountBean ejbLoad
      15:51:08,202 ERROR [STDERR] Debug: TxControllerBean executeTx
      15:51:08,212 ERROR [STDERR] Debug: TxBean setEntityContext
      15:51:08,212 ERROR [STDERR] Debug: TxBean ejbCreate
      15:51:08,217 ERROR [STDERR] Debug: AccountBean ejbStore
      15:51:08,218 ERROR [STDERR] Debug: TxBean ejbStore
      15:51:08,218 ERROR [STDERR] Debug: AccountBean ejbStore
      15:51:08,218 ERROR [STDERR] Debug: TxBean ejbStore
      15:51:08,416 ERROR [STDERR] Debug: CustomerControllerBean ejbCreate
      15:51:08,440 ERROR [STDERR] Debug: AccountControllerBean ejbCreate
      15:51:08,491 ERROR [STDERR] Debug: TxControllerBean ejbCreate
      15:51:08,602 ERROR [STDERR] Debug: AccountControllerBean getAccountsOfCustomer
      15:51:08,608 ERROR [STDERR] Debug: CustomerBean ejbLoad
      15:51:08,621 ERROR [STDERR] Debug: AccountBean ejbLoad
      15:51:08,624 ERROR [STDERR] Debug: AccountBean ejbLoad
      15:51:08,630 ERROR [STDERR] Debug: AccountBean ejbLoad
      15:51:08,632 ERROR [STDERR] Debug: AccountBean ejbLoad
      15:51:08,654 ERROR [STDERR] Debug: CustomerBean ejbStore
      15:51:08,654 ERROR [STDERR] Debug: AccountBean ejbStore
      15:51:08,655 ERROR [STDERR] Debug: AccountBean ejbStore
      15:51:08,655 ERROR [STDERR] Debug: AccountBean ejbStore
      15:51:08,655 ERROR [STDERR] Debug: AccountBean ejbStore
      15:51:08,913 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
      org.apache.jasper.JasperException: <h3>Validation error messages from TagLibraryValidator for c in /transferAck.jsp</h3>null: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1b) was found in the CDATA section.<h3>Validation error messages from TagLibraryValidator for fmt in /transferAck.jsp</h3>null: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1b) was found in the CDATA section.
      at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
      at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
      at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:72)
      at org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:1549)
      at org.apache.jasper.compiler.Validator.validate(Validator.java:1495)
      at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:166)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
      at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
      at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
      at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:602)
      at com.sun.ebank.web.template.InsertTag.doTag(InsertTag.java:82)
      at org.apache.jsp.template.template_jsp._jspx_meth_tt_insert_3(template_jsp.java:924)
      at org.apache.jsp.template.template_jsp._jspService(template_jsp.java:92)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at com.sun.ebank.web.Dispatcher.doPost(Dispatcher.java:244)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)
      15:51:23,257 INFO [Server] Runtime shutdown hook called, forceHalt: true
      15:51:23,258 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
      15:51:23,260 INFO [TomcatDeployer] undeploy, ctxPath=/bank, warUrl=.../tmp/deploy/tmp58532JBossDukesBank.ear-contents/web-client-exp.war/
      15:51:23,291 INFO [EJBDeployer] Undeploying: file:/var/jboss/jboss-4.0.5.GA/server/default/tmp/deploy/tmp58532JBossDukesBank.ear-contents/bank-ejb.jar
      15:51:23,308 ERROR [STDERR] Debug: TxControllerBean ejbPassiavte
      15:51:23,342 ERROR [STDERR] Debug: TxControllerBean ejbPassiavte
      15:51:23,345 ERROR [STDERR] Debug: TxControllerBean ejbPassiavte
      15:51:23,359 ERROR [STDERR] Debug: TxControllerBean ejbPassiavte
      15:51:23,360 ERROR [STDERR] Debug: TxControllerBean ejbPassiavte
      15:51:23,404 ERROR [STDERR] Debug: AccountControllerBean ejbPassiavte
      15:51:23,408 ERROR [STDERR] Debug: AccountControllerBean ejbPassiavte
      15:51:23,421 ERROR [STDERR] Debug: AccountControllerBean ejbPassiavte
      15:51:23,422 ERROR [STDERR] Debug: AccountControllerBean ejbPassiavte
      15:51:23,431 ERROR [STDERR] Debug: AccountControllerBean ejbPassiavte
      15:51:23,435 INFO [BaseLocalProxyFactory] Unbind EJB LocalHome 'NextIdBean' from jndi 'MyNextId'
      15:51:23,480 ERROR [STDERR] Debug: TxBean ejbPassivate
      15:51:23,480 ERROR [STDERR] Debug: TxBean ejbPassivate
      15:51:23,481 INFO [BaseLocalProxyFactory] Unbind EJB LocalHome 'TxBean' from jndi 'MyTx'
      15:51:23,509 ERROR [STDERR] Debug: AccountBean ejbPassivate
      15:51:23,509 ERROR [STDERR] Debug: AccountBean ejbPassivate
      15:51:23,510 ERROR [STDERR] Debug: AccountBean ejbPassivate
      15:51:23,510 ERROR [STDERR] Debug: AccountBean ejbPassivate
      15:51:23,519 INFO [BaseLocalProxyFactory] Unbind EJB LocalHome 'AccountBean' from jndi 'MyAccount'
      15:51:23,568 INFO [BaseLocalProxyFactory] Unbind EJB LocalHome 'CustomerBean' from jndi 'MyCustomer'
      15:51:23,615 INFO [ClientDeployer] Removing client ENC from: bank-client
      15:51:23,657 INFO [ProxyFactory] Unbind EJB Home 'TxControllerBean' from jndi 'MyTxController'
      15:51:23,671 INFO [EjbModule] Undeployed TxControllerBean
      15:51:23,673 INFO [ProxyFactory] Unbind EJB Home 'CustomerControllerBean' from jndi 'MyCustomerController'
      15:51:23,686 INFO [EjbModule] Undeployed CustomerControllerBean
      15:51:23,688 INFO [ProxyFactory] Unbind EJB Home 'AccountControllerBean' from jndi 'MyAccountController'
      15:51:23,701 INFO [EjbModule] Undeployed AccountControllerBean
      15:51:23,705 INFO [EjbModule] Undeployed NextIdBean
      15:51:23,722 ERROR [STDERR] Debug: TxBean unsetEntityContext
      15:51:23,722 ERROR [STDERR] Debug: TxBean unsetEntityContext
      15:51:23,724 INFO [EjbModule] Undeployed TxBean
      15:51:23,735 ERROR [STDERR] Debug: AccountBean unsetEntityContext
      15:51:23,735 ERROR [STDERR] Debug: AccountBean unsetEntityContext
      15:51:23,735 ERROR [STDERR] Debug: AccountBean unsetEntityContext
      15:51:23,736 ERROR [STDERR] Debug: AccountBean unsetEntityContext
      15:51:23,736 ERROR [STDERR] Debug: AccountBean unsetEntityContext
      15:51:23,737 INFO [EjbModule] Undeployed AccountBean
      15:51:23,767 ERROR [STDERR] Debug: CustomerBean unsetEntityContext
      15:51:23,767 ERROR [STDERR] Debug: CustomerBean unsetEntityContext
      15:51:23,769 INFO [EjbModule] Undeployed CustomerBean
      15:51:23,783 INFO [EARDeployer] Undeploying J2EE application, destroy step: file:/var/jboss/jboss-4.0.5.GA/server/default/deploy/JBossDukesBank.ear
      15:51:23,785 INFO [EARDeployer] Undeployed J2EE application: file:/var/jboss/jboss-4.0.5.GA/server/default/deploy/JBossDukesBank.ear
      15:51:23,799 INFO [TomcatDeployer] undeploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
      15:51:23,822 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' from JNDI name 'java:JmsXA'
      15:51:24,100 INFO [testTopic] Unbinding JNDI name: topic/testTopic
      15:51:24,102 INFO [securedTopic] Unbinding JNDI name: topic/securedTopic
      15:51:24,118 INFO [testDurableTopic] Unbinding JNDI name: topic/testDurableTopic
      15:51:24,120 INFO [testQueue] Unbinding JNDI name: queue/testQueue
      15:51:24,132 INFO [A] Unbinding JNDI name: queue/A
      15:51:24,135 INFO [B] Unbinding JNDI name: queue/B
      15:51:24,153 INFO [C] Unbinding JNDI name: queue/C
      15:51:24,156 INFO [D] Unbinding JNDI name: queue/D
      15:51:24,175 INFO [ex] Unbinding JNDI name: queue/ex
      15:51:24,181 INFO [DLQ] Unbinding JNDI name: queue/DLQ
      15:51:24,200 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' from JNDI name 'java:DefaultDS'
      15:51:25,895 INFO [HypersonicDatabase] Database standalone closed clean
      15:51:27,820 INFO [STDOUT] [Server@369fdc]: Initiating shutdown sequence...
      15:51:27,821 INFO [STDOUT] [Server@369fdc]: Shutdown sequence completed in 1 ms.
      15:51:27,821 INFO [STDOUT] [Server@369fdc]: 2006-11-02 15:51:27.821 SHUTDOWN : System.exit() was not called
      15:51:27,822 INFO [HypersonicDatabase] Database remote closed clean
      15:51:28,117 INFO [MailService] Mail service 'java:/Mail' removed from JNDI
      15:51:28,153 INFO [TomcatDeployer] undeploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
      15:51:28,350 INFO [Http11BaseProtocol] Pausing Coyote HTTP/1.1 on http-0.0.0.0%2F0.0.0.0-8080
      15:51:29,363 INFO [StandardService] Stopping service jboss.web
      15:51:29,395 INFO [Http11BaseProtocol] Stopping Coyote HTTP/1.1 on http-0.0.0.0%2F0.0.0.0-8080
      15:51:29,401 INFO [TomcatDeployer] undeploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
      15:51:29,406 INFO [TomcatDeployer] undeploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
      15:51:29,410 INFO [TomcatDeployer] undeploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp58500jbossws-context-exp.war/
      15:51:29,424 INFO [TomcatDeployer] undeploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
      15:51:30,391 INFO [Server] Shutdown complete
      Shutdown complete
      Halting VM
      ]0;root@localhost:/var/jboss/jboss-4.0.5.GA[root@localhost jboss-4.0.5.GA]# exit
      exit

      Script done on Thu 02 Nov 2006 03:51:34 PM EST

        • 1. Re: Something is wrong with the JSP files  in the Duke's Ban
          vegas

          I even tried running the .jsps through this little c program, to no avail:
          #include <stdio.h>
          main(){
          int c;
          while( (c = getchar()) != EOF){
          if( c != 0x1b){
          putchar(c);
          }
          }
          }

          What gives?

          • 2. Re: Something is wrong with the JSP files  in the Duke's Ban
            ndheine

            Greetings,

            I'm getting the same thing, but I don't belive the problem is in the JSP pages, but in the data coming from the database. The logs indicate that this happens just after the SQL query to get the account information.

            The thing I don't understand is that for me it only happens on the account list page. If I access the transfer page the accounts show correctly. Is this the same for you?

            • 3. Re: Something is wrong with the JSP files  in the Duke's Ban
              peterj

              I just now ran into this. Edit the JSP file it is complaining about, removing the "back-slash dollar-sign" character combination. I found this in both the atmAck.jsp and accountList.jsp files. I could have sworn that when I downloaded the tutorial a month ago that it did not have this problem (perhaps I am using an updated JSTL???).

              • 4. Re: Something is wrong with the JSP files  in the Duke's Ban
                vegas

                My theory was that Sun isn't happy about JBoss stealing it's tutorial, so they put in characters that would break JBoss, but not their appserver, paranoids survive and all that...

                • 5. Re: Something is wrong with the JSP files  in the Duke's Ban
                  ndheine

                  Yep, that was it.

                  I'm not sure it was on purpose though. Without that in there you don't get the '$' in the available credit column. It should probably be similar to the Balance column above it:

                  <fmt:formatNumber value="$(ad.remaingCredit)" type="currency" minFactorDigets="2"/>

                  And you should get the desired results. I think someone just missed it in that column.

                  • 6. Re: Something is wrong with the JSP files  in the Duke's Ban
                    peterj

                    I double-checked at home where I know I had it working a month ago, but I was using JBoss 4.0.5-CR1 there (where it was working) and 4.0.5.GA at work (where it did not work). Perhaps there was a change in the JSP parser.

                    • 7. Re: Something is wrong with the JSP files  in the Duke's Ban
                      shlomi938

                      I'm getting the same thing, but only on jboss 4.0.5, on 4.0.4 it works fine.

                      • 8. Re: Something is wrong with the JSP files  in the Duke's Ban
                        josedragone

                        I get this page from tomcat
                        I´m new to Spring + Tomcat + MVC + Eclipse
                        I ´ve been looking into the tld´s , the jsp´s and the *.java including the java controllers for not valid characters, but I have still this problem.
                        Please help me
                        Thanks
                        Jose

                        =================================

                        HTTP Status 500 -

                        type Exception report message description

                        The server encountered an internal error () that prevented it from fulfilling this request.

                        exception

                        org.apache.jasper.JasperException: <h3>Validation error messages from TagLibraryValidator for fmt</h3>
                        null: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1f) was found in the CDATA section.

                        <h3>Validation error messages from TagLibraryValidator for c_rt</h3>
                        null: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1f) was found in the CDATA section.

                        org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:411) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:76) org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:1535) org.apache.jasper.compiler.Validator.validate(Validator.java:1481) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:214) org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
                        .....
                        .......
                        Apache Tomcat/5.0.28 ===============================

                        In catalina´s log :

                        [ERROR] DispatcherServlet - Could not complete request <org.apache.jasper.JasperException: ><h3>Validation error messages from TagLibraryValidator for fmt</h3>
                        null: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1f) was found in the CDATA section.

                        <h3>Validation error messages from TagLibraryValidator for c_rt</h3>
                        null: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1f) was found in the CDATA section.

                        >org.apache.jasper.JasperException: <h3>Validation error messages from TagLibraryValidator for fmt</h3>
                        null: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1f) was found in the CDATA section.

                        <h3>Validation error messages from TagLibraryValidator for c_rt</h3>
                        null: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1f) was found in the CDATA section.

                        at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:411) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:76) at org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:1535) at org.apache.jasper.compiler.Validator.validate(Validator.java:1481)

                        • 9. Re: Something is wrong with the JSP files  in the Duke's Ban
                          vegas

                          My solution was to not use jboss at all! Viva turbogears!

                          • 10. Re: Something is wrong with the JSP files  in the Duke's Ban
                            justinb

                            Hello, did anyone ever get this right? Is it a bug or what?

                            I have upgraded from JBoss 4.0.3 to 4.0.5-GA, and one of my pages is doing this too.

                            I would hate to downgrade again as I have had to mess up a lot to get my EJB 3.0s to run on this version.

                            Anyone?

                            • 11. Re: Something is wrong with the JSP files  in the Duke's Ban
                              justinb

                              I did a bit more digging, and it seems there is a problem with Tomcat 5.5.20.

                              It doesn't handle "\$" in your JSP source file very well.

                              I had an email validation regex pattern (javascript) on that page, fixed it by importing the regex pattern from a seperate .js file (not parsed by Tomcat).

                              See http://issues.apache.org/bugzilla/show_bug.cgi?id=40797