블로그 이미지
올해목표 // 10월 어학연수 떠나자~ 자수씨

카테고리

전체글 (1457)
Brand New! (28)
주절주절 (213)
MOT (11)
해외쇼핑 (49)
쇼핑노트 (150)
취미생활 (94)
iPhone (4)
Eclipse (121)
Google (83)
Spring (31)
JAVA (176)
JavaScript (59)
WEB (49)
Database (20)
OS (26)
Tools (8)
Tips (26)
IT정보 (1)
Book (21)
Programming (37)
외부행사 (43)
주변인들 (17)
여행노트 (60)
학교생활 (30)
회사생활 (52)
사회생활 (5)
외국어공부 (12)
잡동사니 (30)
Total
Today
Yesterday
 
10-04 08:24
 

달력

« » 2024.10
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
 

최근에 올라온 글

최근에 달린 댓글

어제 로컬에서 띄운 것을 확인하고 오늘와서 띄워보니 아래와 같은 오류가...

 

Caused by: <openjpa-2.2.1-r422266:1396819 nonfatal user error> org.apache.openjpa.persistence.ArgumentException: This configuration disallows runtime optimization, but the following listed types were not enhanced at build time or at class load time with a
javaagent: "
org.apache.james.domainlist.jpa.model.JPADomain
org.apache.james.user.jpa.model.JPAUser
org.apache.james.rrt.jpa.model.JPARecipientRewrite".

 

구글링을 해보니 아래와 같은 해결책을 찾을 수 있었다.

http://djitz.com/neu-mscs/getting-started-using-apache-openjpa/

...

4. Run the Main class (right click the Main.java > Run As > Java Application).
 
If you followed everything correctly, you will see that OpenJPA creates the Patient table automatically. However, it will throw an Exception afterwards, and it goes like:
 
Exception in thread "main" <openjpa-2.0.1-r422266:989424 nonfatal user error> org.apache.openjpa.persistence.ArgumentException: This configuration disallows runtime optimization, but the following listed types were not enhanced at build time or at class load time with a javaagent: "com.djitz.model.Patient".
 
This happens because the OpenJPA fails to run enhanced the entity file (Patient.java) we created. What the OpenJPA (and also Hibernate) does is putting some more code in our Patient class after it is compiled. These code lines enable the OpenJPA to do some “magic”.
 
Now we need to add some lines on the run configuration to apply this enhancement.

F. Add run configuration for Enhancement
 
1. Right click the Main class > Run As > Run configurations
 2. Open the “Arguments” tab
 3. Paste the following in the VM arguments box:
 
-javaagent:[path-to-extraced-openjpa-zip-file]/openjpa-2.0.1.jar
 
4. Re-run the Main.java, there should be no error by now.

...

 

검색한대로 Java VM 에 아래의 파라미터를 추가하니 정상 동작합니다. (경로는 제 개발환경 기준...)

-javaagent:C:\Users\Administrator\.m2\repository\org\apache\openjpa\openjpa\2.2.1\openjpa-2.2.1.jar

 

 

 

 

Posted by 자수씨
, |

http://mail-archives.apache.org/mod_mbox/james-server-user/201106.mbox/%3C4DFBC41D.9060107@gmx.de%3E


위의 내용을 참고하여 이클립스에 James를 띄우는 것은 성공...




security 쪽이 문제가 되서 "-Djava.security.manager" 옵션을 빼니깐 바로 되는군...


이제부터 IMAP 시작!!





Posted by 자수씨
, |

글 보관함

최근에 받은 트랙백