Re: Cut server release soon

2011-07-05 Thread hyysguy...@gmail.com
Good news, the release james-server-3.0-beta2 is available now in svn, 
everyone can check out it from  
http://svn.apache.org/repos/asf/james/server/tags/james-server-3.0-beta2


Thanks James Team.

Please be free to contact with me for any question or suggestion.
Thanks & Best Regards .
 


Young Gu | Software Engineer | http://www.infor.com

On 7/6/2011 1:05 AM, Norman Maurer wrote:

Hi there,

I will try to cut a release of the "server" artifacts later this
evening. This can then be used to assemble the app.

Bye,
Norman

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Re: [VOTE] Release Apache James Server 3.0-beta2 artifacts

2011-07-07 Thread hyysguy...@gmail.com
I build james-app after build james server 3.0-beta2, but I can't start 
james server, is this related with james server or just the problem of 
james-app? Please note that I have changed the version to 3.0-beta2 
before build james app.


The console log is below:

log4j:WARN No appenders could be found for logger 
(org.apache.commons.configuration.ConfigurationUtils).

log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for 
more info.
94  James  WARN   [main] openjpa.Runtime - An error occurred while 
registering a ClassTransformer with PersistenceUnitInfo: n
ame 'James', root URL 
[file:/D:/OpenSources/james/app/trunk/target/apache-james-3.0-beta2/lib/james-server-jpa-3.0-beta2.jar]
. The error has been consumed. To see it, set your openjpa.Runtime log 
level to TRACE. Load-time class transformation will no

t be available.
500  James  INFO   [main] openjpa.Runtime - Starting OpenJPA 2.1.0
735  James  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class 
"org.apache.openjpa.jdbc.sql.DerbyDictionary".
Exception in thread "main" 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'mailproces
sor': Injection of resource dependencies failed; nested exception is 
org.springframework.beans.factory.BeanCreationException:
 Error creating bean with name 'mailetcontext': Injection of resource 
dependencies failed; nested exception is org.springfram
ework.beans.factory.BeanCreationException: Error creating bean with name 
'usersrepository': Injection of resource dependencie
s failed; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'domainl
ist': Invocation of init method failed; nested exception is 
 org.apache.openj
pa.persistence.InvalidStateException: Could not perform automatic lookup 
of EJB container's javax.transaction.TransactionMana
ger implementation. Please ensure that you are running the application 
from within an EJB 1.1 compliant EJB container, and th
en set the org.apache.openjpa.ManagedRuntime property to the appropriate 
value to obtain the TransactionManager.
at 
org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotatio

nBeanPostProcessor.java:300)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableB

eanFactory.java:1074)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableB

eanFactory.java:517)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBea

nFactory.java:456)
at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.j

ava:222)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanF

actory.java:580)
at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplication

Context.java:895)
at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at 
org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)


at 
org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93)
at 
org.apache.james.container.spring.context.JamesServerApplicationContext.(JamesServerApplicationContext.java:

39)
at org.apache.james.container.spring.Main.init(Main.java:66)
at org.apache.james.container.spring.Main.main(Main.java:42)
Caused by: org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'mailetcontext': Injection
of resource dependencies failed; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'usersrepository': Injection of resource dependencies 
failed; nested exception is org.springframework.beans.fa
ctory.BeanCreationException: Error creating bean with name 'domainlist': 
Invocation of init method failed; nested exception i
s  
org.apache.openjpa.persistence.InvalidStateException: Could not perform au
tomatic lookup of EJB container's javax.transaction.TransactionManager 
implementation. Please ensure that you are running the
 application from within an EJB 1.1 compliant EJB container, and then 
set the org.apache.openjpa.ManagedR

Re: [VOTE] Release Apache James Server 3.0-beta2 artifacts

2011-07-07 Thread hyysguy...@gmail.com
No, I don't have jndi.properties, but, IMHO, anyone should run james 
server successful without any configuration just as previous release.


Please be free to contact with me for any question or suggestion.
Thanks & Best Regards .
 


Young Gu | Software Engineer | http://www.infor.com

On 7/8/2011 2:31 PM, Eric Charles wrote:

Hi,
I'm in a hurry for now and don't have time to test app...
From stacktrace, it seems jpa thinks he is in a J2EE env. Do you have 
a jndi.properties on the classpath?


Thx.

On 08/07/11 07:59, [email protected] wrote:

I build james-app after build james server 3.0-beta2, but I can't start
james server, is this related with james server or just the problem of
james-app? Please note that I have changed the version to 3.0-beta2
before build james app.

The console log is below:

log4j:WARN No appenders could be found for logger
(org.apache.commons.configuration.ConfigurationUtils).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
94 James WARN [main] openjpa.Runtime - An error occurred while
registering a ClassTransformer with PersistenceUnitInfo: n
ame 'James', root URL
[file:/D:/OpenSources/james/app/trunk/target/apache-james-3.0-beta2/lib/james-server-jpa-3.0-beta2.jar] 



. The error has been consumed. To see it, set your openjpa.Runtime log
level to TRACE. Load-time class transformation will no
t be available.
500 James INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0
735 James INFO [main] openjpa.jdbc.JDBC - Using dictionary class
"org.apache.openjpa.jdbc.sql.DerbyDictionary".
Exception in thread "main"
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'mailproces
sor': Injection of resource dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'mailetcontext': Injection of resource
dependencies failed; nested exception is org.springfram
ework.beans.factory.BeanCreationException: Error creating bean with name
'usersrepository': Injection of resource dependencie
s failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'domainl
ist': Invocation of init method failed; nested exception is
 org.apache.openj
pa.persistence.InvalidStateException: Could not perform automatic lookup
of EJB container's javax.transaction.TransactionMana
ger implementation. Please ensure that you are running the application
from within an EJB 1.1 compliant EJB container, and th
en set the org.apache.openjpa.ManagedRuntime property to the appropriate
value to obtain the TransactionManager.
at
org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotatio 



nBeanPostProcessor.java:300)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableB 



eanFactory.java:1074)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableB 



eanFactory.java:517)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBea 



nFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) 



at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.j 



ava:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) 



at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) 



at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanF 



actory.java:580)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplication 



Context.java:895)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) 



at
org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139) 




at
org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93) 



at
org.apache.james.container.spring.context.JamesServerApplicationContext.(JamesServerApplicationContext.java: 



39)
at org.apache.james.container.spring.Main.init(Main.java:66)
at org.apache.james.container.spring.Main.main(Main.java:42)
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'mailetcontext': Injection
of resource dependencies failed; nested exception is
org.springframewor

Re: Need help with build / deployment

2011-07-11 Thread hyysguy...@gmail.com

How do you start your james server?
1. You need to update the classpath of  run.sh if you start it with 
run.sh script.
2. You need to update the wrapper.conf/wrapper.conf if you start it with 
james script.


However, the simplest solution is just put the jar to directory 
conf/lib, but this maybe not make sense if you change some james-related 
java source files .


Please be free to contact with me for any question or suggestion.
Thanks & Best Regards .
 


Young Gu | Software Engineer | http://www.infor.com

On 7/12/2011 5:09 AM, Saibabu Vallurupalli wrote:

Hi All,

I am kind of stuck with build and deployment please help me with this.
To achieve Encryption/Decryption functionality I have to modify 
JPAMessage.java file and add another file CustomJPAMessage.java. The 
fix I made uses JASYPT Library as well.


The steps I followed are below:
In Eclipse I have checked-out the JPA project: 
http://svn.apache.org/repos/asf/james/mailbox/trunk/jpa

Opened JPA project in Eclipse as a JAVA project
Completed the modifications.
Opened command-prompt and ran the package command mvn clean package

Artifacts got generated with name: 
apache-james-mailbox-jpa-0.4-SNAPSHOT.jar & 
apache-james-mailbox-jpa-0.4-SNAPSHOT-tests.jar


I took the back-up of existing 
"apache-james-mailbox-jpa-0.2-M2-20110401.040755-51.jar" file and 
place the "apache-james-mailbox-jpa-0.4-SNAPSHOT.jar" in my Apache 
James server library path.


When i am trying to start James server it complains about missing 
classes. "Caused by: java.lang.ClassNotFoundException: 
org.apache.james.mailbox.jpa.mail.JPACachingUidProvider".


I compared the JAR file size and found the new one (67KB) is less than 
the original one (74KB).


Any suggestions on making build and deployments? I have attached the 
modified java files and pom.xml including JASYPT library to this email.


Thanks,
Sai





-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]