Re: ClassNotFoundException: org.apache.tapestry5.ioc.services.ClassFactory

Dmitry Gusev <[email protected]>
Newsgroups gmane.comp.java.tapestry.user
Message-ID <CA+v6cT8Hj4qqCa8WLBB+W=h6ojametUe_sX4Ab_LXZ2+=MPKQQ@mail.gmail.com>
Then I'd recommend to attach to it with a debugger and look around to check
which class is causing this exception.

I.e. put a breakpoint in constructors of NoClassDefFoundError.

On Mon, Mar 19, 2018 at 5:04 PM, Erich Gormann <[email protected]> wrote:

> Hi Dmitry,
>
> I'm sure that there aro no old libs on classpath...
>
> Regards, Erich
>
>
>
>
> Am 19.03.2018 14:56, schrieb Dmitry Gusev:
>
>> Hi,
>>
>> It can still be loaded if you have Tapestry 5.3 jars on classpath, make
>> sure to remove them.
>>
>> On Mon, Mar 19, 2018 at 4:41 PM, Erich Gormann<[email protected]>
>> wrote:
>>
>> Dear all,
>>>
>>> after migrating our application from tapestry 5.3.8 to Tapestry 5.4.3 I'm
>>> fighting with the exception shown in the stacktrace below.
>>>
>>> I'm aware that the ClassFactory is not present in Tapestry 5.4 anymore,
>>> but we do not use it explicetely. I wonder why our application should try
>>> to load it.
>>>
>>> Can it be loaded reflexive by another API?
>>>
>>> Any hints are welcome! Thanks in advance.
>>>
>>> Greetings, Erich
>>>
>>>
>>> ERROR 13:59:41,916 (ServerService Thread Pool -- 112)
>>> (StandardContext.java:filterStart:3228) -JBWEB000284: Exception starting
>>> filter tapestryFilter: java.lang.NoClassDefFoundError:
>>> org/apache/tapestry5/ioc/services/ClassFactory
>>>
>>>          at java.lang.Class.getDeclaredConstructors0(Native Method)
>>>
>>>          at java.lang.Class.privateGetDeclaredConstructors(Class.java:
>>> 2671)
>>>
>>>          at java.lang.Class.getConstructors(Class.java:1651)
>>>
>>>          at org.apache.tapestry5.ioc.internal.util.InternalUtils.findAut
>>> obuildConstructor(InternalUtils.java:562)
>>>
>>>          at org.apache.tapestry5.ioc.internal.ServiceBinderImpl.createSt
>>> andardConstructorBasedObjectCreatorSource(ServiceBinderImpl.java:146)
>>>
>>>          at org.apache.tapestry5.ioc.internal.ServiceBinderImpl.createOb
>>> jectCreatorSourceFromImplementationClass(ServiceBinderImpl.java:129)
>>>
>>>          at org.apache.tapestry5.ioc.internal.ServiceBinderImpl.flush(Se
>>> rviceBinderImpl.java:96)
>>>
>>>          at org.apache.tapestry5.ioc.internal.ServiceBinderImpl.finish(S
>>> erviceBinderImpl.java:84)
>>>
>>>          at org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.bind(
>>> DefaultModuleDefImpl.java:601)
>>>
>>>          at org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.<init
>>>
>>>> (DefaultModuleDefImpl.java:148)
>>>>
>>>          at org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder
>>> .java:123)
>>>
>>>          at org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder
>>> .java:161)
>>>
>>>          at org.apache.tapestry5.ioc.IOCUtilities.addModulesInList(IOCUt
>>> ilities.java:132)
>>>
>>>          at org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(I
>>> OCUtilities.java:105)
>>>
>>>          at org.apache.tapestry5.ioc.IOCUtilities.addDefaultModules(IOCU
>>> tilities.java:76)
>>>
>>>          at org.apache.tapestry5.internal.TapestryAppInitializer.<init>(
>>> TapestryAppInitializer.java:97)
>>>
>>>          at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java
>>> :95)
>>>
>>> at org.apache.catalina.core.ApplicationFilterConfig.getFilter(A
>>> pplicationFilterConfig.java:416)
>>>
>>>          at org.apache.catalina.core.StandardContext.filterStart(Standar
>>> dContext.java:3225)
>>>
>>>          at org.apache.catalina.core.StandardContext.start(StandardConte
>>> xt.java:3794)
>>>
>>> at org.jboss.as.web.deployment.WebDeploymentService.doStart(Web
>>> DeploymentService.java:163)
>>>
>>>          at org.jboss.as.web.deployment.WebDeploymentService.access$000(
>>> WebDeploymentService.java:61)
>>>
>>>          at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDe
>>> ploymentService.java:96)
>>>
>>>          at java.util.concurrent.Executors$RunnableAdapter.call(Executor
>>> s.java:511)
>>>
>>>          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>>
>>>          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>>> Executor.java:1142)
>>>
>>>          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>>> lExecutor.java:617)
>>>
>>>          at java.lang.Thread.run(Thread.java:745)
>>>
>>>          at org.jboss.threads.JBossThread.run(JBossThread.java:122)
>>>
>>> Caused by: java.lang.ClassNotFoundException:
>>> org.apache.tapestry5.ioc.services.ClassFactory from [Module
>>> "deployment.msp.war:main" from Service Module Loader]
>>>
>>>          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoa
>>> der.java:213)
>>>
>>>          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnch
>>> ecked(ConcurrentClassLoader.java:459)
>>>
>>>          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChec
>>> ked(ConcurrentClassLoader.java:408)
>>>
>>>          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(Con
>>> currentClassLoader.java:389)
>>>
>>>          at org.jboss.modules.ConcurrentClassLoader.loadClass(Concurrent
>>> ClassLoader.java:134)
>>>
>>>          ... 29 more
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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]
>
>


-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.