khushhal yadav

Ranch Hand
+ Follow
since Jun 20, 2007
khushhal likes ...
Java Mac Ubuntu
Glasgow, Scotland
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by khushhal yadav

Hi Hrishikesh,

Shailesh is right about the statement he made.

But would like to know one thing, if earlier did you write something like this explicitly in your jsp



Now this is the only thing that is left which can cause the EL expression from being displayed properly..

Regards,
Khushhal

Thanks for correction Bear Bibeault and Christophe Verré

I meant to write that only (prior to version 2.0) but while writing got it wrong.

Regards,
Khushhal
Hi Hrishikesh ,

In addition to the <el-ignored> tag in your DD (web.xml), please also check isELIgnored atrribute of page directive. That has to be false.

One of the following may be the cause for the problem, you are facing:

  • <el-ignored> tag in your web.xml is set to true.
  • isELIgnored attribute for the page directive of your jsp is set to true.
  • Or the version of the JSP you are having is less than 2.1, as prior to version 2.1 EL were not supported for jsp.


  • Regards,
    Khushhal



    Hi All

    I am facing issues while installing one tool on Unix Box, which it seems to be using swing at back end ..

    Launching installer...

    Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

    Stack Trace:
    java.awt.HeadlessException:
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
    at java.awt.Window.<init>(Unknown Source)
    at java.awt.Frame.<init>(Unknown Source)
    at java.awt.Frame.<init>(Unknown Source)
    at javax.swing.JFrame.<init>(Unknown Source)
    at com.zerog.ia.installer.LifeCycleManager.g(DashoA10*..)
    at com.zerog.ia.installer.LifeCycleManager.h(DashoA10*..)
    at com.zerog.ia.installer.LifeCycleManager.a(DashoA10*..)
    at com.zerog.ia.installer.Main.main(DashoA10*..)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.zerog.lax.LAX.launch(DashoA10*..)
    at com.zerog.lax.LAX.main(DashoA10*..)
    This Application has Unexpectedly Quit: Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)
    [bmcao@lctvd139 ~]$


    Any idea what exactly causing this stack flow? I have really got myself crap searching for what causing it. Anyone having idea, please let me know..

    My assumption is

    1. Either some X11 display variable is not set, as mentioned in stack flow.
    If this is the case how to set X11 display variable and what should be its value?

    java.awt.HeadlessException:
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.

    2. Otherwise, it might be looking for some graphics controller like X manager, which is not there, eventually
    resulting in "No X11 DISPLAY variable was set" to be thrown.

    at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
    at java.awt.Window.<init>(Unknown Source)


    Because in the tool’s installation guide it is written that

    You will need a GUI tool to run the adapters installer. Remote
    use X Windows or VNC to complete the installation.

    9 years ago
    Output in console:

    Buildfile: build.xml

    prepare:
    [mkdir] Created dir: H:\workbook\ex04_1\build
    [mkdir] Created dir: H:\workbook\ex04_1\build\classes
    [echo] It starts now

    compile:
    [echo] compilng starts here
    [javac] Compiling 11 source files to H:\workbook\ex04_1\build\classes
    [echo] compilng ends here

    ejbjar:
    [jar] Building jar: H:\workbook\ex04_1\build\titan.jar
    [copy] Copying 1 file to H:\jboss\jboss-4.2.2.GA\jboss-4.2.2.GA\server\defa
    ult\deploy

    run.client_3:
    [java] javax.naming.NameNotFoundException: TravelAgentRemote not bound
    [java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)

    [java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)

    [java] at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
    [java] at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
    sorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
    hodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:597)
    [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.jav
    a:305)
    [java] at sun.rmi.transport.Transport$1.run(Transport.java:159)
    [java] at java.security.AccessController.doPrivileged(Native Method)
    [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
    [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspor
    t.java:535)
    [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCP
    Transport.java:790)
    [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPT
    ransport.java:649)
    [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Thread
    PoolExecutor.java:885)
    [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPool
    Executor.java:907)
    [java] at java.lang.Thread.run(Thread.java:619)
    [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServe
    r(StreamRemoteCall.java:255)
    [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCa
    ll.java:233)
    [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
    [java] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
    [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:66
    7)
    [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:62
    7)
    [java] at javax.naming.InitialContext.lookup(InitialContext.java:392)
    [java] at com.title.clients.Client_3.main(Client_3.java:17)

    BUILD SUCCESSFUL
    Total time: 8 seconds


    My http://localhost:8080/jmx-console/HtmlAdaptor looks like this

    Global JNDI Namespace
    +- TravelAgentRemote (proxy: $Proxy91 implements interface com.title.travelagent.TravelAgentRemote,interface org.jboss.ejb3.JBossProxy)
    +- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair)
    +- jmx (class: org.jnp.interfaces.NamingContext)
    | +- invoker (class: org.jnp.interfaces.NamingContext)
    | | +- RMIAdaptor (proxy: $Proxy47 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt)
    | +- rmi (class: org.jnp.interfaces.NamingContext)
    | | +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef)
    +- HTTPXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
    +- TransactionPersistenceContextRemote (class: java.lang.Object)
    +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
    +- ExtendedPersistenceContextRemoteStatefulProxyFactory (proxy: $Proxy76 implements interface org.jboss.ejb3.ProxyFactory)
    +- UserTransactionSessionFactory (proxy: $Proxy14 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
    +- HTTPConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
    +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
    +- TransactionSynchronizationRegistry (class: com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionSynchronizationRegistryImple)
    +- TransactionPersistenceContextRemoteStatefulProxyFactory (proxy: $Proxy76 implements interface org.jboss.ejb3.ProxyFactory)
    +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
    +- UILXAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
    +- ExtendedPersistenceContextRemote (class: java.lang.Object)
    +- UIL2XAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
    +- persistence.units:jar=titan.jar,unitName=titan (class: org.hibernate.impl.SessionFactoryImpl)
    +- queue (class: org.jnp.interfaces.NamingContext)
    | +- A (class: org.jboss.mq.SpyQueue)
    | +- testQueue (class: org.jboss.mq.SpyQueue)
    | +- ex (class: org.jboss.mq.SpyQueue)
    | +- DLQ (class: org.jboss.mq.SpyQueue)
    | +- D (class: org.jboss.mq.SpyQueue)
    | +- C (class: org.jboss.mq.SpyQueue)
    | +- B (class: org.jboss.mq.SpyQueue)
    +- topic (class: org.jnp.interfaces.NamingContext)
    | +- testDurableTopic (class: org.jboss.mq.SpyTopic)
    | +- testTopic (class: org.jboss.mq.SpyTopic)
    | +- securedTopic (class: org.jboss.mq.SpyTopic)
    +- console (class: org.jnp.interfaces.NamingContext)
    | +- PluginManager (proxy: $Proxy48 implements interface org.jboss.console.manager.PluginManagerMBean)
    +- UIL2ConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
    +- HiLoKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory)
    +- UILConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
    +- QueueConnectionFactory (class: org.jboss.naming.LinkRefPair)
    +- UUIDKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory)



    My Client Class is like this:



    My Bean class is like this:



    My Remote interface is like this:


    My persistence.xml looks like this:


    My jboss.xml is like this:


    And my titan.ear folder structure is like this:

    titan
    |--META-INF
    | |- persistence.xml
    | |- jboss.xml
    |
    |- class files with proper pckg structure



    Rest things are set in class path via an ant file

    Please let me know..
    Christophe

    Please let me know from where should I start?
    I haven't ever worked on an application server.
    I am bit familiar with ORM tool - hibernate and struts.
    But those applications, I run them from command prompt using an ANT file which I have created myself.

    How to proceed for EJB?
    I have started reading Mastering Enterprise Javabeans 3.0.

    Regards,
    Khushhal
    Thank you Christopher.

    Regards,
    Khushhal
    For understanding EJB 3.0, does one need to have prerequisite knowledge of EJB 1.3?

    I am completely new to it. Kindly help.

    Regards,
    Khushhal
    Thank you Peer,

    I was really in need of all that stuff.
    Thanks a lot once again

    Regards,
    Khushhal
    One more thing, is the exam WS-I BP 1.0 conformant or not?

    Regards,
    Khushhal
    Thanks a lot Peer

    How much knowledge of EJB, we are supposed to have?
    And whether that is for EJB2 or EJB3.

    And one more thing I have given a glance to Richard-Monson-Haefel book.
    But don't think, it covers all the topics?

    Where can I get a tutorial for a proper structure of an complete and entire application and its deployment? I know about each ingredients of an application but little confused how they are structured and placed to communicate with each other?

    Regards,
    Khushhal
    Hi,

    Anyone using Tomcat 5.0 for WSDP

    What's the benefit of Sun Java System Application Server PE 8.2 over Tomcat 5.0 for WSDP.

    Please I am just a novice in web services. Help me out.

    Regards,
    Khushhal
    Congrats Dave

    For a wonderful score.

    Regards,
    Khushhal
    11 years ago
    Wish you a Good Luck for your bright and prosperous future

    Regards,
    Khushhal
    11 years ago