Configure mapViewerConfig.xml Programmatically

Is it possible to add a datasource entry to mapViewerConfig.xml programmatically so that we can avoid using the GUI?
Is it a simple case of possibly using PERL to add our datasource entry to the .xml file and bouncing the J2EE tier or is there an API I can call to append my datasource?
Thanks for any help.
Duncs

I presume your servlet is in a package called CheckServlets?
ie it starts something like
package CheckServlets
public class HelloServlet extends HttpServlet {
}Remove the / signs from the servlet-class. This attribute should be a fully qualified class name. Like java.lang.String, or com.mypackage.servlet.MyServlet
Given the above servlet in a package, it should be
<servlet>
  <servlet-name>test</servlet-name>
  <servlet-class>CheckServlets.HelloServlet</servlet-class>
</servlet>Cheers,
evnafets

Similar Messages

  • Configuring the cache programmatically

    I'm trying to find out if there is a way to configure the cache programmatically. I know that we can configure it via command line parameters (main problem is that this can only be used at VM startup, but we may want to shutdown the cache and start it up again with a different configuration, without restarting the web app or the VM), or via tangosol-coherence-override.xml (main problem is that this is problematic to change in a deployed war/jar, partly because the it would be destroyed/overwritten with a new release of our software). The ideal facility would allow our application to supply Coherence with the XML configuration data, programmatically, at runtime; that is, we would build the XML data ourself (e.g., from our own database that includes configuration data) and pass that to Coherence as a startup parameter. Is there any way to accomplish this kind of programmatic configuration at startup?
    Thanks!
    Trygve Isaacson
    Message was edited by: trygve

    Hi Trygve,
    You can use {system-property-name default-value} xml-override syntax, for example, you can create tangosol-coherence-override.xml which looks like this:
    <code>
    <coherence xml-override="{my.override}">
    </coherence>
    </code>
    and then specify an actual file name in your code:
    <code>
    System.setProperty("my.override", file_name);
    </code>
    Regards,
    Dimitri

  • Editing web.xml OR weblogic.xml programmatically

    Hi there,
    I am trying to edit the web.xml and weblogic.xml programmatically. I am trying to load the above deployment descriptors in DOM object. But as DTD is mentioned externally, connection to URL is failing.
    But weblogic.jar contains all DTD in local machine. Is there any way to make parser to refer DTD in weblogic.jar. Or any weblogic API available to edit the deployment descriptors programatically.
    Thanks in advance.
    I am getting following error.
    java.net.ConnectException: Connection timed out: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:452)
    at java.net.Socket.connect(Socket.java:402)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
    at sun.net.www.http.HttpClient.New(HttpClient.java:339)
    at sun.net.www.http.HttpClient.New(HttpClient.java:320)
    at sun.net.www.http.HttpClient.New(HttpClient.java:315)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
    ction.java:512)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
    .java:489)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
    nection.java:617)
    at java.net.URL.openStream(URL.java:913)
    at weblogic.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityMan
    ager.java:836)
    at weblogic.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntity
    Manager.java:796)
    at weblogic.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDSc
    annerImpl.java:275)
    at weblogic.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.disp
    atch(XMLDocumentScannerImpl.java:841)
    at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocume
    nt(XMLDocumentFragmentScannerImpl.java:329)
    at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguratio
    n.java:525)
    at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguratio
    n.java:581)
    at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
    at weblogic.apache.xerces.parsers.DOMParser.parse(DOMParser.java:257)
    at weblogic.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilder
    Impl.java:201)
    at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:151)
    at JAXPandDOM.main(JAXPandDOM.java:39)

    I believe you could get around this with a custom EntityResolver. It's possible that Tomcat does something like this.
    However, I would question why you are trying to do this. If your container is set to Development mode, you might get away with the container automatically reloading your changes, but it certainly won't happen in Production mode, and even in Development mode, I don't know that I could predict how that would work.
    You'd be better off, with respect to portability and flexibility, if you store dynamic resources in an external file, not in the web.xml or weblogic.xml file. You could have a timed "watcher" for the file, to see when it's modified.

  • Configuring web.xml for OpenSSO

    Hello!
    I am developing simple web application and want to use opensso in my web application.I have downloaded opensso,deployed and configured ,so i dont need how to configure web.xml ,what filters and jars i needed,i have the simple web.xml
    <web-app>
         <security-constraint>
              <web-resource-collection>
                   <web-resource-name>admin</web-resource-name>
                   <url-pattern>/admin/*</url-pattern>
              </web-resource-collection>
              <auth-constraint>
                   <role-name>admin</role-name>
              </auth-constraint>
         </security-constraint>
         <login-config>
              <auth-method>FORM</auth-method>
              <form-login-config>
                   <form-login-page>/login.jsp</form-login-page>
                   <form-error-page>/error.jsp</form-error-page>
              </form-login-config>
         </login-config>
         <security-role>
              <role-name>admin</role-name>
         </security-role>
    </web-app>so what filter should i add in web.xml so that when i access admins page <url-pattern>/admin/*</url-pattern>it should redirect to opensso s login page?

    Yes, I restarted the app server after making changes to web.xml file. No effects.

  • Passwords in All-configuration backup XML file

    Looking at the http://goo.gl/UU4cmx - for All configuration backup XML file in UCS Manager it says "This  file does not include passwords for locally authenticated users."
    When I create all configuration backup I can still see passwords when I look into the XML file but they are encrypted somehow.
    So if I create a backup and import it to some other UCS system - how  will the new system know how to decrypt the password so users will be  able to login? Thanks.

    Thanks for the elucidation.

  • Getting information about configured(webservices.xml) web service handlers

    Hi Guys, The situation is: In a Web Service, I have few GenericHandlers configured as server(Role) in webservices.xml(for IBM Runtime) & server-config.wsdd(Axis Runtime). Say the handlers are A, B & C. Now, when there is a inbound call A,B & C are getting invoked as expected.
    I am basically lookin for a way to know (programmatically) the # of handler configured for this web service i.e., 3 in this case and few other handler specific details.
    I was investigating getting hold hold of HandlerChain by following way
    HandlerRegistry hndlReg = service.getHandlerRegistry(); List hChain = hndlReg.getHandlerChain(new QName("http://test.com","PortName"));
    , but I dont get hChain containing information about A,B or C. Ya, here I can add Handlers programmetically which gets invoked also. But no information of already configured handlers in configuration files.
    Is there any way(programmetically) to get the details about already configured handlers.
    Appreciating your help.

    Please help ....

  • Problem in Configuring web.xml or portlet.xml

    Hi all,
    We are developing an application on the VAP 7 using Portlets.
    Can some one tell me, how to trigger a servlet from the Portlet? Rather how do i configure the web.xml or the Portlet.xml to make it identify the servlet that has to be called on load of the jsp.
    I have tried this the regular jsp and xml way (i.e. without using the Portlets and calling it from the JSP)
    I have the web.xml where i have the mapping for the single jsp ( this has the call servlet within the SRC attribute of the IMG tag. ) , also with the mapping details for the servlet to be called and this way it works fine there.
    How do i do the same for Portlets.?

    are you very new to servlets..
    ok then.
        <servlet>
            <servlet-name>bittu1</servlet-name>
            <servlet-class>Library1</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>bittu1</servlet-name>
            <url-pattern>/lop1</url-pattern>
        </servlet-mapping>
    <servlet>
            <servlet-name>bittu2</servlet-name>
            <servlet-class>Library2</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>bittu2</servlet-name>
            <url-pattern>/lop2</url-pattern>
        </servlet-mapping> i think this will help you.

  • Indices configuration for XML document analysis (indexing time problems)

    Hi all,
    I'm currently developing a tool for XML Document analysis using XQuery. We have a need to analyse the content of a large CMS dump, so I am adding all documents to a berkeley DB xml to be able to run xqueries against it.
    In my last run I've been running to indexing speed problems, with single documents (typically 10-20 K in size) taking around 20 sec to be added to the database after 6000 documents (I've got around 20000 in total). The time needed for adding docs to the database drops with the number of documents.
    I suspect my index configuration to be the reason for this performance drop. Indeed, I've been very generous with indexes, as we have to analyse the data and don't know the structure in advance.
    Currently my index configuration includes:
    - 2 default indicess: edge-element-presence-none and edge-attribute-presence-none to be able to speed up every possible xquery to analyse data patterns: ex. collection()//table//p[contains(.,'help')]
    - 8 edge-attribute-substring-string indices on attributes we use often (id, value, name, ...)
    - 1 edge-element-substring-string index on the root element of the xml documents to be able to speed up document searches: ex. collection()//page[contains(.,'help')]
    So here my questions:
    - Are there any possible performance optimisations in Database config (not index config)? I only set the following:
    setTransactional(false);
    envConf.setCacheSize(1024*64);
    envConf.setCacheMax(1024*256);
    - How can I test various index configuration on the fly? Are there any db tools that allow to set/remove indexes?
    - Is my index config suspect? ;-)
    Greetings,
    Nils

    Hi Nils,
    The edge-element-substring-string index on the document element is almost certainly the cause of the slow document inserts - that's really not a good idea. Substring indexes are used to optimize "=", contains(), starts-with() and ends-with() when they are applied to the named element that has the substring index, so I don't think that index will do what you want it to.
    John

  • Issue with configuring ns_email.xml

    Hi,
    I am trying to configure the email notification part and editing the ns_email.xml.
    when I restart the SOA suite, I could find the follwing errors in F:\product\10.1.3.1\OracleAS_1\bpel\domains\default\logs\domain.log file:
    <2007-10-09 16:08:10,703> <INFO> <default.collaxa.cube> <ServerManager::loadDomain>
    Oracle BPEL Server version 10.1.3.1.0
    Build: 0
    Build time: Mon Oct 09 08:44:49 PDT 2006
    Build type: release
    Source tag: PCBPEL_10.1.3.1.0_GENERIC_061009.0802
    <2007-10-09 16:08:11,140> <INFO> <default.collaxa.cube.engine> <CubeEngine::load>
    Initializing BPEL domain from descriptor file
    "F:\product\10.1.3.1\OracleAS_1\bpel\domains\default\config\domain.xml"
    <2007-10-09 16:08:11,140> <ERROR> <default.collaxa.cube.engine> <DomainObserverRegistry::load> Failed to locate observer class oracle.tip.esb.configuration.deployment.bpel.BPELSvcDeploymentManager
    <2007-10-09 16:08:11,437> <INFO> <default.collaxa.cube.engine> <gsDomainSchemaManager::validateCompatibility> Detected database version '2.0.51'
    <2007-10-09 16:08:11,437> <INFO> <default.collaxa.cube.engine> <AdaptorManager::load> Loaded adaptors for platform 'ias_10g', datasource 'oracle'
    <2007-10-09 16:08:14,593> <INFO> <default.collaxa.cube.engine> <AdapterStats::init:Done initializing Adapter statistics holder for engine > default
    <2007-10-09 16:08:14,593> <INFO> <default.collaxa.cube.engine> <CubeEngine::init>
    OraBPEL "default" BPEL domain loaded.
    <2007-10-09 16:08:20,687> <INFO> <default.collaxa.cube.engine> <CubeEngine::loadAllProcesses>
    Loading processes for BPEL domain "default" ...
    <2007-10-09 16:08:26,203> <INFO> <default.collaxa.cube.engine.deployment> Process "TaskManager" (revision "1.0") successfully loaded.
    <2007-10-09 16:08:27,843> <INFO> <default.collaxa.cube.engine.deployment> Process "TaskActionHandler" (revision "1.0") successfully loaded.
    <2007-10-09 16:08:28,500> <INFO> <default.collaxa.cube.engine.deployment> Process "SendEmailWithAttachments" (revision "1.0") successfully loaded.
    <2007-10-09 16:08:35,031> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Loading JCAActivationAgent for {portType=Dequeue_ptt}
    <2007-10-09 16:08:35,046> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::load - Locating Adapter Framework instance: OraBPEL
    <2007-10-09 16:08:35,062> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Instantiating inbound part of Adapter Framework instance: OraBPEL
    <2007-10-09 16:08:35,296> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::load - Done loading JCAActivationAgent for processId='bpel://localhost/default/CDB_SimpleApproval~1.0/
    <2007-10-09 16:08:35,296> <INFO> <default.collaxa.cube.engine.deployment> Process "CDB_SimpleApproval" (revision "1.0") successfully loaded.
    <2007-10-09 16:08:35,406> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::init - Initializing the JCA activation agent, processId='bpel://localhost/default/CDB_SimpleApproval~1.0/
    <2007-10-09 16:08:35,406> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::initiateInboundJcaEndpoint - Creating and initializing inbound JCA endpoint for:
    process='bpel://localhost/default/CDB_SimpleApproval~1.0/'
    domain='default'
    WSDL location='CDB_DEQUEUE.wsdl'
    portType='Dequeue_ptt'
    operation='Dequeue'
    activation properties={portType=Dequeue_ptt}
    <2007-10-09 16:08:35,578> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - endpointActivation for portType=Dequeue_ptt, operation=Dequeue
    <2007-10-09 16:08:35,578> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Creating new instance of Resource Adapter oracle.tip.adapter.aq.AQResourceAdapter
    <2007-10-09 16:08:35,593> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - starting Resource Adapter oracle.tip.adapter.aq.AQResourceAdapter
    <2007-10-09 16:08:36,625> <INFO> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_ctor: Creating MessageReader for queue IFS_BPEL_OUT, consumer = wf)
    <2007-10-09 16:08:36,625> <INFO> <default.collaxa.cube.activation> <AQ Adapter::Inbound> AQManagedConnectionFactory_createManagedConnection: Created new managed connection for user
    <2007-10-09 16:08:42,515> <INFO> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_ctor: Done creating MessageReader for queue IFS_BPEL_OUT, consumer = wf, dequeue timeout = 1)
    <2007-10-09 16:08:50,968> <INFO> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_ctor: Initialized MessageReader for queue IFS_BPEL_OUT, consumer = wf)
    <2007-10-09 16:08:50,968> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - successfully completed endpointActivation for portType=Dequeue_ptt, operation=Dequeue
    <2007-10-09 16:08:50,968> <WARN> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::init - JCA activation agent has already been initialized for processId='bpel://localhost/default/CDB_SimpleApproval~1.0/' activation properties={portType=Dequeue_ptt} - nothing to do.
    <2007-10-09 16:08:50,968> <INFO> <default.collaxa.cube.engine> <CubeEngine::loadAllProcesses>
    4 processes have been loaded for BPEL domain "default".
    <2007-10-09 16:09:19,843> <INFO> <default.collaxa.cube.services> <QuartzPublisherInit::init> Notification Retry publisher scheduled at every 15 minute(s)
    <2007-10-09 16:09:42,546> <ERROR> <default.collaxa.cube.services> <PCRuntimeException::<init>> Cannot connect to iAS Wireless notification webservice.
    <2007-10-09 16:09:42,546> <ERROR> <default.collaxa.cube.services> <PCRuntimeException::<init>> Cannot connect to iAS wireless notification webservice running at http://messenger.oracle.com/xms/webservices
    <2007-10-09 16:09:42,546> <ERROR> <default.collaxa.cube.services> <IASWDriver::loadSupportedChannels> Cannot connect to iAS Wireless notification webservice.
    <2007-10-09 16:09:42,546> <ERROR> <default.collaxa.cube.services> <IASWDriver::loadSupportedChannels> Cannot connect to iAS wireless notification webservice running at http://messenger.oracle.com/xms/webservices
    <2007-10-09 16:09:49,265> <ERROR> <default.collaxa.cube.services> <PCRuntimeException::<init>> E-mail folder does not exist.<2007-10-09 16:09:49,265> <ERROR> <default.collaxa.cube.services> <PCRuntimeException::<init>> E-mail folder inbox does not exist.
    <2007-10-09 16:09:49,281> <ERROR> <default.collaxa.cube.services> <PCException::<init>> Error in registering email receiver.
    <2007-10-09 16:09:49,281> <ERROR> <default.collaxa.cube.services> <PCException::<init>> Error while registering email receiver for the email account Default. Because of this error actionable email messages for tasks will not be received<2007-10-09 16:09:49,281> <ERROR> <default.collaxa.cube.services> <PCException::<init>> The error could be because of configuration of the email account. Check the configurations for the account. Also check the error stack for the cause of the exception. Contact oracle support if error is not fixable.
    <2007-10-09 16:09:49,281> <ERROR> <default.collaxa.cube.services> <TaskManager::registerEmailReceiver> Error in registering email receiver.
    <2007-10-09 16:09:49,281> <ERROR> <default.collaxa.cube.services> <TaskManager::registerEmailReceiver> Error while registering email receiver for the email account Default. Because of this error actionable email messages for tasks will not be received<2007-10-09 16:09:49,281> <ERROR> <default.collaxa.cube.services> <TaskManager::registerEmailReceiver> The error could be because of configuration of the email account. Check the configurations for the account. Also check the error stack for the cause of the exception. Contact oracle support if error is not fixable.
    <2007-10-09 16:18:57,984> <ERROR> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_ReadMessage: AQ Exception (error=17002) alive: true enabled: true
    <2007-10-09 16:18:57,984> <ERROR> <default.collaxa.cube.activation> <AQ Adapter::Inbound>
    oracle.AQ.AQOracleSQLException: Io exception: Connection reset
         at oracle.AQ.AQOracleQueue.dequeue(AQOracleQueue.java:1795)
         at oracle.AQ.AQOracleQueue.dequeue(AQOracleQueue.java:1307)
         at oracle.tip.adapter.aq.database.MessageReader.readMessage(MessageReader.java:458)
         at oracle.tip.adapter.aq.inbound.AQActivationSpecDequeuer.run(AQActivationSpecDequeuer.java:189)
         at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
         at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:272)
         at java.lang.Thread.run(Thread.java:595)
    <2007-10-09 16:19:13,125> <INFO> <default.collaxa.cube.activation> <AQ Adapter::Inbound> AQManagedConnectionFactory_createManagedConnection: Created new managed connection for user
    <2007-10-09 16:19:26,984> <INFO> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_ctor: Initialized MessageReader for queue IFS_BPEL_OUT, consumer = wf)

    Hi krrish,
    Follow the following link to configure ur email:
    http://download-east.oracle.com/docs/cd/B31017_01/integrate.1013/b28982/service_config.htm#sthref322
    cheers,
    Abhi

  • Which API can be used to write to an XML file(web.xml) programmatically

    Hi,
    I wish to write to the web.xml file programmatically.Could anyone point me to the
    API that is to be used.
    I am aware of the API to be used for extracting the node and the tag values - com.bea.p13n.xml.util.DomHelper
    but this class has only getters and I wish to know which API should be used to set
    the xml nodes.
    It is important and am looking forward to pointers.
    Thanks in advance!
    Regards,
    Shikha

    S. Bajaj
    org.w3c.dom Api
    Deepak
    shikha wrote:
    Hi,
    I wish to write to the web.xml file programmatically.Could anyone point me to the
    API that is to be used.
    I am aware of the API to be used for extracting the node and the tag values - com.bea.p13n.xml.util.DomHelper
    but this class has only getters and I wish to know which API should be used to set
    the xml nodes.
    I am unable to find answer to this.
    Looking forward to pointers and help.
    Thanks in advance!
    Regards,
    Shikha

  • Configure web.xml in tomcat for sub class folders

    Hi Guys,
    I am using a tomcat server. I have a package file and have created a dir in webapps called "testApp". In the classes folder, I have another folder called "CheckServlets" and within this I have 2 servlets. How can I configure my web.xml properties to get the servlets to load in a browser. I have tried the following but it doesnt work:
    <servlet>
    <servlet-name>test</servlet-name>
    <servlet-class>/CheckServlets/HelloServlet/</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>test</servlet-name>
    <url-pattern>/hello/test/</url-pattern>
    </servlet-mapping>
    So I try http://localhost:8080/testApp/hello/test but that doesnt work.

    I presume your servlet is in a package called CheckServlets?
    ie it starts something like
    package CheckServlets
    public class HelloServlet extends HttpServlet {
    }Remove the / signs from the servlet-class. This attribute should be a fully qualified class name. Like java.lang.String, or com.mypackage.servlet.MyServlet
    Given the above servlet in a package, it should be
    <servlet>
      <servlet-name>test</servlet-name>
      <servlet-class>CheckServlets.HelloServlet</servlet-class>
    </servlet>Cheers,
    evnafets

  • Configuration/workspace/*.xml file information

    Hi all,  I am new to DWcs4 and woke up to this message when I tried to start DWcs4 this morning.
    The following panel layout is missing or could not be read:
    c:\documents and settings/owner.lee\application data\adobe\dreamweaver cs4\en_us\configuration\workspace\mine.xml
    I also saw this on another attempt.
    XML parsing fatal error: Invalid document structure, line: 1, file C:\Documents and Settings\Owner.Lee\Application Data\Adobe\Dreamweaver CS4\en_us\Configuration\Workspace\mine.xml
    I ended up reinstalling which was no big deal because I have just started using DW.  Right after I started my uninstall I found some excellent adivce in this group about removing (renaming might also work I think) the installation directory and restarting DW as it would recreate these files automagically.
    What I am wondering is if it would not be a bad idea to backup from this configuration file down in case I see this message again and don't feel up to reinstalling, when I have much more custom stuff setup.  I found that other people were getting the same or a very similiar message but the file named was "Designer.xml"  I did not initially see in my workspace directory until a while after I started working with DW.  I assume it was because I saved the "Designer" workspace setup during the session.  I do backup my entire pc every night, as long as I remember to plug in my external drive, but I am just wondering if it would be a good idea to back up this directory in a straight unencrypted format for quick restores.  Or maybe I am overreacting?
    Thanks very much,
    Jim Lee

    bemall wrote:
    > That verifies two way communication to return xml
    results. Any other ideas
    >
    That verifies that *you* have two way communication.
    ColdFusion, even running on localhost, does not run as *you*,
    unless you
    have told it to. By default it runs as 'localSystem' on
    Windows, on
    Unix it will run under the user defined at install time.
    It is quite possible for there to be cooperate domain
    policies that
    allow you to access the internet, but not a generic
    'localSystem' user.
    One way to test this would be to configure the ColdFusion
    service|daemon
    to run under your user name and password. Not an ideal, long
    term
    solution, but a good test.
    This makes a lot of assumptions about your details. This is a
    problem
    with your system and your network connections. Those are the
    people you
    are going to need to be working with to find out why this is
    not working.

  • Editing XML programmatically.

    Hi All,
    I am getting an XML file, I am parsing it successfully , but I need some code to edit the same file. Is there any classes or APIs that do that or we will have to manually code for editing the XML and saving it and then sending back.
    Thnx..
    Amit

    You need to do these w/XML:
    1 fetch
    2 read/parse
    3 edit
    4 save
    5 send back
    ...lots of people (1) fetch and (2) parse XML via their iPhone app. Others seem determined to (3,4,5) bifurcate.
    XML is just text, of course, and it can be trivial to just (3) edit and (4) save. If you want to reformat content (add instead of just edit), it gets a bit more interesting, of course.
    It can get tricky when 5'ing since it depends on where you're 5'ing, which you haven't alluded to just yet. Are you creating a (redirected) new stream, such as an RSS feed and distributing it directly to clients...or...are you updating content on a host that will be then used as an RSS feed, etc.?
    I'm guessing you can't 1 in other formats for obvious reasons, so you are stuck w/XML. I'm also guessing you're not 5'ing back to a host or you'd have already figured out it would be easier to let the host massage the content into XML instead. This means your only actual need is to write XML on the iPhone and everything else is secondary at this point.
    Writing XML involves tagging, which can be done programmatically by creating a template and dumping your content in via filters. You'll need to write this since it is your content, with your tags and your filters.
    Have you taken a look at TinyXML or TouchXML yet?

  • Configuring config.xml

    Hi,
    I am trying to configure the config.xml file and printing the configured
    output to a file. Can anybody recommend a utility to print the xml output
    with the readable xml spacing (something akin to a pretty print).
    Thanks,
    Tej

    Using JDOM (http://www.jdom.org), I believe you can just toString() the
    document object. I am not sure how it handles the various XML spacing
    issues, or if that will even pose a problem for config.xml.
    Our own XML package supports pretty vs. compact format as well, and avoids
    the XML spacing issues even with pretty-printing option and multi-line text.
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com
    Tangosol Server: Enabling enterprise application customization
    "Tej" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    I am trying to configure the config.xml file and printing the configured
    output to a file. Can anybody recommend a utility to print the xml output
    with the readable xml spacing (something akin to a pretty print).
    Thanks,
    Tej

  • Manually configuring domain.xml using ${name} and -Dname

    I need to be able to use this syntax:
          <jms-service addresslist-behavior="random" addresslist-iterations="3" init-timeout-in-seconds="60" reconnect-attempts="3" reconnect-enabled="true" reconnect-interval-in-seconds="60" type="LOCAL">
            <jms-host admin-password="admin" admin-user-name="admin" host="${com.memento.localhost}" name="default_JMS_host" port="7676"/>
          </jms-service>When I add -Dcom.memento.localhost="%COMPUTERNAME%" to the script that runs CLIMain, the property is not replaced when the above jms-service element is processed. I know because the server.log shows:
    #|2005-03-16T17:00:39.809-0500|INFO|sun-appserver-pe8.1|javax.enterprise.system.stream.out|_ThreadID=10;|
    URL is :mq://${com.memento.localhost}:7676/,Where do I set my property so it is picked up for replacement in domain.xml? Apparently the Java command that runs CLIMain is not the right place. Or soemthing else is wrong?

    If I understand this correctly, you need to do a token replacement so that the runtime accepts the configured value.
    <P>
    What you need is a "system-property".
    Here is how I would go about doing it:
    <ul>
    <li> No need to modify the asadmin script at all. </li>
    <li> ./asadmin set user admin passwordfile /tmp/pass "server.jms-service.host=${${com.memento.localhost}"</li>
    <li> This will add this value as expected in domain.xml. </li>
    <li> But this is not what you want. </li>
    <li> You need something called as a "system property" that is specific to SJS application server. <li>
    <li> This is a convenient way of creating a token and replace it at runtime. </li>
    <li> Either in the admin GUI or admin CLI, you need to define a system property. For example, the system property in the above case could be defined on CLI as: ./asadmin create-system.properties user admin passwordfile /tmp/pass "com.memento.localhost=the-actual-machine-name"
    </li>
    Hope this helps.
    </ul>

Maybe you are looking for

  • Hi i want to buy an iphone 5s

    hi i want to buy an iphone 5s and i live in Europe but i want to buy it from america can it charge if it different voltage and question 2 when ever i check for availbility it says unavailble for pickup does that mean that there isnt that kind of ipho

  • How to Perform this calculaction in Query

    Hi Experts How can i achieve this Calculaction at query Level. Data: Emp_ID--Wage_IDPayroll_Date--Amount 1--03925.01.2008-5000 1--03925.02.2008-5000 1--03925.03.2008-5000 1--03925.04.2008-6000 1--03925.07.2008-6000 The employee will have No of differ

  • Function Module to check posting date

    Hi, Is there any function module avilable to check whether the posting date is open or not. Regards Suresh.

  • Converting pdf's to Word

    I received a pdf in an email and I saved it to my computer. I'm now trying to convert it from a pdf to Word but I get a message saying "an error occurred while signing in." I signed out and signed in again, but I got the same message. Has anyone else

  • I have problem in downloading files

    when i click download, it asks target folder to save the file,. but the file is not getting downloaded ultimately.