Return-Path: Delivered-To: apmail-roller-user-archive@www.apache.org Received: (qmail 61381 invoked from network); 24 Oct 2009 21:34:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Oct 2009 21:34:38 -0000 Received: (qmail 61892 invoked by uid 500); 24 Oct 2009 21:34:37 -0000 Delivered-To: apmail-roller-user-archive@roller.apache.org Received: (qmail 61851 invoked by uid 500); 24 Oct 2009 21:34:37 -0000 Mailing-List: contact user-help@roller.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@roller.apache.org Delivered-To: mailing list user@roller.apache.org Received: (qmail 61841 invoked by uid 99); 24 Oct 2009 21:34:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Oct 2009 21:34:37 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of matejonnet@gmail.com designates 72.14.220.159 as permitted sender) Received: from [72.14.220.159] (HELO fg-out-1718.google.com) (72.14.220.159) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Oct 2009 21:34:33 +0000 Received: by fg-out-1718.google.com with SMTP id 16so2525007fgg.9 for ; Sat, 24 Oct 2009 14:34:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=P4yACPCey0pkzib7y08IVtiBuoiaPQimZji9CwAvmcA=; b=HyCg2v+WtpcEz0CtNkA3J8qHbBn41BpooXmqOjA9BeUF6D76MqArJpn63mzHBGmbnn v7u94d4fSZ+SR29U5AySRElhEGMKHjfeoPtcMgAQj0P+ma9NJzw71VqDzu2WB7a4nADL b74VkC2wMdTcPhtJdJiIMCpTI1FnJOHP0fhCI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=brNOKPFRQW/CLvBYx1X6ijI1h9mJOFo6W9MgSC+P7hbysa9OGdKTi+tflzOh17hNn1 Wst7flSAZBPNLetPzRoaC6MpkHJpkG+j+Q8FLdUm4l5JG6eu0PwkSHxe7LBv5MJtzk8V aVOoUCJ6yepN+MyAT+UaBk+iS2PpEviyNmyCU= Received: by 10.86.214.20 with SMTP id m20mr2140483fgg.4.1256420050578; Sat, 24 Oct 2009 14:34:10 -0700 (PDT) Received: from ?192.168.2.112? (hydra-2.arctur.si [89.212.79.178]) by mx.google.com with ESMTPS id l12sm6844594fgb.27.2009.10.24.14.34.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 24 Oct 2009 14:34:09 -0700 (PDT) Message-ID: <4AE372CF.3040307@gmail.com> Date: Sat, 24 Oct 2009 23:34:07 +0200 From: Matej Lazar User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: user@roller.apache.org Subject: Re: AW: AW: AW: deploy to jboss 5.1 - You have not defined a non-jta-data-source References: <1256195392.12475.ezmlm@roller.apache.org> <4AE0097F.3010103@gmail.com> <8fb9ac720910230422n27649ed5r9af1675ce1ac30c9@mail.gmail.com> <002301ca54b3$c5724540$5056cfc0$@net> <4AE317EE.2020008@gmail.com> <004601ca54bc$39b04a80$ad10df80$@net> <4AE32345.1080205@gmail.com> <004f01ca54c5$806bf650$8143e2f0$@net> In-Reply-To: <004f01ca54c5$806bf650$8143e2f0$@net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Finally working after disabling openjpa.QueryCompilationCache and applying patch to xwork-2.0.4.jar. Patch is required to prevent "Could not initialize class com.opensymphony.xwork2.validator.ValidatorFactory" while trying to create new user. to apply patch download sources from http://www.opensymphony.com/xwork/download.action and patch from http://jira.opensymphony.com/browse/XW-649 problem described http://www.jboss.org/index.html?module=bb&op=viewtopic&t=141959&postdays=0&postorder=asc&start=0 my configuration ... roller-custom.properties: installation.type=manual database.configurationType=jdbc database.jdbc.driverClass=com.mysql.jdbc.Driver database.jdbc.connectionURL=jdbc:mysql://localhost:3306/rollerdb database.jdbc.username=roller database.jdbc.password=***** #dibable cache to prevent #<0.9.7-incubating nonfatal general error> org.apache.openjpa.persistence.PersistenceException: There were errors initializing your configuration: org.apache.openjpa.lib.util.ParseException: Instantiation of plugin "QueryCompilationCache" with value "true" caused an error "java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: org.apache.openjpa.util.CacheMap". The alias or class name may have been misspelled (as it closely matches the valid plugin alias "true"), or the class may not be available in the class path. Valid aliases for this plugin are: [all, false, true] #... #Caused by: java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: org.apache.openjpa.util.CacheMap openjpa.QueryCompilationCache=false web.xml comment out resource-ref: Thanks for help, Matej. Werner Gaulke wrote: > Exception looks like a datasource configuration problem to me. Try defining > a no-tx-datasource. Have a look in the jboss server documentation. > > > > > > >> Unfortunately no success :( >> > > >> roller.log empty, jboss console/log (see attachment) >> > > >> I think I'm closer with jdbc configuration than jndi. >> > > > -- > matej > > > Werner Gaulke wrote: > >> No problem: >> >> Jboss-web.xml: >> > "-//JBoss//DTD Web Application 2.4//EN" >> "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd"> >> >> java:/jaas/roller-policy >> roller >> >> jdbc/rollerdb >> java:/jdbc/RollerDB >> >> >> mail/Session >> java:/mail/RollerMail >> >> >> >> >> Roller-ds.xml >> >> > PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN" >> "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd"> >> >> >> jdbc/RollerDB >> jdbc:mysql://localhost:3306/roller >> com.mysql.jdbc.Driver >> roller >> mysecretpass >> >> >> >> Roller-custom.properties >> weblog.absoluteurl.mysite=http://www.mysite.de >> >> >> web.xml -> didn't change anything. >> >> >> I do not know how far these settings apply to jboss 5.1 >> >> >> Werner >> >> >> >> >> >> >> >>> I was also trying to manage with resource ref and ds, but with no >>> success, can you please post me content of your files. >>> roller-ds.xml >>> jboss-web.xml >>> web.xml >>> roller-custom.properties >>> >>> -- >>> matej >>> >>> >> Werner Gaulke wrote: >> >> >>> Hello, >>> >>> I have configured Roller with JBoss 4.2.3. Here are the steps I've done: >>> >>> - define roller-ds.xml with database configuration >>> - define jboss-web.xml in roller.war/web-inf with resource ref pointer >>> > for > >>> roller-ds >>> - add roller-custom.properties in roller/web-inf/classes >>> - put hibernate-entitymanager.jar in roller/web-inf/lib >>> >>> Create roller tables manually >>> >>> Startup jboss - everything working fine (I left out email config) >>> >>> Maybe it helps for jboss 5.1 - if you get it working please drop a note >>> here. I plan to migrate to jboss 5.1 later this year >>> >>> >>> Regards >>> werner >>> >>> >>> >>> >>> >>> >> >> >> >> > > > > >