HELP JSTL problem when mixed with appserv-rt.jar

Hi,
I've started using JSTL tags in my JSP. All was good until i needed to call a remote EJB from a servlet, store the object to a session, and redirect to a JSP page to display the content of the remote object. We'll just to clear things, i am able to do this properly using JSP expressions <%=myVar%>. And i am able to use <c:out value="${myVar}" /> on a project which does not have appserv-rt.jar inside it's lib directory. I'm getting a java.lang.NoSuchMethodError: javax.el.ExpressionFactory.newInstance()Ljavax/el/ExpressionFactory; when i add appserv-rt.jar in my lib. I'm using tomcat6 as my web server and glassfish as my app server. Below is the complete stack trace from tomcat:
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.NoSuchMethodError: javax.el.ExpressionFactory.newInstance()Ljavax/el/ExpressionFactory;
     at org.apache.jasper.compiler.JspUtil.getExpressionFactory(JspUtil.java:1166)
     at org.apache.jasper.compiler.JspUtil.validateExpressions(JspUtil.java:628)
     at org.apache.jasper.compiler.Validator$ValidateVisitor.getJspAttribute(Validator.java:1341)
     at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1117)
     at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:834)
     at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1482)
     at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2257)
     at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2307)
     at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2313)
     at org.apache.jasper.compiler.Node$Root.accept(Node.java:481)
     at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2257)
     at org.apache.jasper.compiler.Validator.validate(Validator.java:1837)
     at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:195)
     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:409)
     at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
     at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
     at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
     at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
     at gogogo.MyServlet.doPost(MyServlet.java:88)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
     at java.lang.Thread.run(Thread.java:619)
This has been driving me nuts for days... any help would be deeply appreciated.
thanks

So the solution is not to have appserv-rt.jar in the lib directory?
Which lib directory are you referring to?
Your WEB-INF/lib or Tomcat's lib?
I presume you are including appserv-rt.jar for the remote EJB stuff?
After a quick google I found [this page|http://www.java2s.com/Code/Jar/glassfish/Downloadappservrtjar.htm] listing all the classes included in this jar.
There are a bunch of Tomcat classes in there - including org.apache.jasper.compiler.
That would be plenty enough to create classpath clashes between your app and Tomcat's classes.
After some googling I found this link
[http://nicl.net/2008/06/tomcat-glassfish-and-ejb-what-a-mess/]
Maybe it will help you sort out your problem? But definitely this appserv-rt.jar seems overkill for the job of just providing EJB support.

Similar Messages

  • Problem when working with package???Please, help me!!!

    I got 3 .java files from one Java tutorial as follow:
    Server.java (in package mygame.server)
    Utilities.java (in package mygame.shared)
    Client.java (in package mygame.client)
    All the above files are placed in "E:\Java Programmes\source"
    After compiling, i got correspponding .class files:
    Server.class (placed in "E:\Java Programmes\class\mygame\server")
    Utilities.class (placed in "E:\Java Programmes\class\mygam\shared")
    Clients.class (placed in "E:\Java Programmes\class\mygame\client")
    But when i run Server.class which contains main method, i got error as follow:
    E:\Java Programmes>java class\mygame\server\Server
    Exception in thread "main" java.lang.NoClassDefFoundError: class\mygame\server\S
    erver (wrong name: mygame/server/Server)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    That was very puzzled for me. I cannot find out what wrong with my files. Please., any boby, help me!!! I always got this problem when working with package and managing files. Thanls a lot.

    java -cp "E:\Java Programmes\class" mygame.server.Server

  • Problem when iterating with JSTL

    hi ,
    i have occured a problem when iterating with JSTL
    althought this error,my application works fine but i would like to know why this error:
    ther is my iteration code:
    <c:forEach items="#{sWIMmoduleStatistiques.listeModules}" var="m">
               <h:panelGroup>
                <br>
                 <div class="connectorChartHeader" onclick="toggleImage('${m.nomChart}');" >
                <span class="headerTitle">${m.nom}</span>
            </div>
                   <br><br>
                   <img src="${m.nomChart}" id="${m.nomChart}" />
               </h:panelGroup> 
           </c:forEach>       
         the error is:
    javax.servlet.jsp.JspTagException: Don't know how to iterate over supplied "items" in <forEach>
         at org.apache.taglibs.standard.tag.common.core.ForEachSupport.toForEachIterator(ForEachSupport.java:274)
         at org.apache.taglibs.standard.tag.common.core.ForEachSupport.supportedTypeForEachIterator(ForEachSupport.java:238)
         at org.apache.taglibs.standard.tag.common.core.ForEachSupport.prepare(ForEachSupport.java:155)
         at javax.servlet.jsp.jstl.core.LoopTagSupport.doStartTag(LoopTagSupport.java:256)
         at org.apache.jsp.pages.modulesStatistiques_jsp._jspx_meth_c_005fforEach_005f0(modulesStatistiques_jsp.java:434)
         at org.apache.jsp.pages.modulesStatistiques_jsp._jspx_meth_h_005fpanelGrid_005f0(modulesStatistiques_jsp.java:399)
         at org.apache.jsp.pages.modulesStatistiques_jsp._jspx_meth_f_005fview_005f0(modulesStatistiques_jsp.java:181)
         at org.apache.jsp.pages.modulesStatistiques_jsp._jspService(modulesStatistiques_jsp.java:109)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
         at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:473)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141)
         at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:196)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at TimeoutFilter.doFilter(TimeoutFilter.java:60)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
         at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
         at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Thread.java:595)

    that line generated an error:
    java.lang.NumberFormatException: For input string: "class"
         java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
         java.lang.Integer.parseInt(Integer.java:447)
         java.lang.Integer.parseInt(Integer.java:497)
         javax.el.ListELResolver.coerce(ListELResolver.java:166)
         javax.el.ListELResolver.getValue(ListELResolver.java:51)
         javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
         com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
         org.apache.el.parser.AstValue.getValue(AstValue.java:118)
         org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
         org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:101)
         javax.faces.component.UIOutput.getValue(UIOutput.java:184)
         com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:201)
         com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:284)
         com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:154)
         javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:861)
         javax.faces.component.UIComponent.encodeAll(UIComponent.java:946)
         javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
         javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
         javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
         javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
         com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:202)
         org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:196)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
         com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         TimeoutFilter.doFilter(TimeoutFilter.java:64)
         org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
         org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
         org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
         org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)

  • Problem when streaming with the CLI flash media encoder 2.5

    I have a problem when streaming with Flash Media Encoder 2.5. When I run the GUI, everything works, but when I use the commandline with the same profile I have created using the GUI, it says it can't connect to the server.
    I have to use this version of the encoder, because the other is not working with the server, and I have to create a program to remotely control the flash media encoder, so I have to use the CLI. What can i do to go over this problem?
    Any help would be really appreciated. Thankyou.

    First of all, thankyou.
    There is no authentication needed. I can't use Flash Live Media Encoder 3 because it is not supported by the people which manages the server i have to connect to.
    In fact, I don't know why they dont support it, but that is the way it is.
    Through the GUI, i connect directly and without problems, without user/pass.
    Thankyou again.

  • My iPhone 5 got problem when connect with lighting cable, this will keep pop up message "this accessory may not be supported"

    My iPhone 5 got problem when connect with lighting cable, this will keep pop up message "this accessory may not be supported", I can't charge or sync at all. I tried plug and unplug many time, still can't detect/charge my iPhone5, but sometime will 'lucky' that can connect to my iTunes and charge battery…
    This message will auto pop up also when I don't have plug anything in my iPhone 5, It is very annoying…
    The lighting cable is original and now i'm using OS 7.0.4 / iTunes is 11.1.3
    What I can do to fix this problem? Thank you.

    I would try using another cable you can likely borrow one to test from somebody
    if it's the same then likely the connector in your iphone have been damaged

  • Nexus 1000V. problem when working with the console VMWare

    I have a problem when working with the console VMWare.
    Sometimes it is impossible to connect any of the hypervisor to the guest OS managed by them.
    I get the message: "Unable connect to the MKS: Host address lookup for server <name of the hypervisor> failed: No such host is known."
    This message always appears in conjunction with the reconfiguration of virtual switch: "Reconfigure vNetwork Distributed Switch .... Initiated by Cisco_Nexus_1000V_ ....."
    Upon completion of the reconfiguration, Communication console, with guest OS is restored, or on its own or after a reboot srv-vc.
    In this time, I do not see any message in Nexus 1000v log.
    What is this?
    Thanks in advance.

    Smells of a DNS issue.  Are you sure your ESX hosts are reachable from your client via DNS hostname?  Try pinging them from a command prompt/terminal.  You may have DNS server issues.
    As a temp fix, edit your [windowspath]/system32/etc/drivers/hosts file and manually add the ESX host name and IP, then re-test.
    Regards,
    Robert

  • I have a problem when i open the ejb-jar.xml

    Hi All,
    I have a problem when i open the ejb-jar.xml.....
    It shows some problem like .....
    when Invoking  Code plug-in problem :Org.eclipse.jface.
    After updating my nwds 3 to 11.
    How can i solve this any body help me.
    regards
    BHI

    Maybe try hosting your image on a free image hosting site.

  • JDO object id problem when working with an appserver

    Hi,
    I'm running into a problem when passing a JDO object id as an argument to a
    bean. My client is finding a JDO object locally, then attempting to
    instantiate a bean which wraps the JDO object. Since the JDO object is not
    Serializable, I'm passing the object id to the bean constructor, so that the
    bean can look up the object again, this time in the appserver, and wrap it,
    without ever serializing the object.
    I'm guessing that the JDOId class for the JDO object is generated on the fly
    in the client, and therefore does not exist in the ClassLoader in the
    appserver. Any ideas how I can fix this?
    Thanks,
    Eric
    Exception in thread "main" java.lang.reflect.UndeclaredThrowableException:
    java.lang.ClassNotFoundException: test.TheTest$JDOId (no security manager:
    RMI class loader disabled)
    at
    sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
    all.java:245)
    at
    sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
    at
    org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unkno
    wn Source)
    at
    org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:25
    8)
    at
    org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
    at $Proxy0.create(Unknown Source)
    at test.TheTestRemote.<init>(Unknown Source)
    at test.TheTest.getRemoteObject(TheTest.java:19)
    at
    com.hcm.tools.util.CollectionHelper.getFirst(CollectionHelper.java:23)
    at
    com.hcm.tools.jdo.JDOFactory.executeSingletonQuery(JDOFactory.java:234)
    at test.Test.print(Test.java:22)
    at test.Test.main(Test.java:11)

    Hi David,
    I'm trying to use JDO to completely replace Entity Beans. Of course, this
    leaves me with an important question: how do you make the JDO object
    available remotely? My answer is to wrap JDO objects with a stateful
    session bean, and pass through method calls made on the bean to the JDO
    object. Both the bean and the JDO object will implement some interface, so
    you can use an object in a client without any knowledge as to whether it is
    a bean or a JDO object. ( Important note: I can get away with this because
    of another cool Solarmetric product, the session bean creator, which
    enhances a simple java object into a session bean )
    Now, once I have some interface implementation, maybe a local persistent
    object, maybe a remote object, I will want to do something with it. There
    are a couple considerations here. First, if I want to edit the object, I
    need to make sure a transaction gets started. I do this by having my
    session beans take care of starting and committing transactions. Since I
    have written my own JDO Factory that takes care of synchronizing PM caches
    across transactions, this has the effect of keeping all my caches in the
    appserver up-to-date as well ( more on that if you're interested ). So, in
    order to call a 'set' method, I need to ensure that the object I have is in
    it's "remote" state, so-to-speak.
    So I created an interface called RemotePersistentObject, which all these
    other interfaces extend. It includes two methods, getRemoteObject (), and
    getObjectId (). The reason for getObjectId (), instead of
    getPersistentObject (), is that often times you don't want your JDO objects
    to be Serializable, especially if you have JDO objects that you want to
    guarantee remain unique ( say, no two Stock objects have the same ticker
    symbol ). Besides, you want the remote object to represent the same
    concept, and as soon as you serialize the persistent object, you have a copy
    of the original JDO object that will no longer do nice things you'd like it
    to do, like get updated when some transaction in a different thread modifies
    a field.
    So, to get around this serialization issue, I just pass the JDO object id to
    the bean, and have the bean lookup and wrap the appropriate JDO object on
    the server. I wrote a couple optional base classes that provide a lot of
    the functionality for this, since it turns out that wrapping a
    non-serializable JDO object is non-trivial. The problem there is that when
    the bean passivates, it serializes the state of the session bean... oops.
    So the base classes take care of keeping a transient reference to the actual
    object, while keeping a non-transient ref to the object id. All attempts to
    use the actual JDO object are filtered through a getObject () method, which,
    if the transient ref has disappeared due to bean passivation, looks up the
    object in a read-only PM again.
    Hmmmm. Lots of stuff here. I'll stop here and answer any questions (
    criticisms ) you may have.
    -Eric
    "David Ezzio" <[email protected]> wrote in message
    news:[email protected]...
    Eric,
    Curious minds want to know: what are you up to here? I found this to
    be a very interesting post, and I would like to know more about the
    architecture you are using and its motivation if you can share it.
    David Ezzio
    Eric Lindauer wrote:
    Hi,
    I'm running into a problem when passing a JDO object id as an argument
    to a
    bean. My client is finding a JDO object locally, then attempting to
    instantiate a bean which wraps the JDO object. Since the JDO object isnot
    Serializable, I'm passing the object id to the bean constructor, so thatthe
    bean can look up the object again, this time in the appserver, and wrapit,
    without ever serializing the object.
    I'm guessing that the JDOId class for the JDO object is generated on thefly
    in the client, and therefore does not exist in the ClassLoader in the
    appserver. Any ideas how I can fix this?
    Thanks,
    Eric
    Exception in thread "main"java.lang.reflect.UndeclaredThrowableException:
    java.lang.ClassNotFoundException: test.TheTest$JDOId (no securitymanager:
    RMI class loader disabled)
    at
    sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
    all.java:245)
    at
    sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
    at
    org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unkno
    wn Source)
    at
    org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:25
    8)
    at
    org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
    at $Proxy0.create(Unknown Source)
    at test.TheTestRemote.<init>(Unknown Source)
    at test.TheTest.getRemoteObject(TheTest.java:19)
    at
    com.hcm.tools.util.CollectionHelper.getFirst(CollectionHelper.java:23)
    at
    com.hcm.tools.jdo.JDOFactory.executeSingletonQuery(JDOFactory.java:234)
    at test.Test.print(Test.java:22)
    at test.Test.main(Test.java:11)

  • Help DSCC agent not communicating with AppServer or Tomcat?!

    Installing Directory Server Enterprise Edition 6.3 From Zip Distribution on system running Solaris10 11/08.
    Cannot get DSCC to work with either AppServer or Tomcat.
    Both AppServer & Tomcat deploy DSEE WAR file and I can look at things that I have manually registered via command line. Cacao agent is running it is just not communicating with AppServer or Tomcat so it cannot commit any actions such as starting and stopping directory instances or creating new directories instances within the web app.
    Is this a bug that occurs only when doing a new install using the Zip Distribution?
    The Error message I get regardless if Appserver or Tomcat is:
    "Could not contact the DSCC agent on <server>. Use the command cacaoadm to check that the DSCC agent is installed and running on port 11169."
    I changed to port 11169 because it had a conflict on default port 11162.
    Output from cacaoadm & dsccsetup commands is follows:
    root@dsee:/ $ /local/dsee6/cacao_2/usr/lib/cacao/bin/cacaoadm status
    default instance is DISABLED at system startup.
    Smf monitoring process:
    8423
    8424
    Uptime: 0 day(s), 0:47
    root@dsee:/ $ /local/dsee6/cacao_2/usr/lib/cacao/bin/cacaoadm list-params
    snmp-adaptor-port=11161
    snmp-adaptor-trap-port=11162
    jmxmp-connector-port=11169
    commandstream-adaptor-port=11163
    rmi-registry-port=11164
    secure-webserver-port=11165
    java-flags=-Xms4M -Xmx128M -Dcom.sun.management.jmxremote -Dfile.encoding=utf-8
    java-home=/local/jre
    jdmk-home=/local/dsee6/private
    nss-lib-home=/local/dsee6/private/lib
    nss-tools-home=/local/dsee6/bin
    retries=4
    enable-instrumentation=false
    network-bind-address=0.0.0.0
    root@dsee:/ $ /local/dscc6/bin/dsccsetup status -v
    ## /local/webconsole/usr/sbin/smreg/smreg is MISSING
    ## /local/webconsole/usr/sbin/smcwebserver/smcwebserver is MISSING
    ## /local/dscc6/dccapp is present
    Sun Java (TM) Web Console is not installed
    ## /local/dsee6/cacao_2/usr/lib/cacao/bin/cacaoadm is present
    ## /local/dsee6/cacao_2/.configured is present
    ## /local/dscc6/lib/jar/nquickmodule.jar is present
    ## Running /local/dsee6/cacao_2/usr/lib/cacao/bin/cacaoadm list-modules -r
    DSCC Agent is registered in Cacao
    ## Running /local/dsee6/cacao_2/usr/lib/cacao/bin/cacaoadm status
    ## Running /local/dsee6/cacao_2/usr/lib/cacao/bin/cacaoadm list-modules
    ## Running /local/dsee6/cacao_2/usr/lib/cacao/bin/cacaoadm get-param network-bind-address
    ## Running /local/dsee6/cacao_2/usr/lib/cacao/bin/cacaoadm get-param jmxmp-connector-port
    Cacao uses a custom port number (11169)
    ## /local/ds6/bin/dsadm is present
    DSCC Registry has been created
    Path of DSCC registry is /local/var/dscc6/dcc/ads
    Port of DSCC registry is 3998
    Any work around or ideas on how to get DSCC working?
    Thanks!

    I started over and installed Glassfish and everything just worked. After the fact I think the real problem was related to the server.policy file. I think this was the problem because using the default appserver 8.2 that comes with Solaris has a different path and I got this same error when tried using tomcat also. When installing glassfish it uses this default path as in the server.policy example as follows so it just worked.
    Add the following lines in the {install-dir}/domains/domain1/config/server.policy file
    // Permissions for Directory Service Control Center
    grant codeBase "file:${com.sun.aas.instanceRoot}/applications/j2ee-modules/DSCC/-"
    permission java.security.AllPermission;
    Hope this helps some as I was really stuck and confused at the time and just started playing with the stuff. Growing pains. Thanks to those that replied.
    Thanks!
    Wences

  • Problem when Working With Combo

    Dear all,
    I am having a problem when i am working with Combobox.At the time of modification of any existing record i am retrieving the value and description of a Combo and doing accordingly.But sometimes it is showing error that Object Reference is not set.
    If i click that combo(one time) then i am not getting any of error.
    Error comming from the line like : strDesac=oCombobox.Selected.Description
    The thing is that this is not selected item ,it it comming automatically.
    How to handle this types of error.
    Waiting for as reply soon.
    Regards
    Sanjay

    But, this is the question! I dont know how to initialize the combobox' first option. Help me, please! I am using the addItem method as follow:
    MakeJCombo ( JComboBox ComboObj) {
    ComboObj.addItem ("option1");
    ComboObj.addItem ("option2");
    ComboObj.addItem ("option3");
    then:
    public void itemStateChange(ItemEvent ie) ...
    Object origem = ie.getSource()...
    if (origem == ComboObj) ...

  • Problem when communicating with postgres

    Hi everyone,
    i have got a problem when i am trying to communicate with postgres.
    i am calling a bean in which i have methods for insertion. for ur convinience i here provide the class.
    package Harish;
    import java.sql.*;
    import java.util.*;
    import java.lang.*;
    public class Exception_IP_List
         Connection con;
         Statement st;
         //Constructor
         public void Exception_IP_List()
         //Getting the Connection with the database
         public Connection getConnection()
              try {
                   Class.forName("org.postgresql.Driver");
                   con = DriverManager.getConnection("jdbc:postgresql://localhost/CF","postgres"," ");
                   System.out.println("Connection Created");
                   st = con.createStatement();
                   System.out.println("Statement Created");
              }catch(Exception e){
                   e.printStackTrace();
              }finally{
                   return con;
         } //end of getting connection with database
         //Inserting the exception IP details into the database
         public int insertExceptionIPList(String ipAddress)
    int insert = 0;
              try {
                   getConnection();
                   String sql = "INSERT INTO exception_ip_list (ip_Address)"
                                            + " VALUES (?)";
                   PreparedStatement pstmt = con.prepareStatement(sql);
                   pstmt.setString(1, ipAddress);
                   insert = pstmt.executeUpdate();
                   System.out.println("Insert " +insert);
                   /*if there is any insertion in this table the table
                        Update will be updated as well
                   if(insert > 0)
                        String sql1 = "update Update set Status='yes' where code='100' ";
                        Statement st1 = con.createStatement();
                        st1.executeUpdate(sql1);
              } catch(Exception e){
                   System.out.println(e);
              }finally{
                   return insert;
         }//end of inserting class
              //Closing Connection to Database
         public void closeConnection()
              try{
                   con.close();
                   System.out.println("Connection closed");
              }catch(Exception e){
                   e.printStackTrace();
         //Main Method for Exception_ip_list Class
         public static void main(String args[])
              Exception_IP_List exiplist = new Exception_IP_List();     
              //exiplist.getConnection();
              //exiplist.insertExceptionIPList("192.168.1.150");
              //System.out.println("data successfully inserteD");
              //exiplist.deleteExceptionIPList("191.11.22.33");
              //System.out.println("Item Deleted");
              //exiplist.getExceptionIPList();
              //exiplist.closeConnection();
    following is the jsp files to access the method insertExceptionIPList
    <%@ page language="java"%>
    <html>
    <head>
    <title>
    </title>
    </head>
    <body>
    <form name="exiplist" method="post" action="test1.jsp">
         <input type="text" name="ip"><br>
         <input type="submit" name="SUBMIT" value="SUBMIT">
    </form>
    </body>
    </html>
    <%@ page language="java" import="java.sql.*, Harish.*" %>
    <jsp:useBean id="exiplist" scope="page" class="Harish.Exception_IP_List" />
    <%=request.getParameter("ip")%><br>
    Inserted: <% int i = exiplist.insertExceptionIPList(request.getParameter("ip")) %>
    i am really confused, what is the mistake i made? .
    please help and its urgent. thanks
    harish.

    Hello Harish,
    I was introduced to databases at university with postgres. I now use SQL Server 7.
    Anyway, what is the problem exactly - which exceptions are being thrown?
    I have to admit, these forums don't present code very well and it makes it more confusing to read.
    What are you inserting into your database - what is the context of your application ?
    I did notice your constructor will be treated like a method. It does not matter in this case as it doesnt do anything, but you can't have void or any return type in your constructor - it has implicit instructions to return an instance of this class when it is called. If it is empty, omit it altogether.
    I understand you getConnection() method.
    I've never used the prepared statement:
    String sql = "INSERT INTO exception_ip_list (ip_Address)" + " VALUES (?)";
    PreparedStatement pstmt = con.prepareStatement(sql);
    pstmt.setString(1, ipAddress);I assume the '?' in the sql string gets replaced with 'ipAddress' parameter variable? Are you sure 1 is the correct number - I know sql counts from 1 but java counts from 0.
    You have created statement st and haven't used it, but later created st1 ?
    For your JSP's, try
    test0.jsp
    <%@ page language="java"%> <!-- this is not needed -->
    <html>
    <head>
    <title>
    </title>
    </head>
    <body>
    <form name="exiplist" method="post" action="test1.jsp">
    <input type="text" name="ip"><br>
    <input type="submit" name="SUBMIT" value="SUBMIT">
    </form>
    </body>
    </html>
    test1.jsp
    <%@ page language="java" import="java.sql.*, Harish.*" %> <!-- this is not needed -->
    <jsp:useBean id="exiplist" scope="page" class="Harish.Exception_IP_List" />
    <html>
    <body>
    <%=request.getParameter("ip")%><br>
    Inserted: <% int i = exiplist.insertExceptionIPList(request.getParameter("ip")); out.print(i); %>
    </body>
    </html>
    Please let me know how this works,
    Darren B

  • Problem when syncing with MobileMe

    I am using iPhone 3G, software 2.1. I use GMail for email (no problems) but my contacts, and only my contacts, sync through MobileMe.
    The problem is that with MobileMe active, my Contact list, "Mail, Contacts and Calendars" settings and several other minor features simply do not work - they open, pause for a few seconds, then crash. The Mail application also hangs and crashes every other time I open it.
    My local Apple Store restored 2.1, after which my Contact list and Email worked perfectly until I re-activated my MobileMe syncing, after which the problems resumed.
    As the problems occurred only after MobileMe syncing is turned on, I assume this is the cause of the problem, but because "Mail, Contacts..." settings crashes every time I open it I cannot disable MobileMe syncing.
    Any suggestions please? All help gratefully received...

    This was resolved by completely removing the MobileMe account from the iPhone, rebooting it and adding the account again.

  • Codepage problem when compiling with fastjavac

    Hi,
    I'm getting the following warnings when compiling with fastjavac:
    fastjavac: warning: Can't find codepage for "Cp1250" encoding.
    fastjavac: warning: Use default ANSI codepage.
    2 warnings
    How could I suppress these warnings?
    Thanks in advance

    I think you are posting it on the wrong Forum. This is for Forte 4GL not Forte for Java.

  • Keymapping problem when working with emacs and openbox

    I have an apple keyboard and I had to do some remapping of the keys to make the mod-4 key the first key to the left of the space bar for when working with Emacs.  The below script worked fine when I was using the dwm window manager, but after switching to openbox I have found that instead of swapping keycodes between the option and command keys, only the command key seems to be working since the initial openbox command-space doesn't work when pressing option-space.
    One odd thing I noticed, was on the new setup when I click run `showkey` and press the option and command keys I get 56 and 125 respectively, but these keys don't work at all when inserting them into the below script instead of the 64 and 133.
    I must admit I created the script below by continually tweaking it until it worked so there could be a much better way of doing it.
    //.xmodmap
    ### capslock => ctrl
    xmodmap -e "clear Lock"
    xmodmap -e "add Control = Caps_Lock"
    ### switch alt and command
    xmodmap -e "keycode 64 = Alt_L"
    xmodmap -e "keycode 133 = Meta_L"
    ### remap of mod 4
    xmodmap -e "clear Mod4"
    xmodmap -e "add Mod4 = Super_L"
    ** Update:  The Alt key is not being swapped with the command key, but is not just a duplicate.  So no M-x can be done by both Alt-x and Command-x
    Last edited by iso (2011-02-19 19:21:01)

    java -cp "E:\Java Programmes\class" mygame.server.Server

  • IPhone 4 restarting problems when syncing with iTunes

    I know been done before, just to clarify some things is that though some answers are correct to a percentage.
    First one needs to try another USB and another PC or Mac for clarifying that its not a problem with the iPhone itself. I found this out when I had this problem and well I tried another USB port and working fine now.
    Disabling USB ports through device manager can get results - however you may be adding additional problems - the problem is associated to the hardware of the computer (mac or pc) and this is either software related with drivers or hardware related and the USB port is stuffed - connecting any device to this port can result in failure of that device. Identifying the USB port is at fault can help you in many ways to overcome other hardware faults on your computer - seriously this isnt just about the iPhone but more to the point saving your computer from damages.
    Due to many viruses and software codes - identifying if the problem is hardware or software based can be tricky, even with aid of programing benchmark programs, the only real way to know if it is hardware and not software is that doing a complete reformat - really this is the quickest and most surest way of clarifiication - you can spend days on end trying to identify where the fault is through programs and stuff and really you may not get anywhere - so reformating the computer and complete reinstall will determine if it is a hardware fault - now if it is hardware fault then it can either be the port itself, the motherboard or the power supply going to that port - so best be sure to back up everything and safegaurd all your hardware componants inside the computer as if it is a motherboard or power supply you really down want all your hardware becomming faulty due to surges or even meltdown.
    Now if the iPhone is going faulty on other USB ports of other computer systems then you really need to contact your supplier if under warrenty or have it repaired - unless you personally know how to repair them. I have read a few threads here and they are archieved so really no one that I know of has covered this answer I am applying now. so if there is a failure to syncing through iPhone turning off and on then really cheack out the computer and iPhone (iPhone on other USB ports and other computers) and protect your data.

    I have similar problem. Played podcasts becomes UNPLAYED after synch with iTune.

Maybe you are looking for

  • Problems processing a large batch of data within a Weblogic 5.1 cluster

    I have about exhausted my sources of information on this, so I ask the           experts:           The project I am involved with is attempting to build a scheduled           process on a 5.1 cluster which will retrieve hundreds to thousands of     

  • Reg: Force View

    Kindly let me know in what situation force view created apart from doesn't have base table

  • How Can I Control (or Understand) Genius Mix Lists?

    I am running iTunes 11. I decided to turn on Genius Mix (Menu--> Store--> Turn On Genius). This was fine. There was some information exchanged, some calculations done, etc. and an hour or so later I had a category under "Genius" of "Genius Mixes". Th

  • Facebook won't load with safari

    why has my safari resently stoped loading facebook only.

  • Java fails to connect  mysql

    HELP!! What have i done wrong here? Ive downloaded a mysql driver and the adress is c:\mm.mysql.jdbc-1.2c iv'e set a classpath in autoexec.bat CLASSPATH=C:\mm.mysql.jdbc-1.2c\;%CLASSPATH% And my connection source is import java.sql.*; import java.sql