How do I limit the amount of blog entries per page?
Java Programming
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Ñîîáùåñòâà
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > Java ProgrammingGo to page: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Ìîäåðàòîð:
Yesterday — Friday, 3 July 2009
[EJB 3.0] - Re: Could not resolve beanClass method from proxy call Wesleyhall 10:59:43
 Incase anyone stumbles across this topic during a search. I had this problem and discovered it was become my remote methods were throwing exceptions that are no instances of (or subclasses of) RemoteException.

View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­39858#3939858

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3939858


-------------------­--------------------­----------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.fa­lkag.net/sel?cmd=lnk­&kid=120709&bid=2630­57&dat=121642
comment 2 answer | Add comment
Wednesday, 1 July 2009
Re: itext unicode support Jemmee Yung 09:39:34
 Hi Bruno and all, I finally got the problem fixed by the useful resources in
the archive. now i set the pdffont to arialuni.ttf and pdfencoding to
identity-h and it works for virtually any language now. only drawback, as
somebody mentioned in the list that text decoration doesn't quite work with
this ttf.

however, what i spotted from my JVM memory running on redhat 8 was it went
above 140M during generation of the PDF, that i didn't have to alter Xmx of
jvm start script when using the original GB font STSongStd-Light, is it
b'coz of the large ttf file or unicode?

my arialuni was downloaded by running searches in google, would like to know
under what license this ttf is? can we distribute in our software product?

many thanks

rgds

----- Original Message -----
From: "Bruno" <bruno@lowagie.com>­
To: "Jemmee Yung" <jemmee.yung@my-dom­ain.com.hk>
Cc: <itext-questions@li­sts.sourceforge.net>­
Sent: Thursday, August 21, 2003 2:54 PM
Subject: Re: itext unicode support

Quoting Jemmee Yung <jemmee.yung@my-dom­ain.com.hk>:>
Hi Mr Lowagie,> >
I got your email in http://www.lowagie.­com/. I am a JasperReport user
have some queries about the use of pdf fonts in unicode environment, as> > JasperReport says it uses iText for pdf generation I guess you should be> > the right person. browsed itext's project web in sourceforge, not seeing
forum area, no choice but bother you now.>
We mostly use the mailinglist itext-questions@lis­ts.sourceforge.net> instead of the forum (I think we have set it to hidden).> The mailinglist is archived here:> http://news.gmane.o­rg/thread.php?group=­gmane.comp.java.lib.­itext.general>
We're working on a project with i18n requirement, i.e. our biz data are
unicode and in our customers' environemtn, it's common to have data in> > japanese, simplified chinese, traditional chinese and english. as it> > requires to specify a specific pdf font, say for example, we chose> > STSong-Light, then even though it is supposed to be japanese, it'd be
shown> > as meaningless characters in chinese. may i know is this a shortcomings
pdf by design or any workaround we can opt for?>
I'm not familiar with JasperReports, but I know that people are> using iText to generate documents in almost every Asian language.> My first guess would be that there is some encoding problem.> You say you chose STSong-Light, but is there any way to specify> the encoding?> I forward this mail to the mailinglist; I hope there are some> subscribers using JasperReports who can help you further.>
br,> Bruno



-------------------­--------------------­----------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmw­are.com/wl/offer/358­/0
comment 3 answer | Add comment
Saturday, 27 June 2009
[Tomcat, HTTPD, Servlets & JSP] - JSPs with JDK5.0 features do not compile AstroNox 13:14:44
 Hello everyone,

I'm currently having a problem; in essence, as in the title, is about JSPs with JDK5.0 features that do not compile.

I'm running JBoss 4.0.3 SP1 with the default integrated Tomcat 5.5, with JDK5.0.

I wrote a very simple JSP in Eclipse 3.1.2 with the JBoss IDE 1.5.1 GA, packaged and deployed into JBoss. There is no problem with starting JBoss or deploying the WAR. This is the JSP:

<?xml version="1.0" encoding="UTF-8" ?>
| <%@ page language="java" contentType="text/h­tml; charset=UTF-8" pageEncoding="UTF-8­"%>
| <%
| java.util.Vector<St­ring> v = new java.util.Vector<St­ring>();
| %>

It's just the declaration and definition of a Vector using JDK5.0's generics feature.

However, when I tried to access this JSP through the browser, I get this error:

02:14:15,000 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
| org.apache.jasper.J­asperException: Unable to compile class for JSP
|
| An error occurred at line: 3 in the jsp file: /index.jsp
| Generated servlet error:
| Syntax error on token "<", invalid AssignmentOperator
|
| An error occurred at line: 3 in the jsp file: /index.jsp
| Generated servlet error:
| Syntax error on token "=", != expected
|
| An error occurred at line: 3 in the jsp file: /index.jsp
| Generated servlet error:
| Syntax error on token "<", ( expected
|
| An error occurred at line: 3 in the jsp file: /index.jsp
| Generated servlet error:
| Syntax error on token "(", invalid Expression
|
|
| at org.apache.jasper.c­ompiler.DefaultError­Handler.javacError(D­efaultErrorHandler.j­ava:84)
| at org.apache.jasper.c­ompiler.ErrorDispatc­her.javacError(Error­Dispatcher.java:328)­
| at org.apache.jasper.c­ompiler.JDTCompiler.­generateClass(JDTCom­piler.java:397)
| ... etc

Ok, this basically means that the compiler did not recognize the JDK5.0 features. I had already set the following options in Tomcat's conf/web.xml file:

<servlet>
| <servlet-name>jsp</­servlet-name>
| <servlet-class>org.­apache.jasper.servle­t.JspServlet</servle­t-class>
| <init-param>
| <param-name>fork</p­aram-name>
| <param-value>false<­/param-value>
| </init-param>
| <init-param>
| <param-name>xpowere­dBy</param-name>
| <param-value>false<­/param-value>
| </init-param>
| <init-param>
| <param-name>compile­rSourceVM</param-nam­e>
| <param-value>1.5</p­aram-value>
| </init-param>
| <init-param>
| <param-name>compile­rTargetVM</param-nam­e>
| <param-value>1.5</p­aram-value>
| </init-param>
| ...
| </servlet>

It still does not work, it does not compile.

I did search Google for any possible solutions but to no avail. For some reason it seems as if no one encountered it before; either I'm not searching properly or there are no articles on this issue. I did find a thing about Tomcat versions prior to 5.5.16 (this issue was fixed in 5.5.16):

http://issues.apach­e.org/bugzilla/show_­bug.cgi?id=38389

The problem was regarding the compilerSourceVM and compilerTargetVM as mentioned above.

However, I'm very sure that the version of Tomcat that came with JBoss 4.0.3 SP1 is not 5.5.16, although I was unable to find which version was it.

I believe if I were to integrate Tomcat 5.5.16 into JBoss, the issue might be resolved. However I'm unable to find any such tutorial or resource to accomplish this on Google.

Another note is that I'm unwilling to use JBoss 4.0.4 RC1 because there is a bug with EJB3's TransactionManager (yes, I'm using EJB3; RC5 integrated into default server configuration):

http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&t=78­114

Basically I'm stumped. Tried all I can. Can anyone please tell me how to resolve this issue in JBoss 4.0.3 SP1? Please direct me to any existing resolutions, if any. I would also appreciate links to articles that describe how to integrate Tomcat 5.5.x into JBoss. Thanks!

View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­34154#3934154

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3934154


-------------------­--------------------­----------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.fa­lkag.net/sel?cmd=lnk­&kid=110944&bid=2417­20&dat=121642
comment 1 answer | Add comment
Monday, 8 June 2009
PHP2Perl converter? Nathan 00:10:10
 Hi, I just had a random thought as I was working on some php and perl
code today and I ask, has anyone out there created a PHP to Perl
converter? Similar to the ASP to PHP converter. I think only God could
make a Perl2PHP converter.

comment 3 answer | Add comment
Wednesday, 3 June 2009
java.util.zip.ZipExc­eption error opening zip file... help Aman 18:33:37
 $ant generateDD
gives me the following error and it goes into infinite loop.
Can anyone please help???????????
[webdoclet] java.util.zip.ZipEx­ception: error in opening zip file
[webdoclet] at java.util.zip.ZipFi­le.open(Native Method)
[webdoclet] at java.util.zip.ZipFi­le.<init>(ZipFile.ja­va:112)
[webdoclet] at java.util.zip.ZipFi­le.<init>(ZipFile.ja­va:128)
[webdoclet] at org.apache.tools.an­t.AntClassLoader.get­ResourceURL(AntClass­Lo
ader.java:867)
[webdoclet] at org.apache.tools.an­t.AntClassLoader.get­Resource(AntClassLoa­de
r.java:796)
[webdoclet] at org.apache.log4j.he­lpers.Loader.getReso­urce(Loader.java:91)­
[webdoclet] at org.apache.log4j.Lo­gManager.<clinit>(Lo­gManager.java:94)
[webdoclet] at org.apache.log4j.Ca­tegory.getInstance(C­ategory.java:514)
[webdoclet] at org.apache.commons.­logging.impl.Log4jFa­ctory.getInstance(Lo­g4


<target name="generateDD">
<taskdef name="webdoclet"
classname="xdoclet.­modules.web.WebDocle­tTask"
classpathref="xdocp­ath"
/>

<webdoclet destdir="${dest}">

<fileset dir="${src}">
<include name="**/*Servlet.j­ava" />
<include name="**/*Tag.java"­ />
</fileset>

<deploymentdescript­or servletspec="2.3"
destdir="${WEBINF}"­ >
<taglib uri="mytaglib"
location="WEB-INF/t­lds/mytaglib.tld"
/>
</deploymentdescrip­tor>

<jsptaglib jspversion="1.2"
destdir="${WEBINF}/­tlds"
shortname="basic"
filename="mytaglib.­tld"/>

</webdoclet>



comment 3 answer | Add comment
Friday, 22 May 2009
[Beginners Corner] - getResourceAsStream­ returns null when invoked from an EJB ja Offline 15:47:29
 My application makes use of a configuration file stored inside a jar that ships in the EAR file. This config file is accessed by way of a classloader.getReso­urceAsStream(), where the classloader is returned from the Thread.getContextCl­assloader() method.

This operation succeeds on WebLogic and WebSphere as expected, but on JBoss 4.0.3SP1, I cannot get anything except a null input stream from this call.

My application is laid out as:
app.ear/
| ejb.jar/
| META-INF/MANIFEST.M­F: Class-Path: ./config.jar
| com.my.classes.Conf­igLoader
| config.jar/
| config.properties

The loader code is (in brief -- there's a lot of error checking et al that I have removed):
ClassLoader loader = Thread.currentThrea­d().getContextClassL­oader();
| InputStream ins = loader.getResourceA­sStream ("/config.propertie­s");
| if (ins == null) {
| System.out("The input stream was null after getResourceAsStream­");
| }
| else {
| loadConfig(ins);
| }

So, what I'm wondering is, of course, why does this not work? I've traced the classloader initialization, and it appears that the config jar is being added to the UCL (here is the trace output from a deployment, up to the point where the beans themselves are configured):
anonymous wrote : 09:49:05,970 DEBUG [RepositoryClassLoader] Unregistering cl=org.jboss.mx.loa­ding.UnifiedClassLoa­der3@1d77d9e{ url=file:/opt/md/jb­oss/server/default/t­mp/deploy/tmp12702ap­p.ear ,addedOrder=30}
| 09:49:05,970 DEBUG [UnifiedLoaderRepository3] UnifiedLoaderReposi­tory removed(true) org.jboss.mx.loadin­g.UnifiedClassLoader­3@1d77d9e{ url=file:/opt/md/jb­oss/server/default/t­mp/deploy/tmp12702ap­p.ear ,addedOrder=30}
| 09:49:06,004 INFO [EARDeployer] Init J2EE application: file:/opt/md/jboss/­server/default/deplo­y/app.ear
| 09:49:06,125 DEBUG [UnifiedClassLoader] New jmx UCL with url file:/opt/md/jboss/­server/default/tmp/d­eploy/tmp12704app.ea­r
| 09:49:06,125 DEBUG [RepositoryClassLoader] setRepository, repository=org.jbos­s.mx.loading.Unified­LoaderRepository3@10­bc49d, cl=org.jboss.mx.loa­ding.UnifiedClassLoa­der3@13849df{ url=file:/opt/md/jb­oss/server/default/t­mp/deploy/tmp12704ap­p.ear ,addedOrder=0}
| 09:49:06,125 DEBUG [RepositoryClassLoader] setRepository, repository=org.jbos­s.mx.loading.Unified­LoaderRepository3@10­bc49d, cl=org.jboss.mx.loa­ding.UnifiedClassLoa­der3@13849df{ url=file:/opt/md/jb­oss/server/default/t­mp/deploy/tmp12704ap­p.ear ,addedOrder=0}
| 09:49:06,125 DEBUG [UnifiedLoaderRepository3] Adding org.jboss.mx.loadin­g.UnifiedClassLoader­3@13849df{ url=file:/opt/md/jb­oss/server/default/t­mp/deploy/tmp12704ap­p.ear ,addedOrder=0}
| 09:49:06,126 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg:
| 09:49:06,509 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: com.aciworldwide.ec­ourier.utility
| 09:49:06,517 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: com.aciworldwide.ec­ourier.auth.jboss
| 09:49:06,521 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: com.aciworldwide.ec­ourier.auth
| 09:49:06,528 DEBUG [RepositoryClassLoader] Added url: file:/opt/md/jboss/­server/default/tmp/d­eploy/tmp12704app.ea­r-contents/ejb.jar, to ucl: org.jboss.mx.loadin­g.UnifiedClassLoader­3@13849df{ url=file:/opt/md/jb­oss/server/default/t­mp/deploy/tmp12704ap­p.ear ,addedOrder=32}
| 09:49:06,552 DEBUG [RepositoryClassLoader] Added url: file:/opt/md/jboss/­server/default/tmp/d­eploy/tmp12704app.ea­r-contents/jrmsadm.j­ar, to ucl: org.jboss.mx.loadin­g.UnifiedClassLoader­3@13849df{ url=file:/opt/md/jb­oss/server/default/t­mp/deploy/tmp12704ap­p.ear ,addedOrder=32}
| 09:49:06,554 DEBUG [RepositoryClassLoader] Added url: file:/opt/md/jboss/­server/default/tmp/d­eploy/tmp12704app.ea­r-contents/ecjavauti­l.jar, to ucl: org.jboss.mx.loadin­g.UnifiedClassLoader­3@13849df{ url=file:/opt/md/jb­oss/server/default/t­mp/deploy/tmp12704ap­p.ear ,addedOrder=32}
| 09:49:06,558 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: javax.mail
| 09:49:06,569 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: javax.mail.event
| 09:49:06,570 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: javax.mail.search
| 09:49:06,573 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: javax.mail.internet­
| 09:49:06,579 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: com.sun.mail.util
| 09:49:06,582 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: com.sun.mail.smtp
| 09:49:06,585 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: com.sun.mail.iap
| 09:49:06,587 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: com.sun.mail.imap
| 09:49:06,594 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: com.sun.mail.imap.p­rotocol
| 09:49:06,599 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: com.sun.mail.pop3
| 09:49:06,601 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: com.sun.mail.handle­rs
| 09:49:06,602 DEBUG [RepositoryClassLoader] Added url: file:/opt/md/jboss/­server/default/tmp/d­eploy/tmp12704app.ea­r-contents/mail.jar,­ to ucl: org.jboss.mx.loadin­g.UnifiedClassLoader­3@13849df{ url=file:/opt/md/jb­oss/server/default/t­mp/deploy/tmp12704ap­p.ear ,addedOrder=32}
| 09:49:06,605 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: javax.activation
| 09:49:06,609 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: com.sun.activation.­registries
| 09:49:06,610 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: com.sun.activation.­viewers
| 09:49:06,611 DEBUG [RepositoryClassLoader] Added url: file:/opt/md/jboss/­server/default/tmp/d­eploy/tmp12704app.ea­r-contents/activatio­n.jar, to ucl: org.jboss.mx.loadin­g.UnifiedClassLoader­3@13849df{ url=file:/opt/md/jb­oss/server/default/t­mp/deploy/tmp12704ap­p.ear ,addedOrder=32}
| 09:49:06,615 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: conf
| 09:49:06,615 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: org.opensaml
| 09:49:06,642 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: org.opensaml.artifa­ct
| 09:49:06,644 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: org.opensaml.provid­er
| 09:49:06,645 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: schemas
| 09:49:06,648 DEBUG [RepositoryClassLoader] Added url: file:/opt/md/jboss/­server/default/tmp/d­eploy/tmp12704app.ea­r-contents/opensaml-­1.1.jar, to ucl: org.jboss.mx.loadin­g.UnifiedClassLoader­3@13849df{ url=file:/opt/md/jb­oss/server/default/t­mp/deploy/tmp12704ap­p.ear ,addedOrder=32}
| 09:49:06,814 DEBUG [RepositoryClassLoader] Added url: file:/opt/md/jboss/­server/default/tmp/d­eploy/tmp12704app.ea­r-contents/xercesImp­l.jar, to ucl: org.jboss.mx.loadin­g.UnifiedClassLoader­3@13849df{ url=file:/opt/md/jb­oss/server/default/t­mp/deploy/tmp12704ap­p.ear ,addedOrder=32}
| 09:49:06,833 DEBUG [ClassLoaderUtils] Multiple class loaders found for pkg: org.w3c.dom
| 09:49:06,845 DEBUG [RepositoryClassLoader] Added url: file:/opt/md/jboss/­server/default/tmp/d­eploy/tmp12704app.ea­r-contents/xml-apis.­jar, to ucl: org.jboss.mx.loadin­g.UnifiedClassLoader­3@13849df{ url=file:/opt/md/jb­oss/server/default/t­mp/deploy/tmp12704ap­p.ear ,addedOrder=32}
| 09:49:06,880 DEBUG [RepositoryClassLoader] Added url: file:/opt/md/jboss/­server/default/tmp/d­eploy/tmp12704app.ea­r-contents/xstream-1­.1.2.jar, to ucl: org.jboss.mx.loadin­g.UnifiedClassLoader­3@13849df{ url=file:/opt/md/jb­oss/server/default/t­mp/deploy/tmp12704ap­p.ear ,addedOrder=32}
| 09:49:06,881 DEBUG [RepositoryClassLoader] Added url: file:/opt/md/jboss/­server/default/tmp/d­eploy/tmp12704app.ea­r-contents/config.ja­r, to ucl: org.jboss.mx.loadin­g.UnifiedClassLoader­3@13849df{ url=file:/opt/md/jb­oss/server/default/t­mp/deploy/tmp12704ap­p.ear ,addedOrder=32}

View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­55568#3955568

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3955568

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.fa­lkag.net/sel?cmd=lnk­&kid=120709&bid=2630­57&dat=121642
comment 1 answer | Add comment
LZW compression in Java Avinash Lakshman 04:09:03
 Hi All

Anyone aware of any Open Source libraries for doing LZW compression in Java
? And if anyone has had any experience with LZW compression is it suitable
for compressing large files of size 50-100GB.

Thanks in advance
A

___________________­____________________­____________________­______
More photos, more messages, more storage get 2GB with Windows Live Hotmail.
http://imagine-wind­owslive.com/hotmail/­?locale=en-us&ocid=T­XT_TAGHM_migration_H­M_mini_2G_0507

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 6 answers | Add comment
Thursday, 21 May 2009
[JBoss Portal] - PortletSession vs HttpSession Bcollins 14:43:21
 I'm running portal 2.0 in jboss 4.0.2. The issue I'm having is trying to get HttpSession attributes in PortletSession.

PortletSessionImpl uses a prefix of "javax.portlet.p." which prevents HttpSession attributes from being returned. The private HttpSession in PortletSessionImpl has the attributes I need but the getters will not return them due to the prefix.

PortletSessionIpml implements PortletSession which states:
"Therefore all HttpSession listeners do apply to the portlet session and attributes set in the portlet session are visible in the HttpSession and vice versa."....so (per spec) shouldn't these be available?

Is there a work around to get to the HttpSession attributes?

View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­06085#3906085

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3906085


-------------------­--------------------­----------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.­net/geronimo.php
comment 1 answer | Add comment
Friday, 15 May 2009
[EJB 3.0] - Re: Hibernate Exception When Deleting OneToMany­ EJB3 Entity Chrismalan 17:05:48
 Hi Mike,

Sometimes you just have to think in database terms. Your kids table has a foreign key field for the primary key of the table called parent. There is nothing in the parent table to give any indication of how many kids the specific parent has.

What this boils down to is this: just do a em.remove(kid) That will take care of the relationship to the parent. Don't do parent.getKids().re­move(kid);

Give it a go.

View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­53919#3953919

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3953919

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.fa­lkag.net/sel?cmd=lnk­&kid=120709&bid=2630­57&dat=121642
comment 3 answer | Add comment
Wednesday, 13 May 2009
How to develop subreports in jasper Amol 04:19:07
 hello friends,
If anyone work in jasper report tool , Plz tell me how to create subreport in jasper report without using xml (i.e with pure programming);


-------------------­--------------------­--------------------­----------
Posted via Jive Forums
http://forums.opens­ymphony.com/thread.j­spa?threadID=2260&me­ssageID=6640#6640


-------------------­--------------------­--------------------­----------
To unsubscribe, e-mail: dev-unsubscribe@web­work.dev.java.net
For additional commands, e-mail: dev-help@webwork.de­v.java.net


comment 2 answer | Add comment
Friday, 8 May 2009
[JBoss Seam] - Seam Logging Configuration Adam.Stortz 11:07:42
 All,

I am using Seam for the first time, and I really like how easy it is to write logging code with Seam. The piece I am missing is how to configure logging. I really like Log4j and I am missing that level of flexibility here. I looked through the docs and the forums extensively, and have not seen anything that would suggest that this even exists. Am I missing something here? Or am I required to edit the jboss/server//conf/­log4j.xml to produced the desired behaviour?

Any help would be greatly appreciated.

Regards,
Stortz

View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­59164#3959164

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3959164
comment 1 answer | Add comment
Wednesday, 6 May 2009
Hibernate and Multiple Session Factories Matt Johnston 11:45:38
 My application is needing to connect to two seperate databases. According to Hibernate documentation, I will need to use seperate session factories.

Right now I am using the HibernateIntercepto­r written by Gavin King (http://www.hiberna­te.org/hib_docs/onli­ne/adminapp/) Unfortunately, it can only grab one session factory for Hibernate.

Has anyone found a way to easily use more than one hibernate session factory?

-------------------­--------------------­--------------------­----------
Posted via Jive Forums
http://forums.opens­ymphony.com/thread.j­spa?threadID=5011&me­ssageID=11971#11971


-------------------­--------------------­--------------------­----------
To unsubscribe, e-mail: users-unsubscribe@w­ebwork.dev.java.net
For additional commands, e-mail: users-help@webwork.­dev.java.net


comment 5 answers | Add comment
Tuesday, 21 April 2009
[Hibernate]org.hiber­nate.MappingExceptio­n: Error reading resource Ranjan Kumar Baisak 05:26:39
 I am new to Hibernate. When I am trying to run an application which tries to create an Object, I am getting following error
org.hibernate.Mappi­ngException: Error reading resource: hello/Category.hbm.­xml
at org.hibernate.cfg.C­onfiguration.addReso­urce(Configuration.j­ava:433)
at org.hibernate.cfg.C­onfiguration.doConfi­gure(Configuration.j­ava:1213)
at org.hibernate.cfg.C­onfiguration.doConfi­gure(Configuration.j­ava:1169)
comment 4 answer | Add comment
Thursday, 5 March 2009
Page Breaks Bowden Wise 22:47:04
 HI
I have recently started using iText to generate RTF.

Do Chapters always insert a page break? What if i dont want
my chapters to start new pages? Can I disable that feature?

Thanks,

Bowden

comment 14 answers | Add comment
Friday, 20 February 2009
display tag,how to add 2 properties together Shu 19:09:54
 hi,
the staff as follow,
i want first_name AND last_name display together at one column,
it seem cant use "+" or nest "<c:if .."tag to do this.
THX guys.
comment 2 answer | Add comment
Sunday, 25 January 2009
Expiration of your subscription to the ADVANCED-JAVA list PEACH.EASE.LSOFT.COM LISTSERV Server 14:00:19
 Sun, 25 Jan 2009 06:00:19

Your subscription to the ADVANCED-JAVA list has expired and you have
failed to confirm it in the 20 day delay that you had been granted.
Therefore, you have been automatically removed from the list. If you want
to re-subscribe to the list, then send the following command to
LISTSERV@PEACH.EASE­.LSOFT.COM:

SUBscribe ADVANCED-JAVA


Add comment
Monday, 5 January 2009
Renewal of your subscription to the ADVANCED-JAVA list PEACH.EASE.LSOFT.COM LISTSERV Server 14:13:23
 Mon, 5 Jan 2009 06:13:23

Your subscription to the ADVANCED-JAVA list is due for renewal. If you
wish to remain subscribed to ADVANCED-JAVA, please issue the following
command to LISTSERV@PEACH.EASE­.LSOFT.COM at your earliest convenience:

CONFIRM ADVANCED-JAVA

You will be automatically removed from the list if you do not send a
CONFIRM command within the next 20 days. The simplest way to do this is
to click on the following link:

http://peach.ease.l­soft.com/scripts/wa.­exe?LCMD=CONFIRM+ADV­ANCED-JAVA&L=ADVANCE­D-JAVA


Add comment
Wednesday, 17 December 2008
[JBoss Seam] - Clustering booking example Mphansen 15:31:29
 Hi,

I'm trying to set up the booking example in a cluster. I have two jboss-4.0.5-ga instances installed (with ejb3-clustered support) and an Apache in front of them.

I have made the following changes to the booking application.

1) It now uses a MySQL database which is shared by the two JBoss servers.
2) added distributable tag to web.xml to enable HTTP session replication
3) added @Clustered annotation to SFSB enable replication

I then test the application in the following way:

1) I hit http://localhost/se­am-booking/
2) I find a hotel and starts booking it
3) before confirming the booking I close down the jboss instance serving my request.
4) I confirm my booking

At this point the following stack trace is thrown at me:


| 15:39:45,578 WARN [SessionFactoryObjectFactory] Not found: 8a808083104f5a8f011­04f5a91200000
| 15:39:45,593 INFO [Exceptions] no exceptions.xml file found
| 15:39:45,593 ERROR [Exceptions] redirecting to debug page
| java.lang.RuntimeEx­ception: java.io.IOException­
| at org.jboss.ejb3.stat­eful.StatefulBeanCon­text.extractBeanAndI­nterceptors(Stateful­BeanContext.java:367­)
| at org.jboss.ejb3.stat­eful.StatefulBeanCon­text.getInstance(Sta­tefulBeanContext.jav­a:309)
| at org.jboss.ejb3.stat­eful.StatefulInstanc­eInterceptor.invoke(­StatefulInstanceInte­rceptor.java:77)
| at org.jboss.aop.joinp­oint.MethodInvocatio­n.invokeNext(MethodI­nvocation.java:101)
| at org.jboss.aspects.r­emoting.ReplicantsMa­nagerInterceptor.inv­oke(ReplicantsManage­rInterceptor.java:51­)
| at org.jboss.aop.joinp­oint.MethodInvocatio­n.invokeNext(MethodI­nvocation.java:101)
| at org.jboss.aspects.s­ecurity.Authenticati­onInterceptor.invoke­(AuthenticationInter­ceptor.java:77)
| at org.jboss.ejb3.secu­rity.Ejb3Authenticat­ionInterceptor.invok­e(Ejb3Authentication­Interceptor.java:102­)
| at org.jboss.aop.joinp­oint.MethodInvocatio­n.invokeNext(MethodI­nvocation.java:101)
| at org.jboss.ejb3.ENCP­ropagationIntercepto­r.invoke(ENCPropagat­ionInterceptor.java:­47)
| at org.jboss.aop.joinp­oint.MethodInvocatio­n.invokeNext(MethodI­nvocation.java:101)
| at org.jboss.ejb3.asyn­chronous.Asynchronou­sInterceptor.invoke(­AsynchronousIntercep­tor.java:106)
| at org.jboss.aop.joinp­oint.MethodInvocatio­n.invokeNext(MethodI­nvocation.java:101)
| at org.jboss.ejb3.stat­eful.StatefulContain­er.localInvoke(State­fulContainer.java:20­3)
| at org.jboss.ejb3.stat­eful.StatefulLocalPr­oxy.invoke(StatefulL­ocalProxy.java:98)
| at $Proxy153.confirm(U­nknown Source)
| at org.jboss.seam.exam­ple.booking.HotelBoo­king$$FastClassByCGL­IB$$c83b792d.invoke(­<generated>)
| at net.sf.cglib.proxy.­MethodProxy.invoke(M­ethodProxy.java:149)­
| at org.jboss.seam.inte­rcept.RootInvocation­Context.proceed(Root­InvocationContext.ja­va:45)
| at org.jboss.seam.inte­rcept.ClientSideInte­rceptor$1.proceed(Cl­ientSideInterceptor.­java:73)
| at org.jboss.seam.inte­rcept.SeamInvocation­Context.proceed(Seam­InvocationContext.ja­va:55)
| at org.jboss.seam.inte­rceptors.RemoveInter­ceptor.removeIfNeces­sary(RemoveIntercept­or.java:39)
| at sun.reflect.NativeM­ethodAccessorImpl.in­voke0(Native Method)
| at sun.reflect.NativeM­ethodAccessorImpl.in­voke(NativeMethodAcc­essorImpl.java:39)
| at sun.reflect.Delegat­ingMethodAccessorImp­l.invoke(DelegatingM­ethodAccessorImpl.ja­va:25)
| at java.lang.reflect.M­ethod.invoke(Method.­java:585)
| at org.jboss.seam.util­.Reflections.invoke(­Reflections.java:18)­
| at org.jboss.seam.inte­rcept.Interceptor.ar­oundInvoke(Intercept­or.java:169)
| at org.jboss.seam.inte­rcept.SeamInvocation­Context.proceed(Seam­InvocationContext.ja­va:64)
| at org.jboss.seam.inte­rceptors.ExceptionIn­terceptor.handleExce­ptions(ExceptionInte­rceptor.java:38)
| at sun.reflect.NativeM­ethodAccessorImpl.in­voke0(Native Method)
| at sun.reflect.NativeM­ethodAccessorImpl.in­voke(NativeMethodAcc­essorImpl.java:39)
| at sun.reflect.Delegat­ingMethodAccessorImp­l.invoke(DelegatingM­ethodAccessorImpl.ja­va:25)
| at java.lang.reflect.M­ethod.invoke(Method.­java:585)
| at org.jboss.seam.util­.Reflections.invoke(­Reflections.java:18)­
| at org.jboss.seam.inte­rcept.Interceptor.ar­oundInvoke(Intercept­or.java:169)
| at org.jboss.seam.inte­rcept.SeamInvocation­Context.proceed(Seam­InvocationContext.ja­va:64)
| at org.jboss.seam.inte­rcept.RootIntercepto­r.createSeamInvocati­onContext(RootInterc­eptor.java:144)
| at org.jboss.seam.inte­rcept.RootIntercepto­r.invokeInContexts(R­ootInterceptor.java:­129)
| at org.jboss.seam.inte­rcept.RootIntercepto­r.invoke(RootInterce­ptor.java:102)
| at org.jboss.seam.inte­rcept.ClientSideInte­rceptor.interceptInv­ocation(ClientSideIn­terceptor.java:82)
| at org.jboss.seam.inte­rcept.ClientSideInte­rceptor.intercept(Cl­ientSideInterceptor.­java:51)
| at org.jboss.seam.exam­ple.booking.HotelBoo­king$$EnhancerByCGLI­B$$c93c490c.confirm(­<generated>)
| at sun.reflect.NativeM­ethodAccessorImpl.in­voke0(Native Method)
| at sun.reflect.NativeM­ethodAccessorImpl.in­voke(NativeMethodAcc­essorImpl.java:39)
| at sun.reflect.Delegat­ingMethodAccessorImp­l.invoke(DelegatingM­ethodAccessorImpl.ja­va:25)
| at java.lang.reflect.M­ethod.invoke(Method.­java:585)
| at com.sun.el.parser.A­stValue.invoke(AstVa­lue.java:151)
| at com.sun.el.MethodEx­pressionImpl.invoke(­MethodExpressionImpl­.java:283)
| at com.sun.facelets.el­.TagMethodExpression­.invoke(TagMethodExp­ression.java:68)
| at com.sun.facelets.el­.LegacyMethodBinding­.invoke(LegacyMethod­Binding.java:69)
| at org.apache.myfaces.­application.ActionLi­stenerImpl.processAc­tion(ActionListenerI­mpl.java:63)
| at javax.faces.compone­nt.UICommand.broadca­st(UICommand.java:10­6)
| at org.ajax4jsf.framew­ork.ajax.AjaxViewRoo­t.processEvents(Ajax­ViewRoot.java:274)
| at org.ajax4jsf.framew­ork.ajax.AjaxViewRoo­t.broadcastEvents(Aj­axViewRoot.java:250)­
| at org.ajax4jsf.framew­ork.ajax.AjaxViewRoo­t.processApplication­(AjaxViewRoot.java:4­05)
| at org.apache.myfaces.­lifecycle.LifecycleI­mpl.invokeApplicatio­n(LifecycleImpl.java­:343)
| at org.apache.myfaces.­lifecycle.LifecycleI­mpl.execute(Lifecycl­eImpl.java:86)
| at javax.faces.webapp.­FacesServlet.service­(FacesServlet.java:1­37)
| at org.apache.catalina­.core.ApplicationFil­terChain.internalDoF­ilter(ApplicationFil­terChain.java:252)
| at org.apache.catalina­.core.ApplicationFil­terChain.doFilter(Ap­plicationFilterChain­.java:173)
| at org.jboss.seam.serv­let.SeamExceptionFil­ter.doFilter(SeamExc­eptionFilter.java:46­)
| at org.apache.catalina­.core.ApplicationFil­terChain.internalDoF­ilter(ApplicationFil­terChain.java:202)
| at org.apache.catalina­.core.ApplicationFil­terChain.doFilter(Ap­plicationFilterChain­.java:173)
| at org.jboss.seam.serv­let.SeamRedirectFilt­er.doFilter(SeamRedi­rectFilter.java:32)
| at org.apache.catalina­.core.ApplicationFil­terChain.internalDoF­ilter(ApplicationFil­terChain.java:202)
| at org.apache.catalina­.core.ApplicationFil­terChain.doFilter(Ap­plicationFilterChain­.java:173)
| at org.ajax4jsf.framew­ork.ajax.xmlfilter.B­aseXMLFilter.doXmlFi­lter(BaseXMLFilter.j­ava:75)
| at org.ajax4jsf.framew­ork.ajax.xmlfilter.B­aseFilter.doFilter(B­aseFilter.java:213)
| at org.apache.catalina­.core.ApplicationFil­terChain.internalDoF­ilter(ApplicationFil­terChain.java:202)
| at org.apache.catalina­.core.ApplicationFil­terChain.doFilter(Ap­plicationFilterChain­.java:173)
| at org.jboss.web.tomca­t.filters.ReplyHeade­rFilter.doFilter(Rep­lyHeaderFilter.java:­96)
| at org.apache.catalina­.core.ApplicationFil­terChain.internalDoF­ilter(ApplicationFil­terChain.java:202)
| at org.apache.catalina­.core.ApplicationFil­terChain.doFilter(Ap­plicationFilterChain­.java:173)
| at org.apache.catalina­.core.StandardWrappe­rValve.invoke(Standa­rdWrapperValve.java:­213)
| at org.apache.catalina­.core.StandardContex­tValve.invoke(Standa­rdContextValve.java:­178)
| at org.jboss.web.tomca­t.security.SecurityA­ssociationValve.invo­ke(SecurityAssociati­onValve.java:175)
| at org.jboss.web.tomca­t.tc5.session.Cluste­redSessionValve.invo­ke(ClusteredSessionV­alve.java:87)
| at org.jboss.web.tomca­t.tc5.session.JvmRou­teValve.invoke(JvmRo­uteValve.java:84)
| at org.jboss.web.tomca­t.security.JaccConte­xtValve.invoke(JaccC­ontextValve.java:74)­
| at org.apache.catalina­.core.StandardHostVa­lve.invoke(StandardH­ostValve.java:126)
| at org.apache.catalina­.valves.ErrorReportV­alve.invoke(ErrorRep­ortValve.java:105)
| at org.jboss.web.tomca­t.tc5.jca.CachedConn­ectionValve.invoke(C­achedConnectionValve­.java:156)
| at org.apache.catalina­.core.StandardEngine­Valve.invoke(Standar­dEngineValve.java:10­7)
| at org.apache.catalina­.connector.CoyoteAda­pter.service(CoyoteA­dapter.java:148)
| at org.apache.jk.serve­r.JkCoyoteHandler.in­voke(JkCoyoteHandler­.java:199)
| at org.apache.jk.commo­n.HandlerRequest.inv­oke(HandlerRequest.j­ava:282)
| at org.apache.jk.commo­n.ChannelSocket.invo­ke(ChannelSocket.jav­a:767)
| at org.apache.jk.commo­n.ChannelSocket.proc­essConnection(Channe­lSocket.java:697)
| at org.apache.jk.commo­n.ChannelSocket$Sock­etConnection.runIt(C­hannelSocket.java:88­9)
| at org.apache.tomcat.u­til.threads.ThreadPo­ol$ControlRunnable.r­un(ThreadPool.java:6­84)
| at java.lang.Thread.ru­n(Thread.java:595)
| Caused by: java.io.IOException­
| at org.jboss.serial.pe­rsister.RegularObjec­tPersister.readSlotW­ithMethod(RegularObj­ectPersister.java:10­7)
| at org.jboss.serial.pe­rsister.RegularObjec­tPersister.defaultRe­ad(RegularObjectPers­ister.java:269)
| at org.jboss.serial.pe­rsister.RegularObjec­tPersister.readData(­RegularObjectPersist­er.java:241)
| at org.jboss.serial.ob­jectmetamodel.Object­DescriptorFactory.re­adObjectDescriptionF­romStreaming(ObjectD­escriptorFactory.jav­a:412)
| at org.jboss.serial.ob­jectmetamodel.Object­DescriptorFactory.ob­jectFromDescription(­ObjectDescriptorFact­ory.java:82)
| at org.jboss.serial.ob­jectmetamodel.DataCo­ntainer$DataContaine­rDirectInput.readObj­ect(DataContainer.ja­va:643)
| at org.jboss.serial.pe­rsister.ArrayPersist­er.readObjectArray(A­rrayPersister.java:1­96)
| at org.jboss.serial.pe­rsister.ArrayPersist­er.readData(ArrayPer­sister.java:172)
| at org.jboss.serial.ob­jectmetamodel.Object­DescriptorFactory.re­adObjectDescriptionF­romStreaming(ObjectD­escriptorFactory.jav­a:412)
| at org.jboss.serial.ob­jectmetamodel.Object­DescriptorFactory.ob­jectFromDescription(­ObjectDescriptorFact­ory.java:82)
| at org.jboss.serial.ob­jectmetamodel.DataCo­ntainer$DataContaine­rDirectInput.readObj­ect(DataContainer.ja­va:643)
| at org.jboss.serial.io­.JBossObjectInputStr­eam.readObjectOverri­de(JBossObjectInputS­tream.java:163)
| at java.io.ObjectInput­Stream.readObject(Ob­jectInputStream.java­:343)
| at org.jboss.serial.io­.MarshalledObject.ge­t(MarshalledObject.j­ava:68)
| at org.jboss.ejb3.stat­eful.StatefulBeanCon­text.extractBeanAndI­nterceptors(Stateful­BeanContext.java:342­)
| ... 91 more
| Caused by: java.lang.reflect.I­nvocationTargetExcep­tion
| at sun.reflect.Generat­edMethodAccessor103.­invoke(Unknown Source)
| at sun.reflect.Delegat­ingMethodAccessorImp­l.invoke(DelegatingM­ethodAccessorImpl.ja­va:25)
| at java.lang.reflect.M­ethod.invoke(Method.­java:585)
| at org.jboss.serial.pe­rsister.RegularObjec­tPersister.readSlotW­ithMethod(RegularObj­ectPersister.java:10­3)
| ... 105 more
| Caused by: java.io.IOException­
| at org.jboss.serial.pe­rsister.RegularObjec­tPersister.readSlotW­ithMethod(RegularObj­ectPersister.java:10­7)
| at org.jboss.serial.pe­rsister.RegularObjec­tPersister.defaultRe­ad(RegularObjectPers­ister.java:269)
| at org.jboss.serial.pe­rsister.RegularObjec­tPersister.readData(­RegularObjectPersist­er.java:241)
| at org.jboss.serial.ob­jectmetamodel.Object­DescriptorFactory.re­adObjectDescriptionF­romStreaming(ObjectD­escriptorFactory.jav­a:412)
| at org.jboss.serial.ob­jectmetamodel.Object­DescriptorFactory.ob­jectFromDescription(­ObjectDescriptorFact­ory.java:82)
| at org.jboss.serial.ob­jectmetamodel.DataCo­ntainer$DataContaine­rDirectInput.readObj­ect(DataContainer.ja­va:643)
| at org.jboss.serial.pe­rsister.RegularObjec­tPersister.readSlotW­ithFields(RegularObj­ectPersister.java:35­3)
| at org.jboss.serial.pe­rsister.RegularObjec­tPersister.defaultRe­ad(RegularObjectPers­ister.java:273)
| at org.jboss.serial.pe­rsister.RegularObjec­tPersister.readData(­RegularObjectPersist­er.java:241)
| at org.jboss.serial.ob­jectmetamodel.Object­DescriptorFactory.re­adObjectDescriptionF­romStreaming(ObjectD­escriptorFactory.jav­a:412)
| at org.jboss.serial.ob­jectmetamodel.Object­DescriptorFactory.ob­jectFromDescription(­ObjectDescriptorFact­ory.java:82)
| at org.jboss.serial.ob­jectmetamodel.DataCo­ntainer$DataContaine­rDirectInput.readObj­ect(DataContainer.ja­va:643)
| at org.jboss.serial.pe­rsister.ObjectInputS­treamProxy.readObjec­tOverride(ObjectInpu­tStreamProxy.java:68­)
| at java.io.ObjectInput­Stream.readObject(Ob­jectInputStream.java­:343)
| at java.util.HashMap.r­eadObject(HashMap.ja­va:1013)
| ... 109 more
| Caused by: java.lang.reflect.I­nvocationTargetExcep­tion
| at sun.reflect.NativeM­ethodAccessorImpl.in­voke0(Native Method)
| at sun.reflect.NativeM­ethodAccessorImpl.in­voke(NativeMethodAcc­essorImpl.java:39)
| at sun.reflect.Delegat­ingMethodAccessorImp­l.invoke(DelegatingM­ethodAccessorImpl.ja­va:25)
| at java.lang.reflect.M­ethod.invoke(Method.­java:585)
| at org.jboss.serial.pe­rsister.RegularObjec­tPersister.readSlotW­ithMethod(RegularObj­ectPersister.java:10­3)
| ... 123 more
| Caused by: java.io.InvalidObje­ctException: could not resolve session factory during session deserialization [uuid=8a808083104f5a8f01104f5a91200000, name=null]
| at org.hibernate.impl.­SessionFactoryImpl.d­eserialize(SessionFa­ctoryImpl.java:1056)­
| at org.hibernate.impl.­SessionImpl.readObje­ct(SessionImpl.java:­1877)
| ... 128 more
| 15:39:46,265 ERROR [STDERR] 2007-01-23 15:39:46 com.sun.facelets.co­mpiler.TagLibraryCon­fig loadImplicit
| INFO: Added Library from: jar:file:/C:/Progra­mmer/jboss-4.0.5.GAcluster/server/node1­/./tmp/deploy/tmp293­36jboss-seam-booking­.ear-contents/jboss-­seam-booking-ex
| p.war/WEB-INF/lib/j­sf-facelets.jar!/MET­A-INF/jsf-ui.taglib.­xml
| 15:39:46,265 ERROR [STDERR] 2007-01-23 15:39:46 com.sun.facelets.co­mpiler.TagLibraryCon­fig loadImplicit
| INFO: Added Library from: jar:file:/C:/Progra­mmer/jboss-4.0.5.GAcluster/server/node1­/./tmp/deploy/tmp293­36jboss-seam-booking­.ear-contents/jboss-­seam-booking-ex
| p.war/WEB-INF/lib/j­sf-facelets.jar!/MET­A-INF/jsf-html.tagli­b.xml
| 15:39:46,281 ERROR [STDERR] 2007-01-23 15:39:46 com.sun.facelets.co­mpiler.TagLibraryCon­fig loadImplicit
| INFO: Added Library from: jar:file:/C:/Progra­mmer/jboss-4.0.5.GAcluster/server/node1­/./tmp/deploy/tmp293­36jboss-seam-booking­.ear-contents/jboss-­seam-booking-ex
| p.war/WEB-INF/lib/a­jax4jsf.jar!/META-IN­F/a4j.taglib.xml
| 15:39:46,296 ERROR [STDERR] 2007-01-23 15:39:46 com.sun.facelets.co­mpiler.TagLibraryCon­fig loadImplicit
| INFO: Added Library from: jar:file:/C:/Progra­mmer/jboss-4.0.5.GAcluster/server/node1­/./tmp/deploy/tmp293­36jboss-seam-booking­.ear-contents/jboss-­seam-booking-ex
| p.war/WEB-INF/lib/j­sf-facelets.jar!/MET­A-INF/jstl-fn.taglib­.xml
| 15:39:46,328 ERROR [STDERR] 2007-01-23 15:39:46 com.sun.facelets.co­mpiler.TagLibraryCon­fig loadImplicit
| INFO: Added Library from: jar:file:/C:/Progra­mmer/jboss-4.0.5.GAcluster/server/node1­/./tmp/deploy/tmp293­36jboss-seam-booking­.ear-contents/jboss-­seam-booking-ex
| p.war/WEB-INF/lib/j­sf-facelets.jar!/MET­A-INF/jsf-core.tagli­b.xml
| 15:39:46,328 ERROR [STDERR] 2007-01-23 15:39:46 com.sun.facelets.co­mpiler.TagLibraryCon­fig loadImplicit
| INFO: Added Library from: jar:file:/C:/Progra­mmer/jboss-4.0.5.GAcluster/server/node1­/./tmp/deploy/tmp293­36jboss-seam-booking­.ear-contents/jboss-­seam-booking-ex
| p.war/WEB-INF/lib/j­sf-facelets.jar!/MET­A-INF/jstl-core.tagl­ib.xml
| 15:39:46,343 ERROR [STDERR] 2007-01-23 15:39:46 com.sun.facelets.co­mpiler.TagLibraryCon­fig loadImplicit
| INFO: Added Library from: jar:file:/C:/Progra­mmer/jboss-4.0.5.GAcluster/server/node1­/./tmp/deploy/tmp293­36jboss-seam-booking­.ear-contents/jboss-­seam-booking-ex
| p.war/WEB-INF/lib/j­boss-seam-ui.jar!/ME­TA-INF/seam.taglib.x­ml
| 15:39:46,546 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces­.PRETTY_HTML' found, using default value true
| 15:39:46,546 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces­.ALLOW_JAVASCRIPT' found, using default value true
| 15:39:46,546 INFO [MyfacesConfig] Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilt­er are disabled now.
|

Before shutting down the server I check the tomcat cache and the SFSB cache through the JMX console and it looks consistent (through printDetails).

Does anyone have an idea about what is going on? Am I missing some modifications that has to be done to the application before it is cluster-enabled?

When I login at first I get the following exception but I assumed it has nothing to do with the exception above.


| 15:37:15,109 ERROR [JBossCacheService] externalizeSession(­): exception occurred externalizing session SessionBasedCluster­edSession[id: E37E19AA7BEF13F7F9272B96F
| 3AD8242.node2 lastAccessedTime: 1169563021890 version: 2 lastOutdated: 0]
| java.io.NotSerializ­ableException: javax.faces.applica­tion.FacesMessage$Se­verity
| at java.io.ObjectOutpu­tStream.writeObject0­(ObjectOutputStream.­java:1081)
| at java.io.ObjectOutpu­tStream.defaultWrite­Fields(ObjectOutputS­tream.java:1375)
| at java.io.ObjectOutpu­tStream.writeSerialD­ata(ObjectOutputStre­am.java:1347)
| at java.io.ObjectOutpu­tStream.writeOrdinar­yObject(ObjectOutput­Stream.java:1290)
| at java.io.ObjectOutpu­tStream.writeObject0­(ObjectOutputStream.­java:1079)
| at java.io.ObjectOutpu­tStream.writeObject(­ObjectOutputStream.j­ava:302)
| at java.util.ArrayList­.writeObject(ArrayLi­st.java:569)
| at sun.reflect.NativeM­ethodAccessorImpl.in­voke0(Native Method)
| at sun.reflect.NativeM­ethodAccessorImpl.in­voke(NativeMethodAcc­essorImpl.java:39)
| at sun.reflect.Delegat­ingMethodAccessorImp­l.invoke(DelegatingM­ethodAccessorImpl.ja­va:25)
| at java.lang.reflect.M­ethod.invoke(Method.­java:585)
| at java.io.ObjectStrea­mClass.invokeWriteOb­ject(ObjectStreamCla­ss.java:917)
| at java.io.ObjectOutpu­tStream.writeSerialD­ata(ObjectOutputStre­am.java:1339)
| at java.io.ObjectOutpu­tStream.writeOrdinar­yObject(ObjectOutput­Stream.java:1290)
| at java.io.ObjectOutpu­tStream.writeObject0­(ObjectOutputStream.­java:1079)
| at java.io.ObjectOutpu­tStream.defaultWrite­Fields(ObjectOutputS­tream.java:1375)
| at java.io.ObjectOutpu­tStream.writeSerialD­ata(ObjectOutputStre­am.java:1347)
| at java.io.ObjectOutpu­tStream.writeOrdinar­yObject(ObjectOutput­Stream.java:1290)
| at java.io.ObjectOutpu­tStream.writeObject0­(ObjectOutputStream.­java:1079)
| at java.io.ObjectOutpu­tStream.writeObject(­ObjectOutputStream.j­ava:302)
| at java.util.Hashtable­.writeObject(Hashtab­le.java:813)
| at sun.reflect.NativeM­ethodAccessorImpl.in­voke0(Native Method)
| at sun.reflect.NativeM­ethodAccessorImpl.in­voke(NativeMethodAcc­essorImpl.java:39)
| at sun.reflect.Delegat­ingMethodAccessorImp­l.invoke(DelegatingM­ethodAccessorImpl.ja­va:25)
| at java.lang.reflect.M­ethod.invoke(Method.­java:585)
| at java.io.ObjectStrea­mClass.invokeWriteOb­ject(ObjectStreamCla­ss.java:917)
| at java.io.ObjectOutpu­tStream.writeSerialD­ata(ObjectOutputStre­am.java:1339)
| at java.io.ObjectOutpu­tStream.writeOrdinar­yObject(ObjectOutput­Stream.java:1290)
| at java.io.ObjectOutpu­tStream.writeObject0­(ObjectOutputStream.­java:1079)
| at java.io.ObjectOutpu­tStream.writeObject(­ObjectOutputStream.j­ava:302)
| at org.jboss.web.tomca­t.tc5.session.Sessio­nBasedClusteredSessi­on.writeExternal(Ses­sionBasedClusteredSe­ssion.java:175)
| at org.jboss.web.tomca­t.tc5.session.JBossC­acheService.external­izeSession(JBossCach­eService.java:1023)
| at org.jboss.web.tomca­t.tc5.session.JBossC­acheService.putSessi­on(JBossCacheService­.java:312)
| at org.jboss.web.tomca­t.tc5.session.JBossC­acheClusteredSession­.processSessionRepl(­JBossCacheClusteredS­ession.java:121)
| at org.jboss.web.tomca­t.tc5.session.JBossC­acheManager.processS­essionRepl(JBossCach­eManager.java:1093)
| at org.jboss.web.tomca­t.tc5.session.JBossC­acheManager.storeSes­sion(JBossCacheManag­er.java:648)
| at org.jboss.web.tomca­t.tc5.session.Instan­tSnapshotManager.sna­pshot(InstantSnapsho­tManager.java:49)
| at org.jboss.web.tomca­t.tc5.session.Cluste­redSessionValve.invo­ke(ClusteredSessionV­alve.java:98)
| at org.jboss.web.tomca­t.tc5.session.JvmRou­teValve.invoke(JvmRo­uteValve.java:84)
| at org.jboss.web.tomca­t.security.JaccConte­xtValve.invoke(JaccC­ontextValve.java:74)­
| at org.apache.catalina­.core.StandardHostVa­lve.invoke(StandardH­ostValve.java:126)
| at org.apache.catalina­.valves.ErrorReportV­alve.invoke(ErrorRep­ortValve.java:105)
| at org.jboss.web.tomca­t.tc5.jca.CachedConn­ectionValve.invoke(C­achedConnectionValve­.java:156)
| at org.apache.catalina­.core.StandardEngine­Valve.invoke(Standar­dEngineValve.java:10­7)
| at org.apache.catalina­.connector.CoyoteAda­pter.service(CoyoteA­dapter.java:148)
| at org.apache.jk.serve­r.JkCoyoteHandler.in­voke(JkCoyoteHandler­.java:199)
| at org.apache.jk.commo­n.HandlerRequest.inv­oke(HandlerRequest.j­ava:282)
| at org.apache.jk.commo­n.ChannelSocket.invo­ke(ChannelSocket.jav­a:767)
| at org.apache.jk.commo­n.ChannelSocket.proc­essConnection(Channe­lSocket.java:697)
| at org.apache.jk.commo­n.ChannelSocket$Sock­etConnection.runIt(C­hannelSocket.java:88­9)
| at org.apache.tomcat.u­til.threads.ThreadPo­ol$ControlRunnable.r­un(ThreadPool.java:6­84)
| at java.lang.Thread.ru­n(Thread.java:595)
|

View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=40­05343#4005343

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=4005343
comment 1 answer | Add comment
Tuesday, 16 December 2008
Image Leigh Wanstead 17:32:42
 Hello everyone,

I used ethereal to monitor TCP/IP traffic. I saw Netscape visit a page, if
that page got images, it will open another socket. Can someone tell me why
browser do not reuse existing connections?

Thanks in advance.

Best Regards
Leigh



comment 40 answers | Add comment
Monday, 15 December 2008
Properties Petr Suchomel 22:22:56
 Little idea
It can be usefull ( in development of JSP files using structs ) to convert
properties files by java tool native2ascii and back
Petr




comment 37 answers | Add comment
Tuesday, 9 December 2008
Image Sizes Guest 23:05:07
 Hi

Sorry if you have already received this email. I understand the default
measurement unit is points.

When creating an image of any size in Photoshop and then adding the image to
a PDF, the image always comes out larger in the PDF than it should be.

Is there any conversion going on with iText, which would make this happen?
Using the iText sizing methods doesn't appear to correct this problem.

Thank you

James
comment 4 answer | Add comment
Friday, 5 December 2008
SocketChannel with socksProxy JVM args Rodrick Brown 22:14:23
 I've tested using my application through a socks proxy using the JVM's built
in socks support

ie. -DsocksProxyHost=ho­st -DsocksProxyPort=10­80

How ever my application uses SocketChannel which does not seem to be
supported or not sure what's wrong here

ie. the following code does not work
sc.connect(new InetSocketAddress("­10.187.11.202", 26161));
Where the following works fine and connects to the proxyhost passed with the
correct flags
Socket socket = new Socket("10.187.11.2­02",26161);
Anyone know what could be happening here?


--
[ Rodrick R. Brown ]
http://www.rodrickb­rown.com http://www.linkedin­.com/in/rodrickbrown­

===================­================
View archives and manage your subscription(s) at http://peach.ease.l­soft.com/archives

Add comment
Sunday, 30 November 2008
Mailing-list Maria Schon 11:18:45
 Hi!

Thanks for all good information and help I'v got throw all contacts in
the mailinglist.

Now I have no longer use for JBoss-information so I would like to
finnish my participation in the JBoss-mailinglist.

Regards,

Maria Schön

mariaschon@hotmail.­com


-------------------­--------------------­--------------------­----------

Planera semestern pÃ¥ MSN Klicka här [http://g.msn.com/8H­MASV/2746??PS=]
-------------------­--------------------­---------------- 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=1470&alloc_id=363­8&op=click

comment 20 answers | Add comment
Saturday, 22 November 2008
Memory Model (yeah, this again...) Ken Gentle 23:22:26
 I have a debate going on StackOverflow over an answer to this question:

http://stackoverflo­w.com/questions/3003­16/java-concurrency-­scenario-do-i-need-s­ynchronization-or-no­t#300394

I'm 'Ken G' in that forum.

My understanding of the problem/question:

1) A Single instance of a class with an instance variable (heap, IIRC) that is a reference to a HashMap - private visibility, not volatile.
2) Multiple threads containing "readers" that get the value of the HashMap reference via an unsynchronized accessor method . Threads exit, new threads get a HashMap reference as part of their startup via the method
3) The application refreshes with a new HashMap reference on some periodic basis.
4) It is OK if existing reader threads have references to an "old" HashMap as long as new threads get the reference to the "newest" HashMap.

Given those conditions, my understanding is that no synchronization is required for *new* reader threads to pick up the most recent value of the HashMap reference. With #4, there is no added value by synchronization or declaring the private, defining reference "volatile".

The dissenting opinion is that "volatile" is required (or some other barrier) to force the *application's* copy of the reference to be visible to other threads.

We've both been through section 17, and either we're not understanding it or we're not agreeing on the requirement.

Would ya'll please take a look and point out if/where we're incorrect?

===================­================
View archives and manage your subscription(s) at http://peach.ease.l­soft.com/archives

comment 1 answer | Add comment
Friday, 21 November 2008
Cookies/Remeber password Ayman Mackouly 10:14:11
 Hi folks,

I'm trying to do a simple username/password login for new members in my website (both are saved in mysql table) and I'm considering adding "Remember me" option, which means the user doesn't have to enter his username/password to login member's section instead username/password are loaded from a cookie.

I have three questions regarding that:

1.Is it a good idea to save username/password in a cookie?
2.Is there any built-in string encryption methond in PHP?
3.How do I set a cookie that doesn't expire?


Thanks in advance!
Ayman
comment 14 answers | Add comment

Add new topic:

How:  Register )
 
Login:   Password:   
Comments by: Premoderation:
Topic:
  
 
respect your talk pals, avoid using obscene language, typing entire messages in CAPS, posting buy/sell ads or violating netiquette or the RF Criminal Code..


QAIX > Java ProgrammingGo to page: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

see also:
apxs not found
Win98/ME problems terminating 2.0.44 on…
Problems starting SSL Apache
pass tests:
see also:
Hello!

  Copyright © 2001—2009 QAIX
Idea: Miñhael Monashev
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .