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

  • Home
  • SEARCH
  • 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 1087361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:55:40+00:00 2026-05-16T22:55:40+00:00

I have a custom EL function defined as follows: <function> … <function-signature> java.lang.String getAsText(com.test.Outerclass.InnerEnum)

  • 0

I have a custom EL function defined as follows:

<function>
...
   <function-signature>
      java.lang.String getAsText(com.test.Outerclass.InnerEnum)
   </function-signature>
...
</function>

Here is what my class looks like:

package com.test;
public final class Outerclass {
   public enum InnerEnum {
      // ommited for clarity
   }
}

When I attempt to view the page I get the following exception:

org.apache.jasper.JasperException: PWC6299: The class com.test.Outerclass.InnerEnum specified in TLD for the function conversion:getAsText cannot be found: com.test.Outerclass.InnerEnum

My servlet container is Jetty (7.1.6.v20100715 distribution). This includes the following jars.

javax.servlet.jsp.jstl_1.2.0.v201004190952.jar
javax.servlet.jsp_2.1.0.v201004190952.jar
org.apache.taglibs.standard.glassfish_1.2.0.v201004190952.jar
javax.el_2.1.0.v201004190952.jar
org.apache.jasper.glassfish_2.1.0.v201007080150.jar

I found a related question here, however, the author accepted an answer which did not give any real indication on how the issue was resolved.

Edit:

For clarification, the class and enumeration are defined in a Google Protocol buffers message and the java code is generated by the protoc compiler. The resulting code cannot be changed.

  • 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-05-16T22:55:40+00:00Added an answer on May 16, 2026 at 10:55 pm

    I worked around the issue for now by using a string as the parameter instead of the enumeration itself. I then convert the string to the enumeration valueOf(String). Not what I really wanted but gets the job done.

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

Sidebar

Related Questions

I have defined a custom type as follows: -- Atom reference number, x coordinate,
I have a model defined as follows: class User extends ActiveRecord\Model { function get_name()
I have extended std::string to fulfil my needs of having to write custom function
I have a custom WPF window defined as: <Window x:Class=MainWindow xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml Title=MainWindow MinHeight=300
I have a custom select menu (multiple) defined as follows: <select name=DanceStyles id=DanceStyles multiple=multiple
I have a custom function defined that extracts part of an address from a
I have created a custom function and I am getting this error. I dont
I have custom validation rule: public function customRule($check) { } Inside this rule I
i have custom cell with 2 buttons(the function of these buttons is just to
I have a webform with a custom calidator function. in the form is a

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.