I think long term the code just needs to be upgraded to work with Java 8 so 
manual intervention is not needed.  It would be nice if the instructions 
mentioned the bin.xml and the pom to include the database resources you may 
need.  I am sure, some database(s) jars cannot be included because of licensing 
concerns.

We are working with 3.2.2 version of cTAKES and the group is working to release 
3.2.3, so I don't know what has already been included.

We were able to get YTEX started but it is still not fully functional.



-----Original Message-----
From: Leander Melms [mailto:me...@students.uni-marburg.de]
Sent: Friday, March 03, 2017 10:15 AM
To: dev@ctakes.apache.org
Subject: Re: [EXTERNAL] Re: YTEX User Inferace Users?

Joyce,

I was finally able to run the YTEX database install! Although it only took 5 
mins and most of the tables are still empty. But this is a huge success. Thank 
you for your time and help! I would not have been able to get it running 
without your guidance.

I wondered if we should rewrite the guide for Java 8. I could summarize the 
steps you've outlined for the community.

Do you have any resources and/or experiance for ytex web? Did you managed to 
get it running?


Again, thank you for the help. Really made my day!

Leander


> On 3 Mar 2017, at 16:38, Leander Melms <me...@students.uni-marburg.de> wrote:
>
> I'm following allong the guide at 
> https://cwiki.apache.org/confluence/display/CTAKES/YTEX+Installation 
> <https://cwiki.apache.org/confluence/display/CTAKES/YTEX+Installation>, which 
> is the db install. I'm stuck at 7) Execute the setup script.
>
> It is able to connect to the DB. Later on, it fails through with the
> error.  It happens after
>
> nohup ../../ant -f build-setup.xml all > setup.out 2>&1 & tail -f
> setup.out
>
> Leander
>> On 3 Mar 2017, at 16:25, Dunlop, Joyce (HP) <joyce.dun...@va.gov> wrote:
>>
>> Remind me ... are you getting the error when you try to start YTEX web or 
>> run the YTEX database install?
>>
>> -----Original Message-----
>> From: Leander Melms [mailto:me...@students.uni-marburg.de]
>> Sent: Friday, March 03, 2017 9:15 AM
>> To: dev@ctakes.apache.org
>> Subject: Re: [EXTERNAL] Re: YTEX User Inferace Users?
>>
>> Yes it is - I've got ehcache-core-2.4.6.jar in the lib folder. Any ideas why 
>> ctakes can't find it?
>>
>>
>>> On 3 Mar 2017, at 16:04, Dunlop, Joyce (HP) <joyce.dun...@va.gov> wrote:
>>>
>>> You are right id does not need to be the parent pom if it was already 
>>> included in the YTEX pom.
>>>
>>> Did you verify the ehcache-core jar is in the lib folder after you compile 
>>> and package?
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: Leander Melms [mailto:me...@students.uni-marburg.de]
>>> Sent: Friday, March 03, 2017 8:59 AM
>>> To: dev@ctakes.apache.org
>>> Subject: Re: [EXTERNAL] Re: YTEX User Inferace Users?
>>>
>>> Joyce,
>>>
>>> I've added
>>>
>>>             <dependency>
>>>                     <groupId>net.sf.ehcache</groupId>
>>>                     <artifactId>ehcache-core</artifactId>
>>>                     <version>2.4.6</version>
>>>             </dependency>
>>>
>>> to my pom file at the root dir. It is already included in the pom.xml of 
>>> ./ctakes-ytex. It felt wrong, but I gave it a shot resulting in the same 
>>> error. Where do I have to add the ehcache-core dependency?
>>>
>>> Leander
>>>
>>>
>>>> On 3 Mar 2017, at 15:16, Dunlop, Joyce (HP) <joyce.dun...@va.gov> wrote:
>>>>
>>>> Leander,
>>>> You are still making progress.
>>>>
>>>> Your next issue is...
>>>>
>>>> nested exception is java.lang.ClassNotFoundException:
>>>> org.springframework.cache.ehcache.EhCacheManagerFactoryBean
>>>>
>>>> It cannot find ehcache
>>>>
>>>> My pom has ehcache-core version 2.4.6
>>>>
>>>> Joyce
>>>>
>>>> -----Original Message-----
>>>> From: Leander Melms [mailto:me...@students.uni-marburg.de]
>>>> Sent: Thursday, March 02, 2017 4:41 PM
>>>> To: dev@ctakes.apache.org
>>>> Subject: Re: [EXTERNAL] Re: YTEX User Inferace Users?
>>>>
>>>> I've modified the bin.xml accordingly and hibernate, weka and the mysql 
>>>> connector are now available in the classpath! Thank you for your help. I 
>>>> really appreciate that!
>>>>
>>>> But still, I'm getting the same output like before, complaining about 
>>>> BeanCreationException: Error creating bean with name 
>>>> 'kernelApplicationContext', BeanInstantiationException: Could not 
>>>> instantiate bean class 
>>>> [org.springframework.context.support.ClassPathXmlApplicationContext] and 
>>>> so on.
>>>>
>>>> Any ideas what I'm doing wrong?
>>>>
>>>> [java] 02 Mar 2017 23:34:42  WARN ClassPathXmlApplicationContext -
>>>> Exception encountered during context initialization - cancelling
>>>> refresh attempt:
>>>> org.springframework.beans.factory.BeanCreationException: Error
>>>> creating bean with name 'kernelApplicationContext' defined in URL
>>>> [jar:file:/Users/leandermelms/coding/ctakes-3.2.3-spring/lib/ctakes
>>>> -ytex-web-3.2.3-SNAPSHOT-classes.jar!/org/apache/ctakes/ytex/kernel
>>>> BeanRefContext.xml]: Instantiation of bean failed; nested exception
>>>> is org.springframework.beans.BeanInstantiationException: Could not
>>>> instantiate bean class
>>>> [org.springframework.context.support.ClassPathXmlApplicationContext
>>>> ]: Constructor threw exception; nested exception is
>>>> org.springframework.beans.factory.CannotLoadBeanClassException:
>>>> Cannot find class
>>>> [org.springframework.cache.ehcache.EhCacheManagerFactoryBean] for
>>>> bean with name 'cacheManager' defined in class path resource
>>>> [org/apache/ctakes/ytex/beans-kernel.xml]; nested exception is
>>>> java.lang.ClassNotFoundException:
>>>> org.springframework.cache.ehcache.EhCacheManagerFactoryBean
>>>>  [java] 02 Mar 2017 23:34:42  INFO DefaultListableBeanFactory -
>>>> Destroying singletons in 
>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory@7ed7259e:
>>>>  defining beans [kernelApplicationContext]; root of factory hierarchy  
>>>> [java] Exception in thread "main" java.lang.ExceptionInInitializerError
>>>>  [java]    at 
>>>> org.apache.ctakes.ytex.tools.SetupAuiFirstWord.setupAuiFirstWord(SetupAuiFirstWord.java:190)
>>>>  [java]    at 
>>>> org.apache.ctakes.ytex.tools.SetupAuiFirstWord.main(SetupAuiFirstWord.java:186)
>>>>  [java] Caused by: 
>>>> org.springframework.beans.factory.access.BootstrapException: Unable to 
>>>> initialize group definition. Group resource name 
>>>> [classpath*:org/apache/ctakes/ytex/kernelBeanRefContext.xml], factory key 
>>>> [kernelApplicationContext]; nested exception is 
>>>> org.springframework.beans.factory.BeanCreationException: Error creating 
>>>> bean with name 'kernelApplicationContext' defined in URL 
>>>> [jar:file:/Users/leandermelms/coding/ctakes-3.2.3-spring/lib/ctakes-ytex-web-3.2.3-SNAPSHOT-classes.jar!/org/apache/ctakes/ytex/kernelBeanRefContext.xml]:
>>>>  Instantiation of bean failed; nested exception is 
>>>> org.springframework.beans.BeanInstantiationException: Could not 
>>>> instantiate bean class 
>>>> [org.springframework.context.support.ClassPathXmlApplicationContext]: 
>>>> Constructor threw exception; nested exception is 
>>>> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot 
>>>> find class [org.springframework.cache.ehcache.EhCacheManagerFactoryBean] 
>>>> for bean with name 'cacheManager' defined in class path resource 
>>>> [org/apache/ctakes/ytex/beans-kernel.xml]; nested exception is 
>>>> java.lang.ClassNotFoundException: 
>>>> org.springframework.cache.ehcache.EhCacheManagerFactoryBean
>>>>  [java]    at 
>>>> org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:386)
>>>>  [java]    at 
>>>> org.apache.ctakes.ytex.kernel.KernelContextHolder.<clinit>(KernelContextHolder.java:29)
>>>>  [java]    ... 2 more
>>>>  [java] Caused by: 
>>>> org.springframework.beans.factory.BeanCreationException: Error creating 
>>>> bean with name 'kernelApplicationContext' defined in URL 
>>>> [jar:file:/Users/leandermelms/coding/ctakes-3.2.3-spring/lib/ctakes-ytex-web-3.2.3-SNAPSHOT-classes.jar!/org/apache/ctakes/ytex/kernelBeanRefContext.xml]:
>>>>  Instantiation of bean failed; nested exception is 
>>>> org.springframework.beans.BeanInstantiationException: Could not 
>>>> instantiate bean class 
>>>> [org.springframework.context.support.ClassPathXmlApplicationContext]: 
>>>> Constructor threw exception; nested exception is 
>>>> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot 
>>>> find class [org.springframework.cache.ehcache.EhCacheManagerFactoryBean] 
>>>> for bean with name 'cacheManager' defined in class path resource 
>>>> [org/apache/ctakes/ytex/beans-kernel.xml]; nested exception is 
>>>> java.lang.ClassNotFoundException: 
>>>> org.springframework.cache.ehcache.EhCacheManagerFactoryBean
>>>>  [java]    at 
>>>> org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:285)
>>>>  [java]    at 
>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1077)
>>>>  [java]    at 
>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:981)
>>>>  [java]    at 
>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
>>>>  [java]    at 
>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
>>>>  [java]    at 
>>>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
>>>>  [java]    at 
>>>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
>>>>  [java]    at 
>>>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
>>>>  [java]    at 
>>>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
>>>>  [java]    at 
>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:638)
>>>>  [java]    at 
>>>> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:942)
>>>>  [java]    at 
>>>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
>>>>  [java]    at 
>>>> org.springframework.context.access.ContextSingletonBeanFactoryLocator.initializeDefinition(ContextSingletonBeanFactoryLocator.java:143)
>>>>  [java]    at 
>>>> org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:381)
>>>>  [java]    ... 3 more
>>>>  [java] Caused by: org.springframework.beans.BeanInstantiationException: 
>>>> Could not instantiate bean class 
>>>> [org.springframework.context.support.ClassPathXmlApplicationContext]: 
>>>> Constructor threw exception; nested exception is 
>>>> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot 
>>>> find class [org.springframework.cache.ehcache.EhCacheManagerFactoryBean] 
>>>> for bean with name 'cacheManager' defined in class path resource 
>>>> [org/apache/ctakes/ytex/beans-kernel.xml]; nested exception is 
>>>> java.lang.ClassNotFoundException: 
>>>> org.springframework.cache.ehcache.EhCacheManagerFactoryBean
>>>>  [java]    at 
>>>> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
>>>>  [java]    at 
>>>> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:121)
>>>>  [java]    at 
>>>> org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:277)
>>>>  [java]    ... 16 more
>>>>  [java] Caused by: 
>>>> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot 
>>>> find class [org.springframework.cache.ehcache.EhCacheManagerFactoryBean] 
>>>> for bean with name 'cacheManager' defined in class path resource 
>>>> [org/apache/ctakes/ytex/beans-kernel.xml]; nested exception is 
>>>> java.lang.ClassNotFoundException: 
>>>> org.springframework.cache.ehcache.EhCacheManagerFactoryBean
>>>>  [java]    at 
>>>> org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1278)
>>>>  [java]    at 
>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:573)
>>>>  [java]    at 
>>>> org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1347)
>>>>  [java]    at 
>>>> org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:913)
>>>>  [java]    at 
>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:619)
>>>>  [java]    at 
>>>> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:942)
>>>>  [java]    at 
>>>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
>>>>  [java]    at 
>>>> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
>>>>  [java]    at 
>>>> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
>>>>  [java]    at 
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>>>  [java]    at 
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>>>>  [java]    at 
>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>>>  [java]    at 
>>>> java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>>>>  [java]    at 
>>>> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
>>>>  [java]    ... 18 more
>>>>  [java] Caused by: java.lang.ClassNotFoundException: 
>>>> org.springframework.cache.ehcache.EhCacheManagerFactoryBean
>>>>  [java]    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>>>>  [java]    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>>>  [java]    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>>>>  [java]    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>>>  [java]    at 
>>>> org.springframework.util.ClassUtils.forName(ClassUtils.java:268)
>>>>  [java]    at 
>>>> org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:419)
>>>>  [java]    at 
>>>> org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1299)
>>>>  [java]    at 
>>>> org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1270)
>>>>  [java]    ... 31 more
>>>>
>>>> BUILD FAILED
>>>>
>>>> Leander
>>>>> On 2 Mar 2017, at 22:45, Dunlop, Joyce (HP) <joyce.dun...@va.gov> wrote:
>>>>>
>>>>> hibernate
>>>>
>>>>
>>>
>>>
>>
>>
>

Reply via email to