[ 
https://issues.apache.org/jira/browse/SYNCOPE-984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15777890#comment-15777890
 ] 

Ravi Singareddy commented on SYNCOPE-984:
-----------------------------------------

hi Andrea,
I was downloaded syncope project as zip file from github through check out. 
This zip was giving this problem. Instead I have cloned using GIT project. I 
have compiled code using mvn and faced following issues.
These are following changes are made to compile the code
1) archetype/pom.xml removed 
 <stylesheet>${basedir}/src/main/resources/properties2pom.xsl</stylesheet>
2) Missing woodstox-core-asl.jar in the 
ide\eclipse\bundles\org.apache.syncope.ide.eclipse.plugin\lib

After fixing these changes able to compile source code and took nearly 2 hours 
to compile the code. 

After compilation extracted apache-tomcat-8.5.9 directory from 
syncope-standalone-2.1.0-SNAPSHOT.
These are following steps are followed

1) Created MySQL syncope data base.

After providing connection information in 
src/main/resources/mysql/domains/Master.properties, perform the full test suite 
against a real MySQL database via
$ mvn -Pmysql-it

2) 
apache-tomcat-8.5.9\webapps\syncope\WEB-INF\classes\domains\Master.properties 
and Two.properties are populated with MYSQL Database details.

Now I have started apache  tomcat. Syncope it suppose to connect to syncope 
database but still it is connecting to h2 database. What are other I need to 
make for syncope to connect it to MySQL?


I have getting following error in the Apache Log file and do not know what 
causing this error.

26-Dec-2016 01:46:37.272 WARNING [localhost-startStop-1] org.apache.catalina.loa
der.WebappClassLoaderBase.clearReferencesThreads The web application [syncope] a
ppears to have started a thread named [Log4j2-TF-3-AsyncLoggerConfig-1] but has
failed to stop it. This is very likely to create a memory leak. Stack trace of t
hread:
 sun.misc.Unsafe.park(Native Method)
 java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNano
s(AbstractQueuedSynchronizer.java:2078)
 com.lmax.disruptor.TimeoutBlockingWaitStrategy.waitFor(TimeoutBlockingWaitStrat
egy.java:38)
 com.lmax.disruptor.ProcessingSequenceBarrier.waitFor(ProcessingSequenceBarrier.
java:56)
 com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:124)
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

 java.lang.Thread.run(Thread.java:745)
26-Dec-2016 01:46:37.277 WARNING [localhost-startStop-1] org.apache.catalina.loa
der.WebappClassLoaderBase.clearReferencesThreads The web application [syncope] a
ppears to have started a thread named [Log4j2-TF-1-42b2911c-2] but has failed to
 stop it. This is very likely to create a memory leak. Stack trace of thread:
 sun.misc.Unsafe.park(Native Method)
 java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
 java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQue
ue.java:460)
 java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.j
ava:362)
 java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:941)
 java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1066)
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)

 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

 java.lang.Thread.run(Thread.java:745)
26-Dec-2016 01:46:37.319 INFO [localhost-startStop-1] org.apache.catalina.startu
p.HostConfig.deployDirectory Deployment of web application directory D:\syncope\
syncope-standalone-2.1.0-SNAPSHOT\apache-tomcat-8.5.9\webapps\syncope has finish
ed in 79,712 ms

Any Ideas?
Thanks

Ravi


 




> Compiling Syncope in Windows Environment
> ----------------------------------------
>
>                 Key: SYNCOPE-984
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-984
>             Project: Syncope
>          Issue Type: Bug
>          Components: build-tools, common
>    Affects Versions: 2.0.1
>         Environment: Windows Environment
>            Reporter: Ravi Singareddy
>             Fix For: 2.0.1
>
>
> Tried to compile Syncope code in windows environment and getting "(misc) 
> NewlineAtEndOfFile: File does not end with a newline" error in all over java 
> code. Mostly source code is developed in Unix Environment and these java code 
> does not have "\n" . Please make sure code compiles in Windows Environment.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to