Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8689367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:37:47+00:00 2026-06-12T23:37:47+00:00

In my Liferay 6.1.1 installation I have extended (note: not overridden) the UserLocalServiceImpl class

  • 0

In my Liferay 6.1.1 installation I have extended (note: not overridden) the UserLocalServiceImpl class in an Ext plugin to provide a more relaxed screen name validation. However, I have been unable to get Liferay to load the new class instead of the default UserLocalServiceImpl class.

As far as I can tell, the “normal” way to replace service classes is to use a hook plugin. Unfortunately, hook plugins cannot access the implementation classes. I would have to extend UserLocalServiceWrapper instead of UserLocalServiceImpl, which would be very cumbersome for this particular use.

Is there a way to get Liferay to use my modified service class from an Ext plugin? Alternatively, is there a way to allow a hook plugin access to the implementation classes?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T23:37:48+00:00Added an answer on June 12, 2026 at 11:37 pm

    It is possible to change the service class implementation from an Ext plugin using the following procedure:

    • Create a new folder named META-INF under docroot/WEB-INF/ext-impl/src in the Ext folder.

    • Create a new file named ext-spring.xml under docroot/WEB-INF/ext-impl/src/META-INF.

    • Search the Liferay source distribution for the portal-spring.xml file. In Liferay 6.1.1 it can be found at portal-impl/src/META-INF/portal-spring.xml.

    • Copy the content of portal-spring.xml to the ext-spring.xml file that was created earlier.

    • Remove all bean entries from ext-spring.xml, except for those that correspond to classes that will be replaced/extended.

    • For each remaining entry, change the class attribute to point to the replacement class.

    • Re-deploy the Ext plugin and restart the Liferay application server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fresh installation of Liferay on Tomcat and in IE7 it doesn't
I have a Liferay 6.1 CE installation running on Glassfish 3.1.1. I have created
I have a simple question about installation Liferay 6.1 EE into clustered environment in
Hi im begin lern liferay and have one problem. I cant send POST in
I'm developing a liferay portlet. Here is my code in jsp file: <table class=DDGridView>
I am working in Liferay Portal. I have created my custom work flow and
I have error 404 if open http://localhost:8080/tunnel-web/jsonws on default Liferay installtion. Aren't there any
I am using liferay and i have created my own portlet which have just
We have several sites hosted on a Liferay 5.2 instance, consisting of multiple communities,
I have made a simple HTML form in Liferay. When the form is submitted,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.