JMS and Java EE 5 Tutorial

Hello,
I'm new to JMS and have been following Suns JMS tutorial here....
[http://java.sun.com/javaee/5/docs/tutorial/doc/bncfa.html#bncfc|http://java.sun.com/javaee/5/docs/tutorial/doc/bncfa.html#bncfc]
I followed the example for the Producer / SynchConsumer programs.
I also created my resources using Sun Java Application Server.
The code example uses annotations only (@Resource) and does not use JNDI lookup.
My problem is that the annotations only solution, as described in the tutorial,
    @Resource(mappedName = "jms/ConnectionFactory")
    private static ConnectionFactory connectionFactory;
    @Resource(mappedName = "jms/Queue")
    private static Queue queue;
    @Resource(mappedName = "jms/Topic")
    private static Topic topic;give me a NullPointerException error when this code is run...
connection = connectionFactory.createConnection();I've added JNDI lookup ....
        System.setProperty("java.naming.factory.initial", "com.sun.appserv.naming.S1ASCtxFactory");
     System.setProperty("java.naming.provider.url", "iiop://111.222.333.109:3700");
     InitialContext ic = new InitialContext();
     connectionFactory = (ConnectionFactory)ic.lookup("jms/ConnectionFactory");
     queue = (Queue)ic.lookup("jms/Queue");
     topic = (Topic)ic.lookup("jms/Topic");and it seems to work now....
Anyone come accross this before?
What am I missing from the annotations only solution?
Thanks,
Jon

Hi,
Previously I was trying to run this using Eclipse.
I tried this using NetBeans IDE and the annotations worked fine.
Problem solved.
/Jon

Similar Messages

  • JMSML - XML Based Mark-Up Language for BEA WebLogic JMS and JMX

              JMSML is a Mark-Up language designed and developed to make Java Messaging Service
              (JMS) and Java Management Extensions (JMX) programming easy by hiding all the
              JMS and JMX Java API complexity behind a few, simple, easy to use XML tags.
              Both the White Paper and the binary download are available in dev2dev.beasys.com
              at the link below:
              http://dev2dev.beasys.com/resourcelibrary/whitepapers.jsp?highlight=whitepapers
              Regards
              [email protected]
              

    Hi,
    I finally managed to post a message to ActiveMQ 5.4.2 from WLS 10.3. I created a foreign JMS Server in WLS. I am not sure if you still have this issue, but I was facing this problem and managed to resolve it so posting the reply!
    I placed the activemq-all-5.4.2.jar file in WLS server classpath.
    The settings I used for the Foreign Server are:
    General tab
    JNDI Initial Context Factory: org.apache.activemq.jndi.ActiveMQInitialContextFactory
    JNDI Connection URL: tcp://localhost:61616
    Destinations Tab
    Name: TestQueue
    Local JNDI Name: TestQueue
    Remote JNDI Name: dynamicQueues/TestQueue (I tried with a normal queue, but it didn't work. So used dynamicQueues here. Will try with other queue also)
    Connection Factories Tab
    Name: AMQConnectionFactory (
    Local JNDI Name: AMQConnectionFactory
    Remote JNDI Name: ConnectionFactory (This is default name given by Active MQ, you can change by adding names in jndi.properties file and placing it in config folder of ActiveMQ installation. Please check here: http://activemq.apache.org/jndi-support.html)
    Using this configuration I was able to post message to ActiveMQ queue from Oracle Service Bus. One more issue to be taken care is that if the message type is not "Text" then the message body was coming as blank in ActiveMQ. So set the message type as "Text" explicitly.

  • (NEED TUTORIAL)Please suggest a good and easy to follow tutorial for Java.

    Hello there,
    I wish to learn Java. Can some one please suggest me a good and easy to follow tutorial?
    I already have the Tutorial provided by sun.
    Thankyou,
    Satya.

    Satya,
    Please go to the New to Java Programming Center:
    /http://developer.java.sun.com/developer/onlineTraining/new2java/
    Just cut and past the link above into your browser.
    At the New to Java Center, you'll find lists of beginners materials, articles, tutorials, book recommendations based on your level of experience, a link to subscribe to the new montly email supplement, and more:-)
    A particularly good tutorial is Language Essentials:
    http://developer.java.sun.com/developer/onlineTraining/JavaIntro/
    Enjoy! Dana

  • Chapter 29 is missing from "The Java EE 6 Tutorial, Volume II"

    Chapter 29 is missing from "The Java EE 6 Tutorial, Volume II"
    This is all that is available (on a single page):
    Advanced Concepts in Java EE Security.
    This chapter provides more information on securing applications.
    Advanced Concepts in Java EE Security
    After you have read the introductory chapters in Java EE Security, read this
    chapter to learn more about using annotations
    Anyone know where I can actually find the elusive Chapter 29?
    Also, although Oracle recognizes that the document exists (https://www.sun.com/offers/details/java_ee6_tutorial.xml), you can no longer download it (+The offer you are looking for is no longer available.+).

    Got the solution, need to include /faces before the Login and Error page in the <login-config> entry as follows:
    <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>file</realm-name>
    <form-login-config>
    *<form-login-page>/faces/Login.xhtml</form-login-page>*
    *<form-error-page>/faces/Error.xhtml</form-error-page>*
    </form-login-config>
    </login-config>
    This configuration works fine with all the browsers including Internet Explorer.

  • Java EE 5 Tutorial case study source code is AWOL

    I'm new to Java EE and am using the tutorial to bring myself up to speed. I have downloaded the file that contains all of the source code for the tutorial (by clicking the "Download" link from any page in the tutorial), but have noticed that the file does not contain the code for the case studies (chapters 37 and 38). Does anyone know where I can get my hands on the code for the case studies?
    Thanks!

    Nevermind!
    For some reason, clicking on the link to download the tutorial file while at work resulted in getting a previous version of the file (j2ee-5_0-beta-doc-tutorial.zip) that does not contain the case study code. When I downloaded the file at home, I got a file (javaee-5-doc-tutorial-1.0.zip) that contains the case study code.

  • AJAX producer/consumer and JAVA producer/consumer  in same project

    I've already successfully integrated and customized the code for both an AJAX and JAVA producer/consumer client in JMS (using ActiveMQ as the JMS broker and Tomcat as the webapp container). While both have been working well in separate projects, unfortunately, I'm having a bit of trouble trying to integrate them for the purpose of running an AJAX message listener and JAVA message listener in the same project.
    What I'm trying to do is have JAVA act as the failover for when the AJAX JMS consumer is not listening (i.e. when the browser is closed). When a browser client opens, the (constantly running) JAVA client can ignore the messages... but... when no browser client is initialized, the JAVA client should respond to the messages on behalf of the AJAX client.
    I've tried using a ServletContextListener pattern, which I was hoping would "automagically" launch the JAVA listener via its main method, whenever the Servlet gets initialized (i.e. it would auto-start when Tomcat gets restarted, or, anytime the Servlet gets redeployed) but it seems Tomcat is not thread-safe and this might be causing some problems.
    In any case, I can't seem to get the JAVA client to reliably start running and stay running for the lifetime of my AJAX client (webapp .war), and without including them in the same project and same J2EE container sharing the same ServletContext, I don't know how its possible to ensure they are running and starting and stopping at the same time.
    Is there perhaps a better way to accomplish this?
    Edited by: bcmoney on May 17, 2010 1:25 PM

    I've already successfully integrated and customized the code for both an AJAX and JAVA producer/consumer client in JMS (using ActiveMQ as the JMS broker and Tomcat as the webapp container). While both have been working well in separate projects, unfortunately, I'm having a bit of trouble trying to integrate them for the purpose of running an AJAX message listener and JAVA message listener in the same project.
    What I'm trying to do is have JAVA act as the failover for when the AJAX JMS consumer is not listening (i.e. when the browser is closed). When a browser client opens, the (constantly running) JAVA client can ignore the messages... but... when no browser client is initialized, the JAVA client should respond to the messages on behalf of the AJAX client.
    I've tried using a ServletContextListener pattern, which I was hoping would "automagically" launch the JAVA listener via its main method, whenever the Servlet gets initialized (i.e. it would auto-start when Tomcat gets restarted, or, anytime the Servlet gets redeployed) but it seems Tomcat is not thread-safe and this might be causing some problems.
    In any case, I can't seem to get the JAVA client to reliably start running and stay running for the lifetime of my AJAX client (webapp .war), and without including them in the same project and same J2EE container sharing the same ServletContext, I don't know how its possible to ensure they are running and starting and stopping at the same time.
    Is there perhaps a better way to accomplish this?
    Edited by: bcmoney on May 17, 2010 1:25 PM

  • Java.util.Map and  java.util.HashMap samples

    Hi.
    Please, I need some code samples of java.util.Map and java.util.HashMap interfaces. I have problems to retreive objects in the map.
    Cheers,
    Cata

    Try the tutorial:
    http://java.sun.com/docs/books/tutorial/collections/index.html

  • Java SE5 and Java EE5 difference

    What is the difference between Java SE5 and Java EE5? Also difference btwn SDK and JDK? I am confused about these basic concepts.
    Thanks
    Geet

    Java Platform, Enterprise Edition is a related specification which includes all of the classes in Java SE, plus a number which are more useful to programs which run on servers as opposed to workstations.
    Java EE includes several API specifications, such as JDBC, RMI, e-mail, JMS, web services, XML, etc, and defines how to coordinate them. Java EE also features some specifications unique to Java EE for components. These include Enterprise JavaBeans, servlets, portlets (following the Java Portlet specification), JavaServer Pages and several web service technologies.

  • Named Parameters in Queries - the spec vs the Java EE 5 Tutorial

    Hi,
    I've been studying the topic about the named parameters in JPA and found one inconsistency between the spec and the Java EE 5 Tutorial. Could anyone lend me a helping hand understanding it?
    The Java Persistence API spec (ejb-3_0-fr-spec-persistence.pdf) 3.6.3 "Named Parameters" at page 69 reads:
    The use of named parameters applies to the Java Persistence query language, and is not defined for native queries.
    whereas the Java EE 5 Tutorial in the section Named Parameters in Queries (http://java.sun.com/javaee/5/docs/tutorial/doc/PersistenceIntro3.html#wp81563) of The EntityManager reads:
    Named parameters are case-sensitive, and may be used by both dynamic and static queries.
    I think that the reality is that every JPA provider supports named parameters in dynamic and static queries, but it's not fully supported by the spec (yet not forbidden).
    Jacek
    Jacek Laskowski
    http://www.jaceklaskowski.pl

    Hi Jacek,
    These are not conflicting statements. Named parameters apply to the Java Persistence
    Query language only, not to native queries. There are two ways to specifiy
    Java Persistence Query Language queries : dynamically and statically. You can
    either pre-define the query string using @NamedQuery
    static :
    @NamedQuery(name="findPersonByName",
    query="SELECT OBJECT(p) FROM Person p WHERE p.name LIKE :pName")
    OR, pass the query string in at runtime using EntityManger.createQuery
    dynamic :
    em.createQuery("SELECT OBJECT(p) FROM Person p WHERE p.name LIKE :pName")
    The dynamic approach allows you to construct portions of the query string at runtime.
    My example doesn't do that but the point is that use of the createQuery()
    API is considered the dynamic approach.
    The crux of the Java EE 5 Tutorial statement you referenced is that named parameters apply to
    both the static and dynamic use of Java Persistence Query Language queries.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Pros and Cons of using REST over JMS (and other technologies)

    Hey all,
    I am working on a project where we were using JMS initially to send messages between servers. Our front end servers have a RESTful API and use JEE6, with EJB 3.1 entity beans connected to a mysql database and so forth. The back end servers are more like "agents" so to speak.. we send some work for them to do, they do it. They are deployed in GlassFish 3.1 as well, but initially I was using JMS to listen to messages. I learned that JMS onMessage() is not threaded, so in order to facilitate handling of potentially hundreds of messages at once, I had to implement my own threading framework. Basically I used the Executor class. I could have used MDBs, but they are a lot more heavyweight than I needed, as the code within the onMessage was not using any of the container services.
    We ran into other issues, such as deploying our app in a distributed architecture in the cloud like EC2 was painful at best. Currently the cloud services we found don't support multi-cast so the nice "discover" feature for clustering JMS and other applications wasn't going to work. For some odd reason there seems to be little info on building out a scalable JEE application in the cloud. Even the EC2 techs, and RackSpace and two others had nobody that understood how to do it.
    So in light of this, plus the data we were sending via JMS was a number of different types that had to all be together in a group to be processed.. I started looking at using REST. Java/Jersey (JAX-RS) is so easy to implement and has thus far had wide industry adoption. The fact that our API is already using it on the front end meant I could re-use some of the representations on the back end servers, while a few had to be modified as our public API was not quite needed in full on the back end. Replacing JMS took about a day or so to put the "onmessage" handler into a REST form on the back end servers. Being able to submit an object (via JAXB) from the front servers to the back servers was much nicer to work with than building up a MapMessage object full of Map objects to contain the variety of data elements we needed to send as a group to our back end servers. Since it goes as XML, I am looking at using gzip as well, which should compress it by about 90% or so, making it use much less bandwidth and thus be faster. I don't know how JMS handles large messages. We were using HornetQ server and client.
    So I am curious what anyone thinks.. especially anyone that is knowledgeable with JMS and may understand REST as well. What benefits do we lose out on via JMS. Mind you, we were using a single queue and not broadcasting messages.. we wanted to make sure that one and only one end server got the message and handled it.
    Thanks..look forward to anyone's thoughts on this.

    851827 wrote:
    Thank you for the reply. One of the main reasons to switch to REST was JMS is strongly tied to Java. While I believe it can work with other message brokers that other platforms/languages can also use, we didn't want to spend more time researching all those paths. REST is very simple, works very well and is easy to implement in almost any language and platform. Our architecture is basically a front end rest API consumed by clients, and the back end servers are more like worker threads. We apply a set of rules, validations, and such on the front end, then send the work to be done to the back end. We could do it all in one server tier, but we also want to allow other 3rd parties to implement the "worker" server pieces in their own domains with their own language/platform of choice. Now, with this model, they simply provide a URL to send some REST calls to, and send some REST calls back to our servers.well, this sounds like this would be one of those requirements which might make jms not a good fit. as ejp mentioned, message brokers usually have bindings in multiple languages, so jms does not necessarily restrict you from using other languages/platforms as the worker nodes. using a REST based api certainly makes that more simple, though.
    As for load balancing, I am not entirely sure how glassfish or JBoss does it. Last time I did anything with scaling, it involved load balancers in front of servers that were session/cookie aware for stateful needs, and could round robin or based on some load factor on each server send requests to appropriate servers in a cluster. If you're saying that JBoss and/or GlassFish no longer need that.. then how is it done? I read up on HornetQ where a request sent to one ip/hornetq server could "discover" other servers in a cluster and balance the load by sending requests to other hornetq servers. I assume this is how the JEE containers are now doing it? The problem with that to me is.. you have one server that is loaded with all incoming traffic and then has to resend it on to other servers in the cluster. With enough load, it seems that the glassfish or jboss server become a load balancer and not doing what they were designed to do.. be a JEE container. I don't recall now if load balancing is in the spec or not..I would think it would not be required to be part of a container though, including session replication and such? Is that part of the spec now?you are confusing many different types of scaling. different layers of the jee stack scale in different ways. you usually scale/load balance at the web layer by putting a load balancer in front of your servers. at the ejb layer, however, you don't necessarily need that. in jboss, the client-side stub for invoking remote ejbs in a cluster will actually include the addresses for all the boxes and do some sort of work distribution itself. so, no given ejb server would be receiving all the incoming load. for jms, again, there are various points of work to consider. you have the message broker itself which is scaled/load balanced in whatever fashion it supports (don't know many details on actual message broker impls). but, for the mdbs themselves, each jee server is pretty independent. each jee server in the cluster will start a pool of mdbs and setup a connection to the relevant queue. then, the incoming messages will be distributed to the various servers and mdbs accordingly. again, no single box will be more loaded than any other.
    load balancing/clustering is not part of the jee "spec", but it is one of the many features that a decent jee server will handle for you. the point of jee was to specify patterns for doing work which, if followed, allow the app server to do all the "hard" parts. some of those features are required (transactions, authentication, etc), and some of those features are not (clustering, load-balancing, other robustness features).
    I still would think dedicated load balancers, whether physical hardware or virtual software running in a cloud/VM setup would be a better solution for handling load to different tiers?like i said, that depends on the tier. makes sense in some situations, not others. (for one thing, load-balancers tend to be http based, so they don't work so well for non-http protocols.)

  • JMS and JDBC Adapter in PI7.1

    Hi All,
    Kindly tell me about the blogs for JMS and JDBC adapter.
    Please tell me about the Message Types in JMS adapter.
    Thanks in advance.

    Hi Shwetambari,
    Thanks for the reply.
    We need to mention the Adapter Modules while configuring the communiucation channels in JMS
    e.g. Adapter/ConvertJMSMessageToBinary,Adapter/ConvertBinaryToXMBMessage etc.
    So please tell me whether we need to write the cide for the same in JAVA or it is already there ?If it is there then whre can we get it?Do we need to decompile the archeve ?If so, then how to do it?
    Can you give me the Adaqpter Modules for which the code is already there?
    The JMS adapter (Java Message Service) enables you to connect messaging systems to the Integration Engine or the PCK.
    What are the different types of Messaging Systems?Or what is meant by the Messaging System in JMS?
    What are the different types of Messages used?
    Thanks in advance.
    Edited by: Shweta Kullkarni on Sep 4, 2009 5:22 AM

  • JMS and loadbalanced Radius servers

    I have a problem with sending JMS messages to a queue where they get picked up and implemented upon by executing cisco cmds via ssh, i seem to get varied JMS commnds sent to two different VPNs.
    there are two cisco swithes and two jboss appserevers, each having a radius serever to authenticate the remote ip address and then assign some firewall rules to the cisco kits via the JMS service , which are just cisco cmd via ssh or some type of secure telnet - put problem is that instaed of the same rule-set being applied to both the cisco swithes i get varaition in the firewall rules being sent to the swithes - sometime i get half sent to one swith and rest to the other , what should i be looking at to isolate the problem the logs dont show much , i have radius server logs and server logs and firewall logs - but cant see what the problem is where could someone suggest i look to start figuring out what the problem is - is it something to do with the load balancing , the JMS stuff - if so what should i look at or the ssh type telnet session from Java - is there known unreliabilty type issues with regards to transactions when executing cmd line stuff via a secure telnet session from a java object. Or does any one know of any other firewall manager type utility that can be integrated with a radius server and java application inoder to dynamically set up a firewall congiguration of cisco kit

    The service is via a topic as a destination .....
    the basic idea of the functionality is as follows ...i'm hoping some one can clearly spot what the issue would be such as known issues with excuting IOS cmds via ...CiscoController object which knows how to use SSH-2 protocol to send IOS commands.
    the basic idea of functionality is as follows:-
    The network elements themselves are protected against intrusion by using standard Cisco firewall technologies. A PIX 515e redundant pair is employed to protect each of the Access Points and the Control and Monitoring platform.
    The Dynamic Firewall works in conjunction with the RADIUS server to dynamically apply access list entries to the interface of the VPN routers in the Access Point.
    Address Assignment
    The RADIUS Server is responsible for assigning an IP address to a terminal, once it has requested access to the network. Session notifications, which include the assigned ip address and firewall rules, are communicated via a JMS Topic called �xxxxxSessionTopic� The firewall manager listens for these notifications and uses them to dynamically add access list entries to the vpn router. When a session is closed, i.e. when a terminal detaches from the network, another notification is broadcast as such. This is used to remove the access list entries from the router.
    It is important to ensure that the correct access list entries are added and removed when updating the router. Newer versions of Cisco IOS allow serial numbers to be employed when applying access list entries, thus negating the necessity to remove and re-apply all entries to ensure that they retain the same order. The firewall manager there makes use of the value of the id field for the Address object allocated to the terminal as a basis for generating the unique serial number. This is multiplied by 20 and the rule priority number in the FirewallRule object is added to make the serial number unique, as the ip address is a unique entity on the platform. This makes management of the access list entries relatively simple.
    Connectivity
    In order to ensure access to the VPN routers remains secure, SSH-2 is used by the Dynamic Firewall software to connect to the VPN routers and deliver the necessary IOS commands to insert new rules into the access list. The necessary access details are started in the SAR files that package the code and are located in the JBoss hot deploy directory on the application servers.
    Software Objects
    The Dynamic firewall components are packaged in a file named xxxxFirewallManager.sar. This is a JBoss service archive and is started on deployment of the SAR file to the jboss hot deploy directory, or on start up of the JBoss application server. The archive contains the java objects listed below, which are responsible for the implementation of the Dynamic Firewall, along with necessary configuration files.
    FirewallManagerMBean
    This is a JBoss JMX Service object that is registered onto the JBoss JMX bus. Two of these objects will be configured for each Router firewall that is to be managed by the application server. The object has a number of properties that must be initialised through the jboss-service.xml file that is stored in the SAR file. These properties are listed in the following table. See the example jboss-service.xml file in the configuration section.
    FirewallManager
    Each MBean creates a FirewallManager. The FirewallManager is responsible for receiving session creation and deletion notification messages over the JMS Topic �xxxxxSessionTopic�. It then un-marshals a FirewallRuleSet object containing the rules (up to 20) that must be applied to the access list. A FirewallController is then used to deliver these rules to the router
    FirewallController
    This specialises a CiscoController object which knows how to use SSH-2 protocol to send IOS commands.
    Configuration
    Configuration is located in the root directory of the SAR. One jboss-service.xml file must exist and a separate properties file will exist for each of the router access lists that are managed (normally 2 per router)
    the problem is that even with this sound architecure it seems that the firewall rules are not correctly and equally applied to both the routers.
    it may be a transactional issue where the messages have to be set inside a transaction - but can somebody please shed some light on this issue so that i'm not blindly going down different paths. does any one know of any way to easliy set up a dynamic firewall list and apply that to cisco kit? via a java app

  • Level of Knowledge in ABAP and Java?

    Hi All,
    I am seeking a career in SAP Netweaver Process Integration - XI and would like to know what level of knowledge would i need to have in ABAP and Java. If i should have any what are the area's that would be expected. Please Clarify.
    Your advice will be greatly appreciated.
    Thank You,
    Ajay C Indukuru.

    Hi Ajay
    in addition to chirag's comment
    We use ABAP Proxies in case of we are dealing with the ABAP Based Applications
    We use JAVA Proxies in case of we are dealing with the JAVA based application
    in SAP XI We have  two ways of connectivity
    1) adapter
    2)proxy
    in applications based on WAS 6.20 or above we can directly communicate to XI through Proxies
    while application based on below WAS 6.20 you have to use adaptyer to communicate to XI
    proxies seperate business application logic from the integration logic of integration logic
    proxy generation converts non language specific interface description in WSDL into executable interface
    Java proxy is generated from the WSDL description opf interface and this is generated as a JAR file in IR
    while ABAP proxy is generated by transaction SPROXY
    on Application server based on WSDL description of message interface
    PROXIES have same mode and direction as Interfaces have
    To learn Java you should know only basic concepts of java means you must have basic java programmin skill
    Java proxy can be generated through wizard also this is an inbuild functionality of SAP XI
    to lear java follow this link
    java.sun.com/docs/books/tutorial/
    To learn ABAP you should know beginner level ABAP4GL
    ABAP is very simple language and coding is like that you are writing simple english sentence so you would be feeling comfortable withABAP with a little practice
    GO to T CODE se24 and start developing
    learn ABAP with this link
    http://www.itquestionbank.com/sams-teach-yourself-abap-4-in-21-days.html
    for more advance version you may follow SDN
    in my opinion nothing is so hard to learn
    i hope this may assist you
    if helpful kindly reward points
    Regards
    Sandeep Sharma

  • NullPoint Error shows up in The Java EE 7 Tutorial

    I am reading The Java EE 7 Tutorial from http://docs.oracle.com/javaee/7/tutorial/doc/jsf-facelets005.htm#GIQZR
    After I typed the example code in the chapter 8.5 Composite Components in my IDE and run the example on GlassFish4.0, I got an error.
    java.lang.NullPointerException
      at java.util.concurrent.ConcurrentHashMap.putIfAbsent(ConcurrentHashMap.java:1078)
      at com.sun.faces.util.Cache.get(Cache.java:116)
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.getComponentMetadata(FaceletViewHandlingStrategy.java:237)
      at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:951)
      at javax.faces.application.ApplicationWrapper.createComponent(ApplicationWrapper.java:648)
    Then I check the older version of this tutorial, I found a difference in email.xhtml code. The namespace has been changed from Java EE 7. After I changed the namespace back to JavaEE 6 version, it works.
    Java EE 7
    xmlns:composite="http://xmlns.jcp.org/jsf/composite"
    Java EE 6
    xmlns:composite="http://java.sun.com/jsf/composite"
    Someone on the StackOverflow told me that this may caused by Glassfish has attempted to download a schema corresponding to one of those namespaces, and received a response that it can't handle. I don't know whether is the real root cause. Is there anyone has the same problem?

    The example from 30. august 2013 (tut-install/examples/web/jsf/compositecomponentexample/) is with the old namespace xmlns:composite="http://java.sun.com/jsf/composite"
    But the namespace xmlns:composite="http://xmlns.jcp.org/jsf/composite" is also ok. Works with RI 2.2.4 on Tomcat.

  • Password Sync Issue:JMS Listener: java.lang.ClassCastException

    Hi,
    For AD Password sync implemetation, I have installed Sun IDM 8.0, Sun Message Queue 4.5, Open DS and Active Directory.
    While configuring the IDM JMS Listner Adapter, I am getting the below error during the Test connection:
    Test connection failed for resource(s):
    JMS Listener: java.lang.ClassCastException: javax.naming.Reference cannot be cast to javax.jms.QueueConnectionFactory
    Can someone please help me out to resolve this issue?

    Can you tell us what you put in the JMS listener fields for:
    java.naming.factory.intial and java.naming.factory.url
    These shoudl match the settings used to create the JMX Queue.
    Looks to me like you simply didn't put the right values in there.

Maybe you are looking for

  • How do I remove a few files from a burn folder?

    I cannot believe I have to ask such a simple question; WHY is everyhting so difficult and complicated with Macs?! I have a DVD in the Mac; I put a number of files into the 'burn folder' which appears automatically. It tells me there are too many file

  • RFC destination from XI ABAP engine to 4.5 B system

    I tried to create an RFC destination from XI ABAP engine to 4.5 B system. It does not work and gives an error. <b>Error Details     DETAIL: NiIGetSockName</b> -Naveen.

  • Movie won't play anymore

    I purchased a barbie movie for my daughter, she watched it a few times, and now where we used to press play is a circle with a square in the middle and it won't play. Any suggestions?

  • Bex WAD Documnets

    Hi Experts,    Please tell me where can i find some study material on Bex & WAD. Please do send me if any one is having some documents at [email protected] Thanks Arpit Agarwal

  • OAProcessingPage does not call processFormRequest of assigned controller

    Hi, All When I am calling pageContext.forwardToProcessingPage(page); I see Processing Page with twisting clock and "Refresh Process Status" button and nothing happens Method processFormRequest called when the button is pressed. My code: Invoking proc