Tomcat web.xml "display-name" using flex.messaging.MessageBrokerServlet

       Hello,
When my web application starts with the BlazeDS servlet flex.messaging.MessageBrokerServlet defined in the web.xml we have an error because in the display-name defined at top level in web.xml we have some text containing character ':'. The error is traced to inside the function
         flex.management.BaseControl.getObjectName()
Which gets the object name, and this function calls
   BaseControl.getApplicationId()
which finally calls
ServletConfig.getServletContext().getServletContextName()
This will return or display-name from the web.xml with all  it's text. This text contains among other characters the character ':'.  We use this tag for the display in the Tomcat Manager to see version  number and other of deployed project.
After retrieving this name it is appended in the getObjectName() function to a buffer, this StringBuffer that already contains flex.runtime. and  now this name is appended (still with all that we are using for Tomcat  Manager with ':' character and other). After the name, other things are  appended. Our problem is that, after constructing this StringBuffer an instance of javax.management.ObjectName is created. In it's constructor it takes a String name  as input. This String is parsed in base of characters ':', '*', '?',  '\n' and so on, and since we have some of these characters in our  display-name it all goes wrong.
   My question is, if this is a bug, a limitation or if it is documented that using flex.messaging.MessageBrokerServlet we can not use certain characters in the display-name of the web.xml?
   Greetings, Tim
   We are using
Tomcat 5.5.23
Jdk 1.5.0_14
blazeds-src-4.0.1.17657
part of web.xml
     <display-name>
         Version: 1.10.0.3 (01/02/2011), Environment development, AGP:  10.220.6.8:1557/AGPSVI, AGP_STAGE: host 10.220.6.8:1557/AGPSVI
     </display-name>
     <description>IMPRESA progetto con undergroung</description>
     <listener>
         <listener-class>flex.messaging.HttpFlexSession</listener-class>
     </listener>
     <servlet>
         <servlet-name>MessageBrokerServlet</servlet-name>
         <display-name>MessageBrokerServlet</display-name>
         <servlet-class>flex.messaging.MessageBrokerServlet</servlet-class>
         <init-param>
             <param-name>services.configuration.file</param-name>
             <param-value>/WEB-INF/flex/services-config.xml</param-value>
        </init-param>
         <load-on-startup>1</load-on-startup>
     </servlet>

I have found that this is a bug and there is an issue open at the "Adobe Bug and Issue Management System", BLZ-617. I don't know if work is in progress, but when that issue is closed the problem will be solved.
  Greetings, Tim

Similar Messages

  • Web.Xml Mapping For using Filters in Servlets

    Hi Team
    Can any one help me in getting the correct xml mappiing for using filters
    Currently i am getting 404 error when calling any resource
    using the below mapping
    <web-app>
    <display-name>OM</display-name>
    <welcome-file-list>
    <welcome-file>Hello.html</welcome-file>
    </welcome-file-list>
    <filter>
    <filter-name>Basic Filter</filter-name>
    <filter-class>BasicFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>Basic Filter</filter-name>
    <url-pattern>/sample1</url-pattern>
    </filter-mapping>
    <servlet>
    <servlet-name>sample2</servlet-name>
    <servlet-class>com.ustri.xml.FilteredServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>sample2</servlet-name>
    <url-pattern>/sample1</url-pattern>
    </servlet-mapping>
    </web-app>
    Thanks
    santhosh

    As the messages tries to suggest, the elements under <web-app> must appear in a specific order. In particular the <filter> elements, if any, must appear before any <session-config> elements. That isn't the case in what you posted so it fails validation by the DTD.

  • Why does the display name in older messages change if I update my address book for that E-mail address?

    I have recently installed Thunderbird 24.5.0 after upgrading a WinXP machine to Win7. I have discovered a strange problem with older mail that was imported from Outlook Express 6.
    The pastor of my church uses a generic E-mail address <[email protected]>. This address belongs to the position, not to an individual. We recently had a new pastor come to the church, and I updated my entry for this E-mail address to reflect the new person's name. This is fine for new mail sent since the new person arrived, but Thunderbird has also applied the new name to older mail from the previous pastor. This is very confusing, since the current pastor could not have sent mail from that address prior to her start date.
    How can I get Thunderbird to stop changing the Display Name in archival messages that were sent by the previous pastor prior to September 01, 2013? I have not encountered this situation before using Netscape 4.x Mail, Outlook Express 6, and Windows Mail (Vista version).

    Of course it does. It looks for a match between the sender's email address and a Contact in your address book. You've edited the Display Name for this account so it gets applied to any message with that email address if that's how your Address Book is configured.
    In the Contact card for this address, you can tell it whether or not to use the "real" email address within the message, or the Display Name from your Address Book. Telling it to use the name found in the message ''might'' resolve this, but it depends on how the sender has formatted it. If he includes his name then Thunderbird should be able to resolve it, and you just add both configurations to your Address Book as two separate Contacts, rather than modifying the existing entry.
    However, in this situation you're using the same email address for two distinct people, so Thunderbird may not be able to know who sent the old messages. If both have sent using "rector&#64;stpeterscobourg.org" without any personalization then Thunderbird won't be able to differentiate between them.
    I have to say that I haven't recently tried using different display names with the same email address, so I don't know for sure if TB can use the display name constructively. If there's nothing in the old messages to tell you which sender wrote them, then TB can't do anything about it.

  • How to get Context paramters out of Tomcat web.xml file

    The Documentation at Tomcat seems to suggest:
    Context initialization parameters that define shared
    String constants used within your application, which
    can be customized by the system administrator who is
    installing your application. The values actually
    assigned to these parameters can be retrieved in a
    servlet or JSP page by calling:
    String value =
    getServletContext().getInitParameter("name");
    Now I want to write a jsp, where the user enters his username and pwd, and this contacts a jdbc connection bean. I want to store the driver name in the web.xml file. Now can some1 please suggest a method as to how I can extract this (It ain't that straightforward as suggested in tomcat doumntation. You cannnot call the above method ithout Servlet Initialization (actually to say ithout HTTP Connection). I succeeded when I had written a servlet, but can some1 please suggest an alternative (bcoz othrwise just to extract that I am writing a servlet).
    Hope I am clear.
    Thanks in advance.

    Edit your web.xml file and add these entries,
    <context-param>
    <param-name>dbUrl</param-name>
    <param-value>jdbc:oracle:thin:@server5:1521:pl2java</param-value>
    </context-param>
    <context-param>
    <param-name>dbDriver</param-name>
    <param-value>oracle.jdbc.driver.OracleDriver</param-value>
    </context-param>
    Place the above entries in between your already existing <web-app> and </web-app> tags.
    Now in your jsp, you can use, <% application.getInitParameter(); %> and in servlet, getServletContext().getInitParameter();
    Hope this helps.
    Sudha

  • How to change web-app display name within EAR file?

    Currently we are deploying an EAR file (which contains a web-app and an EJB) per
    BEA recommendations. The web-app shows up on the admin console with '/' as the
    name. Is there anyway to change this to the name I want?
    thx,
    Matt

    FYI - here is the entire content of applicaiton.xml in the EAR file we deploy:
    <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application
    1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
    <application>
    <display-name>RVApp</display-name>
    <module>
    <ejb>RVTrackingBean</ejb>
    </module>
    <module>
    <web>
    <web-uri>RVWebApp</web-uri>
    <context-root>/</context-root>
    </web>
    </module>
    </application>
    "Erik Johnson" <[email protected]> wrote:
    >
    No, you can't change that in the console. It's defined in the application's
    application.xml
    descriptor file.
    erik
    "Matt Savino" <[email protected]> wrote:
    Currently we are deploying an EAR file (which contains a web-app and
    an EJB) per
    BEA recommendations. The web-app shows up on the admin console with'/'
    as the
    name. Is there anyway to change this to the name I want?
    thx,
    Matt

  • How can I get Sender Display Name using Get-MessageTrackingLog?

    Hi, could you please help me. We have got a monitoring system at work which monitors some devices, so if something wrong happening with these devices email is sent from MASTER email (Customer Name <[email protected]>) to us. I'm trying to get a list
    of all emails of that monitoring mailbox using PoweShell command
    Get-MessageTrackingLog and export them to CSV file. In the end of the day I need CSV file with 3 columns: TimeStamp, MessageSubject and SenderDisplayName! Yes, I need Sender Display Name cause all emails are sent from one MASTER email
    (Customer Name <[email protected]>) and only difference between them is sender Display Name which is cexactly what I need.   
    This is the code I'm using:
    Get-MessageTrackingLog -EventId Receive | Select Timestamp, MessageSubject, Sender | Export-CSV C:\NagiosAlerts.csv
    –NoTypeInformation
    So how can I get sender Display Name(Customer Name) using Get-MessageTrackingLog insted of Sender email (<[email protected]>)? 

    The DisplayName is not recorded in the Logs only the EmailAddresses are so there Is nothing you can do with Message Tracking to get this the way you want. You need to look at another property may soureIP or include something in the Subject
    of the Email (eg a customerId in the Subject is a much better option) to give you some differentiation. Otherwise you need to access the Email directly from the Mailbox it was sent to and then extract the DisplayName from the message (or use a journaling
    on those emails etc)
    Cheers
    Glen

  • Web.xml problem and using of FrontController Pattern

    I use FrontController pattern and created servlet ControllerServlet.
    I want that when users open my site (for example mysite.com) all requests goes to controller? and even when users enter diretc path to jsp or servlet all requests were sent to ControllerServlet.
    in my As I read in "Java Servlet and JSP CookBook" for this I have to write in web.xml file such code:
    <servlet-mapping>
      <sevlet-name>ControllerServlet</servlet-name>
      <url-pattern>/*</url-pattern>
    </sevlet-mapping>so any requests will be sended to my controller servlet.
    But now I have other problem. How I have to call my jsp pages? When I use RequestDispatcher and forward reques to jsp pahe login.jsp, I have error because this request again redirects to controller.
    PS For calling servlet I have solve of this problem I just have to add to web.xml file security-constraint element for needed servlets.

    You really shouldn't have to map all urls to your ControllerServlet. Set the welcome file in the web.xml to open index.html and in index.html use JavaScript to direct the page to the ControllerServlet. Now as long as you only do RequestDispatcher forwards (no sendRedirects), all hyper links point to the ControllerServlet and all form actions point to the ControllerServlet you are okay. The reason is that the user will nevr see anything else in the browser address other than the ControllerServlet url and should never know the url of any other JSP or Servlet to request them directly.

  • Tomcat - web.xml

    hi guys
    I am running Tomcat 5 on my system. Unfortunatly I hava to make an entry in the web.xml for every test servlet I deploy. Is there a way to call a servlet without an entry in the web.xml?
    greets
    m.

    Hi,
    I have a doubt , do we really need to make an entry for a servlet in all webservers at web.xml
    I was just thinking like, only those servlet which has defined to have some initparam values that are supposed to used within in the servlet should be made as a part of the entry in an web.xml
    for ex: database uri/some servlet information which always changes
    Im i correct..
    Please tell me more abt the same..
    with Regards
    Lokesh T.C

  • Setting the display name in a message

    Hello for the following code:
    String from = "[email protected]";
    Message msg = new MimeMessage(session);
    msg.setFrom(new InternetAddress(from));
    I'd like to set the display name, i.e.
    "A Message From Foo"
    However I did not see a msg.setDisplayName() method... is there any way to do this?
    As a working example, amazon sends an email with a return address of [email protected], but the display name is 'Amazon Payments' which looks a lot nicer for the customer. I'd like to do the same.
    Thanks

    Solution is:
    new InternetAddress(email_address, display_name);

  • Displaying Name using ID

    hi friends
    my problem is i want to display name by using the id.
    The id is being populated by a query in the user parameter.
    In the Main Query I got the select statement as "SELECT CLIENT_ID,CLIENT_NAME FROM CLIENT
    WHERE CLIENT_ID =:PARAM_CLIENT_ID"
    At Runtime the user wants to see the parameters Printed on the report.
    So In layout editor after the layout is printed i Selected the outermost frame and using Down Arrow key i dragged it down.
    Then putting a TEXTBOX above i set the properties-->SOURCE--> "CLIENT_NAME".
    But it gives me the error saying
    "Field F_Name references Column Client_Name at a frequency below its group."
    Can anybody give a SOLUTION how to print client_name at the place mentioned in the layout editor.
    Many Many thanks in Advance.
    null

    Hi Ravi,
    You can create a formula column in the Datamodel in which you return the client_name
    based on the parameter.
    Then in your layoutmodel, in the created field set the source to the Formula column.
    That should do it...

  • Help! web.xml security without using WAR files

    I'm currently using the RDBMSRealm and URL ACL security for my app. I would like to use the web.xml descriptor for security so that I can specify login pages and such. We currently are not using WAR files. I've been having alot of trouble setting this up. Is there a way to use the RDBMS realm along with the web.xml security? It looks like it should work, but I can't seem to get it to function. How do I specify the regular document root as a webapp? I'm currently running WLS 5.1 with SP4. Thanks.

    The RDBMSRealm is just the authentication mechanism underneath WLS versus the
    web.xml of the WebApplication which describes all the access control for that WebApp.
    the later being scoped only to that WebApp.
    you don't need to deploy in a war file, you can expand the archive into an identical
    directory structure and then just point us towards the top level of that structure.
    see: http://www.weblogic.com/docs51/classdocs/webappguide.html
    .paul
    chris wrote:
    I'm currently using the RDBMSRealm and URL ACL security for my app. I would like to use the web.xml descriptor for security so that I can specify login pages and such. We currently are not using WAR files. I've been having alot of trouble setting this up. Is there a way to use the RDBMS realm along with the web.xml security? It looks like it should work, but I can't seem to get it to function. How do I specify the regular document root as a webapp? I'm currently running WLS 5.1 with SP4. Thanks.

  • 9300i stops displaying names in text messages

    I have a 9300i phone and until two days ago it displayed the text sender's name for received messages. Now it displays the number. This is happening with all messages and they are in my address book with the correct number.
    If i select a text message and press 'call sender' it then displays the number and also the name from my contacts.
    I don't remember changing any settings.
    Has anyone experienced this before?
    Is there a setting I can check to turn on name resolution?
    Thanks, Stu.

    no, it was very strange i rebooted the phone twice and that didnt work.
    I was typing a text message and it bombed, and when it came back up again it seems to be working properly now.
    That is, i've had two texts and it shows both names correctly. I'll have to see how it goes.

  • How to get display name using PL/SQL

    Hello i whish to know if any one know how get the url and the display name of a page group, i ask this because i what to make a dinamic menu usgin dinamic pages.
    If any one know please let me know
    Best Regards
    Jose.

    Jose -
    Use the view WWSBR_ALL_CONTENT_AREAS.
    The Content views are documented here: http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1012/wwsbr_api_view.html
    Regards,
    Candace

  • Can we change the web.xml file name???????

    can we change the name web.xml and struts-config.xml file to other name.....if yes, then how..........

    you can change the name of struts-congig.xml file
    and change the strut-config file name in web.xml also.
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
        <servlet>
            <servlet-name>action</servlet-name>
            <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
            <init-param>
                <param-name>config</param-name>
                <param-value>/WEB-INF/struts-config.xml</param-value>
            </init-param>And you also try rename the file web.xml and run the application and check what is happening...

  • Gmail Display Name Using Senders Nickname

    Just had an embarrassing moment.  On my GF phone she has a nickname for me instead of my name in my contact info.
    Now when she sends email this Nickname appears on the To line on all outgoing messages.  Problem is when she emails other folks and cc me, like business folks in this situation, the display name appears as my nickname not my real name. How do one avoid this?
    Also, it looks like any correspondence that I am having with these folks the display name is this nickname.  How does one go about fixing this?

    What happens is she adds your contact by typing your name instead of "smoochieface"? Does she have your real name in her contacts? She can have your real name and also your nickname (it's an additional field). What happens if she turns off Prefer Short Name under Settings>Mail, Contacts, Calendar>Short Names?

Maybe you are looking for