Could not initialize class com.tridion.storage.StorageManagerFactory - classpath

I am implementing DD4T MVC3 with Tridion 2011. I have implemented it and it worked properly till last Friday. I am able to get the page model and present it using Razor view.
But today after the weekend when I tried to run the same application I am getting the below error (starting after two lines).
The Tridion license is going to expire today (30-Apr-2012). Will that be a problem? But the Tridion Content Manager is working properly.
Could not initialize class com.tridion.storage.StorageManagerFactory
================================================
Some configured classpath roots cannot be found
================================================
ClassPath : C:\MyProjects\DD4TMVC\FirstDD4TMVCApplication\FirstDD4TMVCApplication\bin\bin
============================================================
Some Java classes or interfaces could not be found or loaded
The most typical reasons for this problem are:
- you forgot to configure a classpath
- a jarfile, zipfile, or directory is missing from your
classpath
- you have a typo in one of your classpath entries
- a jarfile required by one of your classes is missing from
your classpath
- a jarfile on your classpath is out-of-date and does not
contain some new classes
============================================================
com.tridion.web.asp.ASPAdmin
com.tridion.web.jsp.tag.DynamicComponentLinkHandler
com.tridion.web.jsp.tag.IncrementKeyHandler
com.tridion.webservices.odata.ODataPublicationMappingFilter
com.tridion.web.jsp.tag.ConditionHandler
com.tridion.web.jsp.ResponseWrapper
com.tridion.web.jsp.tag.ConditionsHandler
com.tridion.linking.Linking
com.tridion.storage.StorageManagerFactory
com.tridion.web.jsp.tag.ComponentLinkHandler
com.tridion.web.jsp.tag.ComponentPresentationHandler
com.tridion.web.Admin
com.tridion.webservices.odata.ODataContextListener
com.tridion.web.jsp.JSPProcessor
com.tridion.web.jsp.tag.TargetGroupHandler
com.tridion.linking.ASPLinking
com.tridion.web.jsp.tag.BinaryLinkHandler
com.tridion.ambientdata.web.AmbientDataServletFilter
com.tridion.webservices.security.authentication.OAuth2AccessTokenHandler
com.tridion.web.jsp.JSPXSLTProcessor
com.tridion.web.jsp.tag.PageLinkHandler
com.tridion.web.jsp.tag.TaxonomyHandler
com.tridion.web.jsp.tag.LinkBaseHandler
Please help

I suggest you get a new SDL Tridion Content Delivery license first, and if you still have the problem get back to us. That seems like the a likely culprit.

We resolved the similar issue by replacing license file only.
Thanks,
Vikas Kumar

IF changing the license doesn't help, then check the logs for ClassDefNotFound error or ClassNotFoundException exception. The Core log or Tridion event log are very good candidates to contain these errors.

If it's not the license as mentioned above, make sure that all of settings in the storage configuration file cd_storage_conf.xml are valid. I saw this same error when was missing database information.

Indeed an expired cd_licenses will cause this issue.
What i saw today is this:
ERROR - <JavaException <Type>java/lang/NoClassDefFoundError</Type<Message> <![CDATA[Could not initialize class com.tridion.storage.StorageManagerFactory
================================================
Some configured classpath roots cannot be found
================================================
So Perfect solution is to change cd_licenses file with nice validity.

Related

Drools 6.5: java.lang.RuntimeException: Illegal class for global. Expected [com.user.PersonAccount], found [com.user.PersonAccount]

I'm using the "org.springframework.boot:spring-boot-devtools" dependency in my Grails application for the live reload of the application on code change. The problem is, it seems that this dependency is causing some conflict with drools.
On kieSession.setGlobal(name, value) in my code, I get the following error:
java.lang.RuntimeException: Illegal class for global. Expected [com.user.PersonAccount], found [com.user.PersonAccount]
Removing the "spring-boot-devtools" dependency fixes the issue but I need this dependency for the live reload, it's important in development.
Anyone knows why this dependency is causing this conflict? and what I can do to fix it or as a workaround?
Thanks in advance!
To whoever might have the same issue in future, the issue is already reported and described before: https://issues.redhat.com/browse/DROOLS-1540 and a fix has been included in drools starting from version 7.26.0.Final (https://github.com/kiegroup/drools/commit/85c5308031a84a0ac4086c1df363bb1b4b3c6af9)
If you don't want to upgrade to the latest version of drools, there's still a workaround to fix the issue which is already mentioned on the devtools page of spring-boot (https://docs.spring.io/spring-boot/docs/current/reference/html/using.html#using.devtools.restart.customizing-the-classload).
I added META-INF/spring-devtools.properties with the jars that I want to include in the restart classloader (mainly the drools + kie jars) & the issue is fixed.
When the devtools recompile the class, the byte code no longer matches the byte code from your rules. It's not doing a very good job of warning you, but what it's trying to say is "you are trying to give me a com.user.PersonAccount instance, but it doesn't look like what I know a com.user.PersonAccount instance should look like."
Therefore if you insist on using this tool which will recompile things on the fly, you'll need to also recompile and reload the rules on the fly. Or not use spring-boot-devtools.

mobicents jain slee hello world serivce for beginner

I am trying to build a simple jain slee project by following the steps given here
https://developer.jboss.org/wiki/HelloSLEEWorldServiceJAINSLEETutorial
but when i try to create a service i get an error message error message scr shot
can anyone help me
This question is quite old, but I will answer nevertheless for future visitors' sake.
The issue is with the Eclipslee service creation plugin. Can you install one from here and try to create the service again.
If not find the plugin jar file named;
org.mobicents.eclipslee.servicecreation_2.0.0.v20130704-2333.jar
This is the one I use. But I think the 2.0.0.FINAL should do the job. I can't upload the exact file because I don't remember where I got it from. Probably a forum somewhere or an issue tracker thread. But can't quote the source properly. :(
P.S.(in case you didn't know) Installation == Copying the jar file to the plugins directory in Eclipse.
edit:
This is another workaround. v2.0.0 apparently does not work too.

Error when creating an Eclipse product configuration: org.h2.jdbcx.JdbcDataSource cannot be found by org.eclipse.net4j.db

I have created a CDO server using a Run Configuration which runs org.eclipse.emf.cdo.server.product.tcp_h2 as a product. This works absolutely fine without any errors.
However, I have tried to create a product configuration which is based on this existing product which causes a:
java.lang.ClassNotFoundException: org.h2.jdbcx.JdbcDataSource cannot be found by org.eclipse.net4j.db_4.3.0.v20140114-0640
I haven't made any changes between the run configuration and the product configuration.
Does anyone know the likely cause of the issue and why then product configuration isn't acting in the same way as the existing run configuration?
As Calon had commented, the problem was due to missing plugins. I updated the meta-inf dependencies and it worked fine.

Building MailCore framework for iOS?

Hello I'm trying to build MailCore framework since two days... it's giving too many errors.
first it was giving 'config.h no such file' error. I downloaded another copy of MailCore and this one is giving two errors
1-target specifies product type 'com.apple.product-type.framework', but there's no such product type for the 'iphonesimulator' platform
2-Internal error occurred while creating dependency graph: ASSERTION FAILURE in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-928/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/Target.subproj/PBXTargetBuildContext.m:1966
please help me out.. I'm sick of it.
Thanks in advance.
I solved the issue by implementing the instructions exactly what is told here... http://libmailcore.com/...
no need to build framework... just include the files in your project as told by the link I've mentioned and you are done...
I can only speak to that "config.h" error:
Turns out you have to have MailCore in a folder with no spaces in the directory path.
See: https://github.com/mronge/MailCore/issues/35
I moved the folder to /Users/bill/Documents/dev/lib/MailCore and was able to build the project there. Leaving MailCore at that location, I dragged the MailCore.xcodeproj file into my project (located elsewhere on the hard drive) and was able to compile my project.
Would be nice if someone would add this as a warning to to the directions here

Is there any class similar to ProvidersHelper but not for web?

Is there any class similar to ProvidersHelper but not for web?
I want to instantiate a collection of providers. Actually I'm using CodeSmith & Nettiers, and the db provider is Oracle. It generated a provider section to be added at app.config, and i dont know why it uses System.Web.Configuration classes or why at this section it says SQLClient instead of OracleClient.
The error that I'm getting is:
"An unhandled exception of type 'System.Configuration.ConfigurationErrorsException' occurred in System.Web.dll
Additional information: Could not load file or assembly 'LLPA.Data.OracleClient' or one of its dependencies. The system cannot find the file specified."
Any idea or solution is appreciated.
It is probably a bug if it refers to SQL Server and you are using Oracle. I'd recommend logging a bug on the .netTiers issue tracker. I'd recommend taking a look at all of the LLPA.Data.OracleClient project references are being built and ensure that they are in your bin directory of your compiled application.
Check the DLL LLPA.Data.OracleClient is in the bin folder or the GAC. If that doesn't work look into using Fuslogvw.exe.
I hadn't had added the reference of LLPA.Data.OracleClient to my application, that's why it couldn't find it.