Hello i searched for many solutions and tried them, now if got a new error which i do not understand at all. The main problem is that the Portlet does not run and the Console tells us that the portlet started but look for yourself:
INFO: Deploying web application directory opensocial-portlet
INFO [main] (WebApplication.java:757) - [OntopolyApplication] Started Wicket version 1.4.15 in deployment mode
08:21:50,949 WARN [SAXReaderImpl:429] XSD validation is diasabled because org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/opensocial-portlet/WEB-INF/classes/service.properties
08:21:51,075 WARN [SAXReaderImpl:429] XSD validation is diasabled because org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
08:21:54,359 INFO [PortletHotDeployListener:220] Registering portlets for opensocial-portlet
08:21:54,361 WARN [SAXReaderImpl:429] XSD validation is diasabled because org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
08:21:54,372 WARN [SAXReaderImpl:429] XSD validation is diasabled because org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
08:21:54,441 WARN [SAXReaderImpl:429] XSD validation is diasabled because org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
08:21:54,458 WARN [SAXReaderImpl:429] XSD validation is diasabled because org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/opensocial-portlet/WEB-INF/classes/portlet.properties
08:21:54,471 INFO [PortletHotDeployListener:374] 2 portlets for opensocial-portlet are available for use
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/opensocial-portlet/WEB-INF/classes/service.properties
08:21:54,588 INFO [DialectDetector:69] Determining dialect for HSQL Database Engine 1
08:21:54,589 WARN [DialectDetector:84] Liferay is configured to use Hypersonic as its database. Do NOT use Hypersonic in production. Hypersonic is an embedded database useful for development and demo'ing purposes. The database settings can be changed in portal.properties.
08:21:54,589 INFO [DialectDetector:49] Using dialect org.hibernate.dialect.HSQLDialect
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/opensocial-portlet/WEB-INF/classes/service.properties
08.11.2011 08:21:57 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Error listenerStart
08.11.2011 08:21:57 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Context [/opensocial-portlet] startup failed due to previous errors
08:21:57,586 WARN [SAXReaderImpl:429] XSD validation is diasabled because org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
08:21:57,591 WARN [SAXReaderImpl:429] XSD validation is diasabled because org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
08:21:57,610 INFO [ExtHotDeployListener:205] Extension environment for opensocial-portlet will not be undeployed
08:21:57,611 INFO [PortletHotDeployListener:404] Unregistering portlets for opensocial-portlet
08:21:57,614 INFO [PortletHotDeployListener:440] 2 portlets for opensocial-portlet was unregistered
08.11.2011 08:21:57 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SCHWERWIEGEND: The web application [/opensocial-portlet] appears to have started a thread named [com.google.inject.internal.Finalizer] but has failed to stop it. This is very likely to create a memory leak.
08.11.2011 08:21:57 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SCHWERWIEGEND: The web application [/opensocial-portlet] created a ThreadLocal with key of type [null] (value [org.apache.shindig.common.xml.XmlUtil$2#47370e]) and a value of type [org.apache.xerces.jaxp.DocumentBuilderImpl] (value [org.apache.xerces.jaxp.DocumentBuilderImpl#16f7e6e]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
08.11.2011 08:21:57 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SCHWERWIEGEND: The web application [/opensocial-portlet] created a ThreadLocal with key of type [null] (value [com.google.inject.InjectorImpl$1#d573c7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;#1a41a8d]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
08.11.2011 08:21:57 org.apache.catalina.startup.HostConfig deployDirectory
Thank you for your answers.
I know my response is late but I have hit my head on this problem for the last day and finally, I found the source of my problem :
Basically, I had gwt-dev.jar and gwt-user.jar in my tomcat/lib/ext. When starting my server, I had the following warning making my portal not starting up correctly.
12:59:08,117 WARN [SAXReaderImpl:429] XSD validation is diasabled
because org.apache.xerces.parsers.XIncludeAwareParserConfiguration
cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
By removing my jars from the tomcat/lib/ext removed the warning and my portal started propertly.
If you need the jars, deploy them in your portlet.
Related
I'm fully aware that wildfly 25 has dropped legacy security realms.
So I tried to move from wildfly 20.0.1 to wildfly 25.0.1.
According to the quickstart ee-security, I did
/subsystem=elytron/policy=jacc:add(jacc-policy={})
I also I had to remove in my jboss-web.xml the value :
<security-domain>jaspitest</security-domain>
Otherwise I do get :
{
"WFLYCTL0412: Required services that are not installed:" => ["jboss.security.security-domain.jaspitest"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.deployment.unit.\"unite_compte.war\".component.SocieteGestionSIXDAOImpl.CREATE is missing [jboss.security.security-domain.jaspitest]",
I also have my own IdentityStore.
When I try to access the site, the login page appears as expected. When I submit the credentials my IdentityStore is called and the validate(Credential) method returns a valid CredentialValidationResult.
Unfortunately, I do get an Exception :
17:05:14,710 WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle] (default task-3) #{loginView.submit}: java.lang.IllegalStateException: java.io.IOException: java.io.IOException: ELY01177: Authorization failed.: javax.faces.FacesException: #{loginView.submit}: java.lang.IllegalStateException: java.io.IOException: java.io.IOException: ELY01177: Authorization failed.
Caused by: java.io.IOException: ELY01177: Authorization failed.
at org.wildfly.security.jakarta.authentication#1.17.1.Final//org.wildfly.security.auth.jaspi.impl.JaspiAuthenticationContext$1.handleOne(JaspiAuthenticationContext.java:188)
at org.wildfly.security.jakarta.authentication#1.17.1.Final//org.wildfly.security.auth.jaspi.impl.JaspiAuthenticationContext$1.lambda$handle$0(JaspiAuthenticationContext.java:100)
at org.wildfly.security.jakarta.authentication#1.17.1.Final//org.wildfly.security.auth.jaspi.impl.SecurityActions.doPrivileged(SecurityActions.java:39)
at org.wildfly.security.jakarta.authentication#1.17.1.Final//org.wildfly.security.auth.jaspi.impl.JaspiAuthenticationContext$1.handle(JaspiAuthenticationContext.java:99)
What shall I do to make it work ?
As the quickstart says, you have to update the Wildlfy configuration as well. Specifically, you have to run the configure-elytron.cli script of the quickstart
More info: https://github.com/wildfly/quickstart/tree/main/ee-security#configure-the-server
We are using apache ignite for one of our caching solution,It is perfectly working fine.But while stopping the web container lots of error related to removal of ignite Thread Local is displaying the server log.Since we are not creating any ThreadLocal in our application,how can i remove those Thread local when stopping the server. Some of the errors are mentioned below.
SEVERE: The web application [/webapp-name] created a ThreadLocal with key of type [org.apache.ignite.internal.binary.BinaryThreadLocalContext$1] (value [org.apache.ignite.internal.binary.BinaryThreadLocalContext$1#5826d221]) and a value of type [org.apache.ignite.internal.binary.BinaryThreadLocalContext] (value [org.apache.ignite.internal.binary.BinaryThreadLocalContext#47a32716]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Apr 08, 2021 10:39:34 AM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
SEVERE: The web application [/webapp-name] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal#63b81d02]) and a value of type [org.apache.ignite.internal.marshaller.optimized.OptimizedObjectStreamRegistry.StreamHolder] (value [org.apache.ignite.internal.marshaller.optimized.OptimizedObjectStreamRegistry$StreamHolder#58474af2]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Apr 08, 2021 10:39:34 AM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
SEVERE: The web application [/webapp-name] created a ThreadLocal with key of type [java.lang.ThreadLocal.SuppliedThreadLocal] (value [java.lang.ThreadLocal$SuppliedThreadLocal#67782fee]) and a value of type [org.apache.ignite.internal.binary.BinaryContextHolder] (value [org.apache.ignite.internal.binary.BinaryContextHolder#482bfe01]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
I have been developing a web rest service with Spring framework supported by Kundera API for cassandra database. deployed in Wildfly runtime environment in Eclipse IDE.
I have externalised the persistence.xml and other property files in /standalone/configuration folder in Wildfly 10.1 directory.
It was working fine in Eclipse IDE runtime but when I deployed it in Actual server environment (CentOS),it shows error as file not found exception. When I looked it in the code, the error initiated in com.impetus.kundera.configure.MetamodelConfiguration. I have never worked with Wildfly or any application server.
I am using Spring MVC, not spring Boot and cannot use Spring Boot for some internal reasons.
While creating server in Eclipse, I have selected option for controlled by "Filesystem and shell operation" and server lifecycle is externally managed is unchecked.
04:29:39,260 INFO [com.impetus.kundera.configure.PersistenceUnitConfiguration] (ServerService Thread Pool -- 106) Loading Metadata from persistence.xml ...
04:29:39,261 INFO [com.impetus.kundera.configure.PersistenceUnitConfiguration] (ServerService Thread Pool -- 106) Loading Metadata from persistence.xml ...
04:29:39,272 INFO [com.impetus.kundera.configure.PersistenceUnitConfiguration] (ServerService Thread Pool -- 106) Finishing persistence unit metadata configuration ...
04:29:39,278 INFO [com.impetus.kundera.configure.MetamodelConfiguration] (ServerService Thread Pool -- 106) No class to scan for persistence unit _pu. Entities will be loaded from classpath/ context-path
04:29:39,281 WARN [org.springframework.web.context.support.XmlWebApplicationContext] (ServerService Thread Pool -- 106) Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in com.exivos.webclient.config.KunderaConfig: Invocation of init method failed; nested exception is com.impetus.kundera.classreading.ResourceReadingException: java.io.FileNotFoundException: /content/web-client.war/WEB-INF/classes (No such file or directory)
04:29:39,282 ERROR [org.springframework.web.context.ContextLoader] (ServerService Thread Pool -- 106) Context initialization failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in com.exivos.webclient.config.KunderaConfig: Invocation of init method failed; nested exception is com.impetus.kundera.classreading.ResourceReadingException: java.io.FileNotFoundException: /content/web-client.war/WEB-INF/classes (No such file or directory
I am using hybris version 5.5.1, I have done modulegen and done all the configuration in localextention.xml, now when I started the hybris server (. ./hybrisserver.sh) and getting the below error.
ERROR [localhost-startStop-1] [DeploymentMigrationUtil] Error while migrating deployments of extension core
java.lang.IllegalStateException: The queryCacheRegion Cache is not alive (STATUS_SHUTDOWN)
at net.sf.ehcache.Cache$CacheStatus.checkAlive(Cache.java:4075)
at net.sf.ehcache.Cache.checkStatus(Cache.java:2766)
Have a look at the snippet below, this is taken from the stacktrace that you shared.
**Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [my.bookstore.cockpits.setup.CockpitSystemSetup] for bean with name 'yAcceleratorCockpitsSystemSetup' defined in org.springframework.integration.security.config.SecurityIntegrationConfigurationInitializer#4091564b; nested exception is java.lang.ClassNotFoundException: my.bookstore.cockpits.setup.CockpitSystemSetup**
at org.springframework.integration.security.config.SecurityIntegrationConfigurationInitializer.initialize(SecurityIntegrationConfigurationInitializer.java:63)
at org.springframework.integration.config.IntegrationConfigurationBeanFactoryPostProcessor.postProcessBeanFactory(IntegrationConfigurationBeanFactoryPostProcessor.java:48)
... 29 more
Caused by: java.lang.ClassNotFoundException: my.bookstore.cockpits.setup.CockpitSystemSetup
Now, please check for this bean initialization in your spring context, due to java.lang.ClassNotFoundException: my.bookstore.cockpits.setup.CockpitSystemSetup
Look for the bean initialization where the bean injection of this class is declared, and make sure that the qualified name of the class is correct.
Let me know if the issue still persists.
I get these message when I start sonarqube.
INFO web[org.sonar.INFO] Security realm: Crowd
INFO web[c.a.c.s.c.ClientPropertiesImpl] Loading property: 'application.name' : 'sonar'
INFO web[c.a.c.s.c.ClientPropertiesImpl] Failed to find value for property: application.login.url
INFO web[c.a.c.s.c.ClientPropertiesImpl] Loading property: 'session.tokenkey' : 'session.tokenkey'
INFO web[c.a.c.s.c.ClientPropertiesImpl] Loading property:
'session.lastvalidation' : 'session.lastvalidation'
INFO web[c.a.c.s.c.ClientPropertiesImpl] Loading property: 'session.validationinterval' : '1'
INFO web[c.a.c.s.c.ClientPropertiesImpl] Failed to find value for property: cookie.domain
INFO web[o.s.p.c.CrowdRealm] Crowd configuration is valid, connection test successful.
INFO web[org.sonar.INFO] Security realm started
and Sonarqube start, but the users are only sonar and not crowd.
I just suppress and reinstall crowd plugin.
Before that, it was run correctly.
We faced similar trouble while upgrading. If Crowd 1.0 is still compatible please use it.
If you are going to use new crowd plugin remember that the type of user (admin/generic) has to be configured on the crowd server and not sonar.