Howto deploy a JSF 1.2 application to TomEE 1.7.1? - jsf-1.2

I tried to deploy an application with JSF 1.2 to TomEE 1.7.1 Web Profile and of course got exceptions because of the JSF 2.0-Libs in TomEE ... .
According to the article Is it possible to deploy JSF MyFaces 1.1.5 applications to TomEE I removed the following libs from the TomEE lib dir:
- myfaces-api-2.1.15.jar
- myfaces-impl-2.1.15.jar
When starting the application I get:
SEVERE: Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener
java.lang.NoClassDefFoundError: javax/faces/application/ApplicationWrapper
Is there any way to disable JSF 2.x support per application?

Related

404 error when deploying spring mvc on jboss 7

I am deploying spring mvc project on jboss eap 1.7 open source. Using Java 1.8 version. Post deployment when I hit my application on browser I could see and error as 404 url not found. What needs to be done to resolve this issue.

Symfony 3.4 - Alias a service to an interface, deprecation message

I'm migrating my Symfony application from 2.8 to 3.4 (then to 4.1) and I get this deprecation message in profiler.
Does anyone know how to I fix it?
Autowiring services based on the types they implement is deprecated
since Symfony 3.3 and won't be supported in version 4.0. You should
alias the "Core\Infrastructure\Utils\TokenGenerator" service to
"Core\Application\Utils\TokenGenerator" instead.
In my services.yml I have
Core\Infrastructure\Utils\TokenGenerator:
arguments: ["#logger"]
app.token_generator: '#Core\Infrastructure\Utils\TokenGenerator'
In my code the class Core\Infrastructure\Utils\TokenGenerator implements Core\Application\Utils\TokenGenerator interface

Upgraded Spring MVC portlet throws org.w3c.dom.Document not found exception when deployed in Liferay 7

I'm upgrading Liferay portal from 6.2 to 7. I have upgraded spring MVC portlet so that it can deploy in Liferay 7 server. Resolved some of the exceptions by excluding xercesImpl.jar and xml-apis.jar as mentioned below.
java.util.ServiceConfigurationError: javax.xml.parsers.SAXParserFactory: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not a subtype
When fixed and deployed again, then occurred exception org.w3c.dom.Document not found. It should be recognized from Java JRE's rt.jar but it's not.
Environment:
Windows Laptop
JDK 1.8_181
Liferay 7.0-sp8
HSQL

Launch Delegate Stucks in eclipse while running Spring MVC project

Launch Delegate Stucks in Eclipse while running Spring MVC project and then gets timed out.

jboss 5.1.0 integration with jdk6 and spring2.5.1 compatible?

is jbos5.1.0 compatible with jdk6 and spring2.5.X.
I am also integraion acegi security and not spring security 3.0 as i am using spring 2.5.0?
IS jboss 5.1.0 comaptible with spribng3.0 andjdk6 ?
A few months ago, I've tried JBoss 5 with Spring 2.5.6 and couldn't deploy my application, because of this bug. The comments on the issue, mention the problem only happens with EJB, but my application didn't make use of EJB and it was packed as a war.
According to the JIRA, this was fixed in spring 3.0RC1, but I haven't tried it (for now, I gave up updating to a new version of JBoss).

Resources