Instance of an applet running at server

Hello there,
Is there a way to find the instance of and applet that is running at a remote server.
Client is IE browser.
Thanks

NTushar wrote:
By external I mean that anything other than the Applet being worked on.That doesn't really narrow it down.
It can be another Applet, Frame or maybe just a console application. The main concern is not the application.Well, yes it is. For example, a 1963 Dodge Dart cannot access your applet.
But one thing is certain, whatever the application may be it has no relation with the Applet.Like that Dodge Dart. Sorry, it can't be done.
Therefore there has to be some way by which the Application finds about the Applet, and so I thought what could be better than having a reference to the instance of the Applet.
Summing it up, there is an Applet over the internet and a reference to it has to be found.
Clear Enough.So, you're asking if there is some universal way that anything in the universe can see the applet. The answer is no.
If you narrow the field down a bit, you can make it possible. Here are the three main ways that come to mind:
1) other applets running in the same environment can see the applet
2) if the applet acts as a network server of some sort, other applications (not necessarily Java ones) that have access to that host, could see it. This would require signing the applet, and configuring hardware and software firewalls to allow access, which might be a good idea.
3) The applet could be made to access periodically a server, to update status information and look for commands.

Similar Messages

  • Opening a text file in server from an applet running in the client

    Friends,
    I want to open a text file in the server(The server machine uses tomcat 4.1.12 server)from an applet running in the client machine;
    The applet invokes a servlet that opens the text file;this text file is opened in the server machine; but I want it to be opened in the client machine where the applet is running.
    Plese help me to get around this.

    You can open the textfile on the servlet and then send the information to the client (applet) as stirngs. The must then applet convert the stirngs into some object or simply display the information in someway. But then the text file that you are opening must be stored in some relevant tomcat directory e.g. on the server. If you want to open a file on the clients computer, you get into signed applets.

  • Running Multiple Server Instance in Weblogic Server

    Hi
    I am using Weblogic 5.1.0 with SP6. I am trying to run multiple server
    instances
    of Weblogic Server. The one that comes by default is "myServer".
    My question is if i were to create multiple server instances, do i need to
    copy the
    weblogic.properties file in each of folder corresponding to respective
    application
    server instance. I am not using Clusters.
    Also if i need to include some classes or jar files in my application server
    instance
    classpath, how do i do it. cuz in weblogic.properties file i didn't find any
    property
    corresponding to classpath.
    The classpath i need to set is for my creating a JDBC pool for connectivity
    to my
    AS400 DB2 database using the Type 4 (AS400JDBCDriver) Driver. Is there some
    other way to do it.
    Thanks in advance
    Niranjan

    There is an answer on your first question at
    weblogic.support.interest.clustering
    I asked a similar question. Search for a message posted by me on 24/11/00
    Rgds,
    Mike
    "Niranjan Soni" <[email protected]> wrote in message
    news:[email protected]..
    Hi
    I am using Weblogic 5.1.0 with SP6. I am trying to run multiple server
    instances
    of Weblogic Server. The one that comes by default is "myServer".
    My question is if i were to create multiple server instances, do i need to
    copy the
    weblogic.properties file in each of folder corresponding to respective
    application
    server instance. I am not using Clusters.
    Also if i need to include some classes or jar files in my applicationserver
    instance
    classpath, how do i do it. cuz in weblogic.properties file i didn't findany
    property
    corresponding to classpath.
    The classpath i need to set is for my creating a JDBC pool forconnectivity
    to my
    AS400 DB2 database using the Type 4 (AS400JDBCDriver) Driver. Is theresome
    other way to do it.
    Thanks in advance
    Niranjan

  • UnsupportedAudioFileException when applet runs served by servlet

    I have spent the better part of two days sorting through this. I developed an applet, using several examples found here and elsewhere, that will play, pause and stop playing an MP3 file. It is very simple and purposely designed that way. I use Eclipse as my development environment and when I run the applet directly from the IDE it runs fine. When I jar the files, sign the jar and deploy the applet through a servlet I get the following:
    javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input URL
         at javax.sound.sampled.AudioSystem.getAudioInputStream(Unknown Source)
         at org.myorg.applet.MP3JLayerApplet.playMP3(MP3JLayerApplet.java:158)
         at org.myorg.applet.MP3JLayerApplet$PlayerThread.run(MP3JLayerApplet.java:116)
    So I am assuming that there is something in the classpath missing that is causing the heartburn to the applet (running in FF5 in Windows 7). Where do I start unpacking the issue? I have the Java Control Panel Console in trace mode but it doesn't show which classes/jars are being accessed as the applet loads. Is there a way to see each class as it is loaded and where (like the -verbose switch) ?
    The segment of code that is running is as follows:
                   URL url = null;
                   if (classID!=null)
                        try
                             url = new URL(audioURL);          
                             System.out.println(url);     
                        catch (Exception ex)
                             System.err.println(ex);     
              try {
                   AudioInputStream in = AudioSystem.getAudioInputStream(url);
    The audioURL is a string with the following value:
    http://localhost:9080/BSFDocs/lectureFiles/717/lecture.mp3
    If the URL is used directly in the browser, the mp3 is downloaded and would play in Media player with no problems.
    Again, if the applet is run directly in from Eclipse using the Run as --> Java Applet option, it works perfectly. If run from the servlet it fails.
    Suggestions?
    Thanks

    FYI,
    I didn't have to download and install any plug-ins before to have this work. It would work with the Browser's VM but now doesn't seem to.

  • Applet run in applet viewer but produces error in browser

    Dear All,
    Rather new in Java developpement, this topic should be peanuts for most of you.
    I am using Oracle JDevelopper 11.
    I have written a very simple applet which just display a text using the following code:
    *public void paint(Graphics g){ g.drawString("I am talking to you !",40,40); }*
    The html code calls the applet using the following code:
    *<APPLET CODE="project1.Applet1.class" HEIGHT="200" WIDTH="600" ALIGN="bottom">This browser does not support Applets.</APPLET>*
    Running the hmtl file in the applet viewer, result is as expected.
    But running the html file using the server instance gives an error message which translation to English looks like the following:
    Error: click to get more information.
    The no java supported text is not displayed.
    I have set my browser to the lowest security level in order to check for security matter.
    No change.
    Browser is IE 8
    OS is Windows XP.
    Thanks a lot for helping a poor stuck beginner.
    Ben

    Hi Frank,
    Thank you for your help.
    I guess something is wrong with Jdeveloper or there is something I don't understand (most likely ;-)).
    Please correct me if I am wrong.
    The directory structure build by Jdeveloper is the following:
    Application name
    Project name
    classes
    project name <<< my class is stored under this folder
    public_html
    html file calling my applet class
    Calling Project1.Applet1 (as given as default when I create a java html file) in the html file give the following error message:
    open HTTP connection failed:http://127.0.0.1:7101/Application2-Project1-context-root/Project1/Applet1.class
    Calling Applet1 in the html file give the following error message: wrong name for applet Projet/Applet
    It does not refer to an http connection problem.
    Calling Project1/Applet1 gives the following
    HTTP connection failed:http://127.0.0.1:7101/Application2-Project1-context-root/Project1/Applet1.class
    So I am really puzzled.
    And stucked.
    Any hint ?
    Ben
    Edited by: Big Ben on 06-sept.-2010 21:01

  • Output file from an applet to a server

    Hi,
    I am trying to find a way to get my applet to create an output file on the server in the directory of the applet .class file. This seems to be a problem since most classes I have tried seem to write the ouput file to the computer which is running an instance of the applet as opposed to the server which is running the applet code. If anyone knows of a library or class that can create and write to an output file on the server in the directory of the applet .class, please let me know. Thanks.
    -Etai

    Hi,
    Check out this thread.
    http://forum.java.sun.com/thread.jsp?forum=31&thread=186534
    I hope this helped.
    Regards,
    Roopasri Vittal
    Developer Technical Support
    Sun Microsystems
    http://sun.com/developers/support

  • Multiple instances of ECM 11g on one server

    I've read a few posts about installing multiple instances of ECM 11g on one server, but I have a few questions. My current set up is
    A single Windows 2008 Server R2 server
    8 gb RAM
    Weblogic 10.3.5
    1 install of ECM 11g in the base_domain
    Database is Oracle 11.2
    I want to add another instance of ECM to this server, but when I went to run the RCU, I was not allowed to use the same prefix for my tablespaces. Is this expected? I'm fine with using a different prefix, I just was surprised to see that I couldn't use the same prefix on this install since I was using a completely different database.
    Assuming I use a different prefix... do I just add a new domain for this additional ECM instance? Is there anything else I need to know?
    Thank you

    I went to run the RCU, I was not allowed to use the same prefix for my tablespaces. Is this expected?Yes. It will create tables with the same name visible for a different database user (thus, the prefix).
    do I just add a new domain for this additional ECM instance? Is there anything else I need to know?Actually, I think you can even install more instances to the same domain (this is more a question to Weblogic Server admins - I think there's been some posts recently on this topic). What definitely must be unique, is the port number. If you are OK with using different port numbers for your instances, it should be relatively easy. If you need the same port (e.g. 80 because of proxy limits), there are some ways how to redirect - it that case, two domains might be required.

  • Multiple Instances of OEDQ on a single server

    Hi,
    I am running a Linux Machine (Linux 2.6.18-308.1.1.0.1.el5), on which I have the latest version of Oracle 11g release 2 installed.
    I have an instance of oracle Enterprise Data Quality tool running on an apache-tomcat-7 server. Port 8080
    Now I have a requirement of Installing another instance of OEDQ on the same server, but a different APACHE_HOME directory and a different Port Number (8081).
    So the question is, Can we install multiple instances of OEDQ on a single server?
    If so, what are the prerequisites to be maintained.
    I did my bit of tries, but ended up having issues with some java errors.
    I have posted the error message below.
    SEVERE: Context initialization failed
    *org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'casemanager' defined in class path resource [conf/casemanagement.xml]: Cannot resolve reference to bean 'casedao' while setting bean property 'caseDAO';*
    The complete Error Log in the Catalina.out file is pasted below.
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /u100/app/PCEXDB/orpcexmt/oracle/loqate:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
    May 13, 2013 12:50:08 AM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["http-bio-8081"]
    May 13, 2013 12:50:08 AM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["ajp-bio-8010"]
    May 13, 2013 12:50:08 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 792 ms
    May 13, 2013 12:50:08 AM org.apache.catalina.core.StandardService startInternal
    INFO: Starting service Catalina
    May 13, 2013 12:50:08 AM org.apache.catalina.core.StandardEngine startInternal
    INFO: Starting Servlet Engine: Apache Tomcat/7.0.29
    May 13, 2013 12:50:08 AM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive /u100/app/PCEXDB/orpcexmt/oracle/OEDQ2/apache-tomcat-7.0.29/webapps/dndirector.war
    May 13, 2013 12:50:13 AM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://struts.apache.org/tags-tiles is already defined
    May 13, 2013 12:50:13 AM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://struts.apache.org/tags-html is already defined
    May 13, 2013 12:50:13 AM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://struts.apache.org/tags-bean is already defined
    May 13, 2013 12:50:13 AM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://struts.apache.org/tags-logic is already defined
    May 13, 2013 12:50:13 AM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://struts.apache.org/tags-nested is already defined
    May 13, 2013 12:50:13 AM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://struts.apache.org/tags-bean is already defined
    May 13, 2013 12:50:13 AM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://struts.apache.org/tags-html is already defined
    May 13, 2013 12:50:13 AM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://struts.apache.org/tags-logic is already defined
    May 13, 2013 12:50:13 AM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://struts.apache.org/tags-nested is already defined
    May 13, 2013 12:50:13 AM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://struts.apache.org/tags-tiles is already defined
    May 13, 2013 12:50:14 AM org.springframework.web.context.ContextLoader initWebApplicationContext
    INFO: Root WebApplicationContext: initialization started
    May 13, 2013 12:50:14 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh
    INFO: Refreshing com.datanomic.director.startup.WebApplicationContext@2dfe88b8: display name [Root WebApplicationContext]; startup date [Mon May 13 00:50:14 CDT 2013]; root of context hierarchy
    May 13, 2013 12:50:16 AM com.datanomic.director.startup.WebApplicationContext loadBeanDefinitions
    INFO: Spring bean loading complete.
    May 13, 2013 12:50:24 AM org.springframework.web.context.ContextLoader initWebApplicationContext
    SEVERE: Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'casemanager' defined in class path resource [conf/casemanagement.xml]: Cannot resolve reference to bean 'casedao' while setting bean property 'caseDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'casedao' defined in class path resource [conf/casemanagement.xml]: Cannot resolve reference to bean 'casemetadata' while setting bean property 'caseMetadata'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'casemetadata' defined in class path resource [conf/casemanagement.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'flags' threw exception; nested exception is java.lang.NullPointerException
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
    at com.datanomic.director.startup.WebApplicationContext.refresh(WebApplicationContext.java:109)
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'casedao' defined in class path resource [conf/casemanagement.xml]: Cannot resolve reference to bean 'casemetadata' while setting bean property 'caseMetadata'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'casemetadata' defined in class path resource [conf/casemanagement.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'flags' threw exception; nested exception is java.lang.NullPointerException
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
    at com.datanomic.director.startup.WebApplicationContext.refresh(WebApplicationContext.java:109)
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'casemetadata' defined in class path resource [conf/casemanagement.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'flags' threw exception; nested exception is java.lang.NullPointerException
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1279)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
    ... 46 more
    Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'flags' threw exception; nested exception is java.lang.NullPointerException
    at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:104)
    at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1276)
    ... 57 more
    May 13, 2013 12:50:24 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Error listenerStart
    May 13, 2013 12:50:24 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Context [dndirector] startup failed due to previous errors
    May 13, 2013 12:50:25 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
    SEVERE: The web application [dndirector] registered the JDBC driver [oracle.jdbc.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
    May 13, 2013 12:50:25 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
    SEVERE: The web application [dndirector] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
    May 13, 2013 12:50:25 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
    SEVERE: The web application [dndirector] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@623e20db]) and a value of type [java.lang.Class] (value [class oracle.sql.TypeDescriptorFactory]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
    May 13, 2013 12:50:25 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
    SEVERE: The web application [dndirector] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@da1c402]) and a value of type [java.lang.Class] (value [class oracle.sql.AnyDataFactory]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
    May 13, 2013 12:50:25 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory /u100/app/PCEXDB/orpcexmt/oracle/OEDQ2/apache-tomcat-7.0.29/webapps/docs
    May 13, 2013 12:50:25 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory /u100/app/PCEXDB/orpcexmt/oracle/OEDQ2/apache-tomcat-7.0.29/webapps/examples
    May 13, 2013 12:50:25 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory /u100/app/PCEXDB/orpcexmt/oracle/OEDQ2/apache-tomcat-7.0.29/webapps/manager
    May 13, 2013 12:50:25 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory /u100/app/PCEXDB/orpcexmt/oracle/OEDQ2/apache-tomcat-7.0.29/webapps/ROOT
    May 13, 2013 12:50:25 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory /u100/app/PCEXDB/orpcexmt/oracle/OEDQ2/apache-tomcat-7.0.29/webapps/host-manager
    May 13, 2013 12:50:25 AM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-bio-8081"]
    May 13, 2013 12:50:25 AM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["ajp-bio-8010"]
    May 13, 2013 12:50:25 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 16882 ms
    Can someone please tell me what is going wrong here?

    Hi,
    Multiple instances of EDQ on a single server is technically possible provided the installer takes care to avoid port conflicts. It is not the case that there is a single port used by an EDQ server, for example.
    For various reasons, it is not officially supported; attempting to diagnose issues on custom installations on Tomcat is especially difficult and we do not provide documentation on this. In general, the requirement usually comes up for Dev/Test instances (as there is no performance advantage of using multiple instances on a single server), where we would recommend the use of virtualization where this is a requirement.
    Regards,
    Mike

  • Referencing a "locally installed" Java applet from a server-based HTML page

    How does one reference a "locally installed" Java applet from a server-based HTML page (i.e. via the applet, object, or embed tags)? I have seen references in documentation that this is possible, but I have not seen any examples. I have tried a few things, but nothing seems to be working.
    Some background...
    I'm working on a web site that aggregates Internet video. For many users, I would like the site to work "without" requiring Java to be installed (or any prompts, etc.). This version of the site allows users to stream videos directly over the Internet and does not require any sort of access to the local system.
    However, in addition, I have a download manager that can be installed on the local system. Currently, it's a Windows-based "service" that is always running in the background, downloading files, etc. (with plans to later support other OSes).
    My dilemma is trying to communicate between my web site running in the local browser (executing JavaScript code) and the download manager. I call this component the "gateway". I need the gateway to be able to do the following:
    1) Pass user credentials from the web browser UI to the download manager (so it can communicate with my servers).
    2) Check the status of downloaded videos
    3) Launch a local media player (such as Windows Media, QuickTime, etc.) (or perhaps tell the download manager to launch the media player).
    Under Windows XP, I have an ActiveX control that can do these things. It communicates with the download manager via reading/writing to a shared XML configuration file.
    Unfortunately, under Vista and IE7 Protected Mode, ActiveX controls have become very restricted and my gateway no longer works. As such, I am looking at using Java for the gateway (also giving me the additional benefits of supporting additional browsers and OSes).
    From my understanding, I believe I can created a "face-less" Java applet, whose methods can be called from JavaScript. Ideally, I'm thinking I could install the applet onto the local system at the same time the download manager is installed. This would give the applet the security permissions it needs to communicate with the download manager.
    Thanks for any help and suggestions!

    Hi,
    Put the .jar file and the .class file in the path mentioned in one of the aliases in the plsql.conf file like /images or create
    a seperate directory and create an alias like /applets "path" in the plsql.conf file.
    <html>
    <body>
    <applet code=com.chartapplet.chart.BarChartApplet
    codebase=/applets/
    archive=/applets/chart.jar width=300 height=200>
    <param name=background value="white">
    </body>
    </html>
    Hope this helps.
    Thanks,
    Sharmila

  • Applet runs on local PC but not over network

    My applet runs just fine locally within an html container file but when I post it to my website, (both html file and class file in the same folder ) the applet has errors.
    Are there some classes that can't be used in downloaded files. Do I need to change some settings on Internet Explorer?
    Does the class need to be downloaded ahead of time? I thought the class was downloaded and run upon html access?
    Here's hoping for an easy answer. The website applet feature was one of my reasons for wanting to learn JAVA.
    Here's the link that doesn't work. It will provide you with the error message
    http://home.roadrunner.com/~adejaco/BALLBOUNCE4.HTM
    THanks,

    Welcome to the Sun forums.
    adejaco wrote:
    My applet runs just fine locally within an html container file but when I post it to my website, (both html file and class file ...This output suggest the class is not there.
    load: class BallBounce4 not found.
    java.lang.ClassNotFoundException: BallBounce4
    http://home.roadrunner.com/~adejaco/BallBounce4.class
    --->
    Not Found
    The requested URL /~adejaco/BallBounce4.class was not found on this server.
    Apache/2.0.52 (Red Hat) Server at home.roadrunner.com Port 80
    --------------------

  • What's the deal with applets running in IE?

    All
    Can anybody set me straight on what the deal is with IE security and Java applets? I am supporting a few Java applications that run on an Intranet, currently in Netscape 4.x; It's my job to convert to Internet Explorer. There are some things that happen like reading the filesystem of the client which require "entrusted" code. I'd like to make this conversion seamless to the users. That is I don't want them to have to install any plug-in's or walk through any more installations on their client machines. I've done some research and it seems like there may be some deeper issues involved (certificates, RSA, Signed applets, CAB files, etc....) Or is it just a matter of changing some code in the source files?
    Any thoughts?? Please help

    Signing your applet is an option. As far as I know, you'll have to pay for that to be done. Some places that do this charge a couple hundred dollars.
    Another option, since your applets are running on an intranet, would be to add permissions in java.policy in c:\plug_in_dir\java\security or a directory close to that. For instance, if your applets needed access to the client's hard drive AND you're sure that the applet can't delete or mess with files in a malicious way, then at the bottom of the java.policy file, you can add something like this:
    grant codeBase "http://your_intranet_site/your_applet_dir/*" {
    permission java.io.FilePermission "c:/someModifiableFile", "read, write, delete, execute";
    This would give your applets launching from 'your_applet_dir' access to 'someModifiableFile'.
    I suggest the first option if your company will put the doe up for it.

  • App is not running on server

    Hi,
    My lccs application is not running on server even server is supporting ssl.
    php version on server is 5.2.14.
    i tried to print lccs RTCAccount object on server its giving some fatal error.
    i got response like .....
    Array
        [wrapper_data] => Array
                [headers] => Array
                        [0] => HTTP/1.1 302 Moved Temporarily
                        [1] => Server: Apache-Coyote/1.1
                        [2] => X-Powered-By: Servlet 2.4; JBoss-4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)/Tomcat-5.5
                        [3] => Expires: Fri, 15 Oct 2010 15:23:37 GMT
                        [4] => Cache-Control: max-age=30
                        [5] => Set-Cookie: Whitcomb-Ident=vatrai:na2-sdk-9b17de0a-2188-4f2e-89b2-9453f6eb6be2; Domain=collaboration.adobelivecycle.com; Path=/vatrai
                        [6] => Location: https://na2.collaboration.adobelivecycle.com/vatrai?mode=xml&accountonly=true&
                        [7] => Content-Language: en-US
                        [8] => Content-Length: 0
                        [9] => Date: Fri, 15 Oct 2010 15:23:06 GMT
                        [10] => HTTP/1.1 200 OK
                        [11] => Server: Apache-Coyote/1.1
                        [12] => Set-Cookie: JSESSIONID=ZubjKocVM3rJinHDTxkN.22; Path=/
                        [13] => Cache-Control: max-age=0
                        [14] => Content-Type: text/xml;charset=UTF-8
                        [15] => Content-Length: 190
                        [16] => Date: Fri, 15 Oct 2010 15:23:08 GMT
                [readbuf] => Resource id #4
        [wrapper_type] => cURL
        [stream_type] => cURL
        [mode] => r
        [unread_bytes] => 0
        [seekable] =>
        [uri] => https://collaboration.adobelivecycle.com/vatrai?mode=xml&accountonly=true&
        [timed_out] =>
        [blocked] => 1
        [eof] =>
    Array
        [0] =>
    Fatal error:  Uncaught exception 'RTCError' in /home/myapp/public_html/videos/lccs.php:707 Stack trace: #0 /home/myapp/public_html/videos/lccs.php(587): RTC->http_get('https://collabo...', Array) #1 /home/myapp/public_html/videos/lccs.php(254): RTCAccount->do_initialize() #2 /home/myapp/public_html/videos/a.php(16): RTCAccount->__construct('https://collabo...') #3 {main}   thrown in
    /home/myapp/public_html/videos/lccs.php on line
    707

    Sorry.... I am pasting here full code of lccs.php...
    <?php
    ** Adobe LiveCycle Collaboration Service Account Management API
    ** Revision
    **   $Revision: #1 $ - $Date: 2010/07/26 $
    ** Author
    **   Raffaele Sena
    ** Copyright
    **   ADOBE SYSTEMS INCORPORATED
    **     Copyright 2007 Adobe Systems Incorporated
    **     All Rights Reserved.
    **   NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the
    **   terms of the Adobe license agreement accompanying it.  If you have received this file from a
    **   source other than Adobe, then your use, modification, or distribution of it requires the prior
    **   written permission of Adobe.
    * error thrown or generated by RTC API
    class RTCError extends Exception {
    * Constants for common user roles
    interface RTCUserRole {
        const NONE = 0;
        const LOBBY = 5;
        const VIEWER = 10;
        const PUBLISHER = 50;
        const OWNER = 100;
    * Constants for node configuration
    interface NodeConfiguration {
        const STORAGE_SCHEME_SINGLE_ITEM = 0;
        const STORAGE_SCHEME_QUEUE       = 1;
        const STORAGE_SCHEME_MANUAL      = 2;
    * a class that generates RTC authentication tokens
    class RTCAuthenticator {
        private $authURL;
        function __construct($url) {
            $this->authURL = $url;
        // Get an RTC authentication token give login and password.
        function login($user, $password, & $retHeaders) {
            $headers = array (
                "Content-Type" => 'text/xml'
            $data = "<request><username>{$user}</username><password>{$password}</password></request>";
            $resp = RTC::http_post($this->authURL, $data, $headers);
            if (RTC::$DEBUG)
                echo "$resp\n";
            try {
                $result = new SimpleXMLElement($resp);
            } catch (Exception $e) {
                throw new RTCError("bad-response");
            if ($result['status'] == "ok") {
                $auth = $result->authtoken;
                if ($auth['type'] == "COOKIE") {
                    $retHeaders["Cookie"] = (string) $auth;
                    return null;
                } else {
                    $gak = base64_encode($auth);
                    return "gak={$gak}";
            } else
                throw new RTCError($resp);
        // Get a guest authentication token.
        function guestLogin($user) {
            $guk = base64_encode("g:{$user}:");
            return "guk={$guk}";
    * a class that deals with meeting sessions and # external collaboration
    class RTCSession {
        private $instance;
        private $account;
        private $room;
        private $secret;
        function __construct($instance, $account, $room) {
            $this->instance = str_replace("#room#", $room, $instance);
            $this->account = $account;
            $this->room = $room;
         * get an external authentication token
        function getAuthenticationToken($accountSecret, $name, $id, $role) {
            $role = (int) $role;
            if ($role < RTCUserRole::NONE || $role > RTCUserRole::OWNER)
                throw new RTCError("invalid-role");
            $utfname = utf8_encode($name);
            $token = "x:{$utfname}::{$this->account}:{$id}:{$this->room}:{$role}";
            $signature = $this->sign($accountSecret, $token);
            $signed = "{$token}:{$signature}";
            // unencoded
            // $ext = "ext={$signed}";
            // encoded
            $encoded = base64_encode($signed);
            $ext = "exx={$encoded}";
            return $ext;
         * get the userId that the server will generate for this user
        function getUserID($id) {
          return strtoupper("EXT-{$this->account}-{$id}");
        function getSecret($baseURL, $authToken, $authHeaders) {
            $data = RTC::http_get("{$baseURL}app/session?instance={$this->instance}&{$authToken}", $authHeaders);
            if (RTC::$DEBUG)
                echo $data;
            $response = new SimpleXMLElement($data);
            $this->secret = (string) $response-> {
                'session-secret' };
        function invalidate($baseURL, $authToken, $authHeaders) {
            $data = "action=delete&instance={$this->instance}&{$authToken}";
            $res = RTC::http_post("${baseURL}app/session", $data, $authHeaders);
            if (RTC::$DEBUG)
                echo $res;
            $this->instance = null;
            $this->account = null;
            $this->room = null;
            $this->secret = null;
        private function sign($acctSecret, $data) {
            $key = "{$acctSecret}:{$this->secret}";
            // Calculate HMAC-SHA1 according to RFC2104
            // http://www.ietf.org/rfc/rfc2104.txt
            $blocksize = 64;
            $hashfunc = 'sha1';
            if (strlen($key) > $blocksize)
                $key = pack('H*', $hashfunc ($key));
            $key = str_pad($key, $blocksize, chr(0x00));
            $ipad = str_repeat(chr(0x36), $blocksize);
            $opad = str_repeat(chr(0x5c), $blocksize);
            $hmac = pack('H*', $hashfunc (($key ^ $opad) .
            pack('H*', $hashfunc (($key ^ $ipad) . $data))));
            return bin2hex($hmac);
    * A class that contains room or template item information.
    class RTCItem {
        public $name;
        public $desc;
        public $created;
        function __construct($name, $desc, $created) {
            $this->name = $name;
            $this->desc = $desc;
            $this->created = date_create($created);
    * a class that deals with account information and provisioning
    class RTCAccount {
        const ROOM_ITEMS = "meetings";
        const TEMPLATE_ITEMS = "templates";
        public $url;
        private $authToken;
        private $uathHeaders;
        private $authenticator;
        private $baseURL;
        private $contentPath;
        function contentURL() {
            return "{$this->baseURL}app/content{$this->contentPath}";
        function __construct($url) {
            $this->url = $url;
            $this->authToken = null;
            $this->authHeaders = array ();
            $this->authenticator = null;
            $this->baseURL = null;
            $this->contentPath = null;
            $this->roomInstance = null;
            if (RTC::$DEBUG)
                echo RTC::$VERSION . "\n";
            $this->do_initialize();
        // Return the node configuration
        function getNodeConfiguration($room, $coll, $node) {
            $instance = str_replace("#room#", $room, $this->roomInstance);
            $path = "/{$coll}/nodes/{$node}/configuration";
            return RTC::http_get("{$this->baseURL}app/rtc?instance={$instance}&path={$path}&{$this->authToke n}", $this->authHeaders);
        // Return the RTC items given collection and node
        function fetchItems($room, $coll, $node, $items = null) {
            $instance = str_replace("#room#", $room, $this->roomInstance);
            $params = "instance={$instance}&collection=${coll}&node={$node}";
            if ($items != null) {
                if (!is_array($items))
                    $items = array (
                        $items
                while (list ($i, $it) = each($items)) {
                    $params .= "&item={$it}";
            $params .= "&{$this->authToken}";
            return RTC::http_get("{$this->baseURL}app/rtc?{$params}", $this->authHeaders);
        // Publish an item
        function publishItem($room, $collection, $node, $item, $overwrite = false) {
            $headers = array_merge($this->authHeaders, array ( "Content-Type" => 'text/xml' ));
            $instance = str_replace("#room#", $room, $this->roomInstance);
            $params = "instance={$instance}&action=publish&collection={$collection}&node={$node}";
            if ($overwrite) $params .= "&overwrite={$overwrite}";
            $params .= "&{$this->authToken}";
            $data = "<request>" . RTC::array_toXML($item, "item") . "</request>";
            return RTC::http_post("{$this->baseURL}app/rtc?{$params}", $data, $headers);
        // Retract an item
        function retractItem($room, $collection, $node, $itemID) {
            $instance = str_replace("#room#", $room, $this->roomInstance);
            $data = "instance={$instance}&collection={$collection}&node={$node}&item={$itemID}&{$this->authTo ken}";
            return RTC::http_post("{$this->baseURL}app/rtc", $data, $this->authHeaders);
        // Set user role
        function setUserRole($room, $userID, $role, $coll = null, $node = null) {
            $instance = str_replace("#room#", $room, $this->roomInstance);
        $data = "instance={$instance}&action=setrole&user={$userID}&role={$role}";
        if ($coll != null)
            $data .= "&collection={$coll}";
        if ($coll != null)
            $data .= "&node={$node}";
        $data .= "&{$this->authToken}";
            return RTC::http_post("{$this->baseURL}app/rtc", $data, $this->authHeaders);
        // Returns information about the account, if active
        function getAccountInfo() {
            $acctid = explode('/', $this->roomInstance);
            $acctid = $acctid[0];
            $data = RTC::http_get("{$this->baseURL}app/account?account={$acctid}&{$this->authToken}", $this->authHeaders);
            return $data;
        // Returns information about the room/instance, if active
        function getRoomInfo($room) {
            $instance = str_replace("#room#", $room, $this->roomInstance);
            $data = RTC::http_get("{$this->baseURL}app/account?instance={$instance}&{$this->authToken}", $this->authHeaders);
            return $data;
        private function do_initialize() {
            if ($this->contentPath)
                return true;
            $data = RTC::http_get("{$this->url}?mode=xml&accountonly=true&{$this->authToken}", $this->authHeaders);
            if (RTC::$DEBUG)
                echo $data;
            try {
                $xml = new SimpleXMLElement($data);
            } catch (Exception $e) {
                throw new RTCError("bad-response");
            if ($xml->getName() == "meeting-info") {
                $this->baseURL = '' . $xml->baseURL['href'];
                $this->url = rtrim($this->baseURL, '/') . parse_url($this->url, PHP_URL_PATH);
                $this->contentPath = '' . $xml->accountPath['href'];
                if ($xml->room)
                    $this->roomInstance = '' . $xml->room['instance'];
                return true;
            if ($xml->getName() == "result") {
                if ($xml['code'] == "unauthorized") {
                    if ($xml->baseURL) {
                $this->baseURL = '' . $xml->baseURL['href'];
                $this->url = rtrim($this->baseURL, '/') . parse_url($this->url, PHP_URL_PATH);
                    $authURL = '' . $xml->authentication['href'];
                    if (substr($authURL, 0, 1) == '/') {
                        $authURL = $this->baseURL . $authURL;
                    $this->authenticator = new RTCAuthenticator($authURL);
                    return false;
            throw new RTCError($data);
    class RTC {
        public static $DEBUG = false;
        public static $USE_CURL = false;
        public static $VERSION = '$Revision: #1 $ - $Date: 2010/07/26 $';
        function http_get($url, $headers = null) {
            if (RTC::$DEBUG) {
                echo "http_get: {$url}\n";
                if ($headers != null)
                    print_r($headers);
            if (RTC::$USE_CURL) {
                 * use curl library
                $req = curl_init($url);
                //if (RTC::$DEBUG) curl_setopt($req, CURLOPT_VERBOSE, true);
                curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
                curl_setopt($req, CURLOPT_FOLLOWLOCATION, true);
                curl_setopt($req, CURLOPT_SSL_VERIFYPEER, false);
                if ($headers)
                    curl_setopt($req, CURLOPT_HTTPHEADER, $headers);
                $resp = curl_exec($req);
                $error = curl_error($req);
                if ($error == "")
                    $status = curl_getinfo($req, CURLINFO_HTTP_CODE);
                else
                    $status = $error;
                curl_close($req);
                if ($error != "" && $status != 200)
                    throw new RTCError($error);
                else
                    return $resp;
            } else {
                 * use streams
                if ($headers == null)
                    $header = '';
                else {
                    $header = "";
                    foreach ($headers as $name => $value) {
                        if ($header != "")
                            $header .= "\r\n";
                        $header = $header . $name . ": " . $value;
                $opts = array (
                    'http' => array (
                        'method' => 'GET',
                        'header' => $header
                $context = stream_context_create($opts);
                $fp = fopen($url, 'r', false, $context);
                if (!$fp)
                    throw new RTCError("connection-failed");
                $meta = stream_get_meta_data($fp);
                $statusLine = explode(' ', $meta['wrapper_data'][0], 3);
                $resp = stream_get_contents($fp);
                fclose($fp);
               // printf("<pre>%s</pre>", print_r($meta, TRUE));
                //printf("<pre>%s</pre>", print_r($resp, TRUE));
                //printf("<pre>%s</pre>", print_r($statusLine, TRUE));
                if ($statusLine[1] == "200" | $statusLine[1] == "302")
                    return $resp;
                else
                    throw new RTCError($statusLine[1]);
        function http_post($url, $params, $headers = null) {
            if (is_array($params))
                $data = http_build_query($params);
            else
                $data = $params;
            if (RTC::$DEBUG) {
                echo "http_post: {$url} {$data}\n";
                if ($headers != null)
                    print_r($headers);
                if ($root == 'configuration')
                    $result .= '</field>';
                else
                    $result .= '</property>';
            if ($root != null)
                $result .= "</{$root}>";
            return $result;
    if (!isset($_SERVER['QUERY_STRING'])) {
      function usage($progname) {
        echo "usage: {$progname} [--debug] [--host=url] account user password command parameters...\n";
        echo "\n";
        echo "where <command> is:\n";
        echo "    --list\n";
        echo "    --create room [template]\n";
        echo "    --delete room\n";
        echo "    --delete-template template\n";
        echo "    --ext-auth secret room username userid role\n";
        echo "    --invalidate room\n";
        echo "\n";
        echo "    --get-node-configuration room collection node\n";
        echo "    --fetch-items room collection node\n";
        echo "    --register-hook endpoint [token]\n";
        echo "    --unregister-hook\n";
        echo "    --hook-info\n";
        echo "    --subscribe-collection room collection\n";
        echo "    --unsubscribe-collection room collection\n";
        echo "    --create-node room collection [node]\n";
        echo "    --remove-node room collection [node]\n";
        echo "    --set-user-role room userID role [collection [node]]\n";
        echo "    --publish-item room collection node itemID body\n";
        echo "    --retract-item room collection node itemID\n";
        exit(1);
      function getRole($role) {
        $role = strtolower($role);
        if ($role == "none")
          return RTCUserRole::NONE;
        else if ($role == "lobby")
          return RTCUserRole::LOBBY;
        else if ($role == "viewer")
          return RTCUserRole::VIEWER;
        else if ($role == "publisher")
          return RTCUserRole::PUBLISHER;
        else if ($role == "owner")
          return RTCUserRole::OWNER;
        else if (is_numeric($role))
          return intval($role);
        else
          throw new RTCError("invalid-role");
      // running from the command line
      $args = $_SERVER['argv'];
      $progname = array_shift($args);
      $host = "http://connectnow.acrobat.com";
      $accountName = "<YOUR DEVELOPER ACCOUNT NAME>";
      $username = "sdkuser";
      $password = "sdkpassword";
      while (count($args) > 0) {
        $arg = $args[0];
        if ($arg == "--debug")
          RTC::$DEBUG = true;
        else if (strncmp($arg, "--host=", 7) == 0)
          $host = substr($arg, 7);
        else if (strncmp($arg, "-", 1) == 0) {
          echo "invalid option: $arg\n";
          $args = array();
        else
          break;
        array_shift($args);
      if (count($args) < 3) {
        usage($progname);
      $accountName = array_shift($args);
      $username = array_shift($args);
      $password = array_shift($args);
      $host = rtrim($host, '/');
      $accountURL = "{$host}/${accountName}";
      try {
        $am = new RTCAccount($accountURL);
        $am->login($username, $password);
        if (count($args) == 0 || $args[0] == "--list") {
          echo "==== template list for {$accountName} ====\n";
          foreach ($am->listTemplates() as $t) {
            echo "{$t->name}:{$t->created->format(DATE_RFC822)}\n";
          echo "==== room list for {$accountName} ====\n";
          foreach ($am->listRooms() as $r) {
            echo "{$r->name}:{$r->desc}:{$r->created->format(DATE_RFC822)}\n";
        else if ($args[0] == "--create") {
          $am->createRoom($args[1], count($args) > 2 ? $args[2] : null);
        else if ($args[0] == "--delete") {
          $am->deleteRoom($args[1]);
        else if ($args[0] == "--delete-template") {
          $am->deleteTemplate($args[1]);
        else if ($args[0] == "--ext-auth") {
          if (count($args) >= 6)
            $role = getRole($args[5]);
          else
            $role = RTCUserRole::LOBBY;
          $session = $am->getSession($args[2]);
          $token = $session->getAuthenticationToken($args[1], $args[3], $args[4], $role);
          echo $token . "\n";
        else if ($args[0] == "--info") {
          if (count($args) == 1) {
            echo $am->getAccountInfo();
          } else {
            echo $am->getRoomInfo($args[1]);
        else if ($args[0] == "--get-node-configuration") {
          echo $am->getNodeConfiguration($args[1], $args[2], $args[3]);
        else if ($args[0] == "--fetch-items") {
          echo $am->fetchItems($args[1], $args[2], $args[3]);
        else if ($args[0] == "--register-hook") {
          if (count($args) > 2)
            echo $am->registerHook($args[1], $args[2]);
          else
            echo $am->registerHook($args[1]);
        else if ($args[0] == "--unregister-hook") {
          echo $am->unregisterHook();
        else if ($args[0] == "--hook-info") {
          echo $am->getHookInfo();
        else if ($args[0] == "--subscribe-collection") {
          if (count($args) > 3)
            echo $am->subscribeCollection($args[1], $args[2], $args[3]);
          else
            echo $am->subscribeCollection($args[1], $args[2]);
        else if ($args[0] == "--unsubscribe-collection") {
          if (count($args) > 3)
            echo $am->unsubscribeCollection($args[1], $args[2], $args[3]);
          else
            echo $am->unsubscribeCollection($args[1], $args[2]);
        else if ($args[0] == "--publish-item") {
          echo $am->publishItem($args[1], $args[2], $args[3],
            array( 'itemID' => $args[4], 'body' => $args[5] ));
        else if ($args[0] == "--retract-item") {
          echo $am->retractItem($args[1], $args[2], $args[3], $args[4]);
        else if ($args[0] == "--create-node") {
          echo $am->createNode($args[1], $args[2], $args[3]);
        else if ($args[0] == "--remove-node") {
          if (count($args) > 3)
            echo $am->removeNode($args[1], $args[2], $args[3]);
          else
            echo $am->removeNode($args[1], $args[2]);
        else if ($args[0] == "--set-user-role") {
          $role = getRole($args[3]);
          if (count($args) > 5)
            echo $am->setUserRole($args[1], $args[2], $role, $args[4], $args[5]);
          else if (count($args) > 4)
            echo $am->setUserRole($args[1], $args[2], $role, $args[4]);
          else
            echo $am->setUserRole($args[1], $args[2], $role);
        else {
          usage($progname);
      } catch(RTCError $e) {
        echo "Error: {$e}";
    ?>
    Thanks,
    Vishnu

  • Multiple instances of jrun.exe running?

    Is it common for there to be more than one instance of
    jrun.exe running in a non-clustered installation of CF7? There have
    been episodes where jrun.exe seems to get taxed on moderately size
    queries. After looking at Task Manager on Win2K3 server - there are
    sometimes 3 or 4 instances of jrun.exe running. The first instance
    is usually very high (ex. 450 MB) while the other instance(s) hover
    around the 10-15 MB mark and remain constant. Does this sound like
    an issue that can be controlled by CFAdmin or are there issues with
    our configuration:
    Win2K3 Server (VMWare instance)
    CF7.01 (yes we know it needs a patch)
    512 MB RAM
    Any thoughts on this is appreciated.
    Thanks.

    > Is it common for there to be more than one instance of
    jrun.exe running in a
    > non-clustered installation of CF7?
    Yes.
    A multi-server install (not a clustered) of CF could well
    have one instance
    of JRUN.EXE running for each CF instance. There's usually at
    least two: one
    for the initial CF instance, and one for the JMC. You can
    switch the JMC
    one off (starting it on the off-chance you need it, which is
    almost never).
    > The first instance is usually very high (ex. 450 MB)
    while the other
    That's not especially high for a CF app server. We generally
    allocate the
    max 1.3GB (on Windows) to the JVM that each CF instance is
    using.
    > 512 MB RAM
    OK, that's not even enough RAM for a PC workstation these
    days, let alone a
    server! W2k3 itself needs around a minimum of 400MB to run.
    The default
    install of CF will want another 512MB.
    I would not run a desktop PC on less than 2GB RAM these days.
    And make
    that 4GB for a server. A low-spec'ed one.
    Adam

  • Client Applet and EJB Server problem

    Hi,
    I developed a applet client that tries to connect to an EJB on the server side. The Applet runs okay in JDev3 but if I deploy it and test it outside the JDev tool I get an error. I tracked the problem to the following line of code:
    ic = new InitialContext(environment);
    Do I run into an applet security problem? If so what do i have to do to allow the applet to read/write to the local system?
    Thanks for any hints!
    Peter
    Error I get
    JAR cache enabled.
    Opening http://pete/gateway/clientmanagement.jar no proxy
    CacheHandler file name: C:\WINNT\Profiles\peter.000\Temporary Internet Files\Content.IE5\ALMN6PAZ\clientmanagement[1].jar
    Creating an initial context
    Opening http://pete/gateway/oracle/oas/container/nls/Version_en_US.class no proxy
    CacheHandler file name: null
    null

    Hi,
    I have still problems getting the client applet running. I tested it with the appletviewer and I modified the security.policy file. I allow the applet to almost everthing but i still get the following error:
    What do I do wrong? Do I really have to sign the jar file? Do I miss some stub classes?
    Thanks for any hints...
    Peter
    JAR cache disabled.
    Opening http://pete/Gateway/. no proxy
    Opening http://pete/Gateway/. no proxy
    Opening http://pete/Gateway/test/Client.class no proxy
    CacheHandler file name: C:\WINNT\Profiles\peter.000\Temporary Internet Files\Content.IE5\ALMN6PAZ\Client[1].class
    Opening http://pete/Gateway/test/Client$1.class no proxy
    CacheHandler file name: C:\WINNT\Profiles\peter.000\Temporary Internet Files\Content.IE5\ALMN6PAZ\Client$1[1].class
    Creating an initial context
    Looking for the EJB published as 'Gateway/GatewayProcessorRemote'
    Opening http://pete:80/_RMProxyURL_ no proxy
    Naming exception!
    [Root exception is org.omg.CORBA.NO_IMPLEMENT: minor code: 0 completed: No]javax.naming.ServiceUnavailableException
    at oracle.oas.jndi.oas.SecCosNamingContext.resolve(SecCosNamingContext.java:265)
    at oracle.oas.jndi.oas.BeanContext.lookup(BeanContext.java:328)
    at oracle.oas.jndi.oas.BeanInitialContext.resolve(BeanInitialContext.java:265)
    at oracle.oas.jndi.oas.BeanContext.lookup(BeanContext.java:328)
    at oracle.oas.jndi.oas.BeanInitialContext.lookup(BeanInitialContext.java:165)
    at oracle.oas.jndi.oas.WrapperContext.lookup(WrapperContext.java:78)
    at oracle.oas.jndi.oas.BeanContext.lookup(BeanContext.java:422)
    at javax.naming.InitialContext.lookup(InitialContext.java:288)
    at test.Client.initializeEJB(Client.java:104)
    at test.Client.startButton_actionPerformed(Client.java, Compiled Code)
    at test.Client$1.actionPerformed(Client.java:55)
    at java.awt.Button.processActionEvent(Button.java:308)
    at java.awt.Button.processEvent(Button.java:281)
    at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code)
    at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)
    at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java, Compiled Code)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)
    null

  • Running Weblogic Server 10.3.3 in Debug  mode

    Hi to all,
    Here i got a problem after installing Oracle Identity Manager 11g R3,to solve the issue i need to run WebLogic Server 10.3.3 in Debug mode.
    Can any suggest how to run WebLogic Server 10.3.3 in Debug mode.
    Here i find a solution to run in debug mode,but no difference in log files before and after changing debug mode.
    Enable Debugging on the WebLogic Server
    To start WebLogic Server in debug mode, you will need to modify the startWebLogic.cmd script in the <WLS-root>\wlserver_10.0\samples\domains\wl_server directory. <WLS-root> is the directory in which WebLogic 10.0.1 was installed into.
    In the startWebLogic.cmd script, specify the JAVA OPTIONS with:
    set JAVA_OPTIONS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n
    Let me know if u have any questions,
    Thanks and Ragards,
    Satish

    Greg,
    I cam across this issue too. It looks like there is a bug in sample script provided by weblogic documentation. We should not use ADMIN_URL as they mentioned in the script.
    Remove it and try. For more info. please see this link helps:
    http://ananthkannan.blogspot.com/2009/10/weblogic-server-instance-as-window.html
    Thanks.
    Ananth

Maybe you are looking for

  • "index.xml missing" • Do I laugh, cry, or scream?

    After a variety of hardware problems with my iBook (http://discussions.apple.com/thread.jspa?threadID=1523536&tstart=0), I have a new software-related problem. Some of my Pages files are acting up on me. When I try to open said files from Finder or f

  • Difference between SXPG_COMMAND_EXECUTE and Open data set mechanism

    Can you please help me to know the difference between moving a file using FM "SXPG_COMMAND_EXECUTE" and moving file using "open data set - transfer file- close data set" mechanism?

  • White box around images

    I'm using FCE 4. I've setup a moving map sequence (such as world map, point A to point B, with moving line) the sequence has taken me four pics to get it done using my crop tool. Sometimes when I playback, the world map has a transparency of black ar

  • MPL server not starting in CCB 2.3.1 SP1

    Hi, whenever i start MPL server my database schema is getting locked. Basically MPL server is not able to connect to database. It worked well with CC&B 2.3.1 and after upgrading it to SP1 this issue is happening. I looked at XAI JDBC connection and e

  • Facing font/text scrambling issues in Indesign

    I need to copy pages of text from word doc to Indesign file. When text is pasted in Indesign it gets all scrambled up. I am using a foreign language .ttf font on windows 8. I tried changing the font, but same problem for all those language fonts. any