Servlet variable in Server

when i defined a global variable in a servlet,if there are more than one people to call the servlet in same time,
and they all change the variable , what will happen?
In Weblogic 6.1
mingzheng huo

If you are not using the "Single-Thread Model", each request to your servlet uses the same instance of your servlet. So, non-local variables (now I know they are know as field variables) are shared among all threads making the requests. If you search the recent posts for "thread-safe" you'll find some discussion on this topic.

Similar Messages

  • Ignoring Http basic authentication header in wls 7.0.sp2 web service servlet (weblogic.webservice.server.servlet.WebServiceServlet)

    Hi!
    We need to implement authentication using our own methods, and the authentication
    information is provided to the web service implementation in a basic authentication
    header. The problem is, that the servlet
    weblogic.webservice.server.servlet.WebServiceServlet, which handles web services
    in
    wls 7.0.sp2, always attempts to perform authentication, if the header is present.
    Is there any way to circumvent this, because we want to implement authentication
    on our own?
    I already know two workarounds:
    The best would of course be to implement a custom security realm for our own
    authentication system. This is not an option, implementing an own security
    realm is overkill for this specific web service.
    The other way would be to route the requests by way of a custom servlet, which
    would
    remove the basic authentication header, and put the authentication info in custom
    headers, such as x-auth: <user:password>, or smthng similar, and after successful
    authentication, make a call to bea's servlet weblogic.webservice.server.servlet.WebServiceServlet.
    But still, I'd like to know if there is any way to tell bea's servlet to ignore
    the basic
    authentication header?
    Oh yeah, by the way, this is URGENT, as always. (really!! ;)
    Toni Nykanen

    Currently there is no option to turn off security check.
    I think you can use a servlet filter mapped to the URL
    of your service, instead of a proxy servlet?
    Regards,
    -manoj
    http://manojc.com
    "Toni Nykanen" <[email protected]> wrote in message
    news:3ef1577b$[email protected]..
    >
    Hi!
    We need to implement authentication using our own methods, and theauthentication
    information is provided to the web service implementation in a basicauthentication
    header. The problem is, that the servlet
    weblogic.webservice.server.servlet.WebServiceServlet, which handles webservices
    in
    wls 7.0.sp2, always attempts to perform authentication, if the header ispresent.
    Is there any way to circumvent this, because we want to implementauthentication
    on our own?
    I already know two workarounds:
    The best would of course be to implement a custom security realm for ourown
    authentication system. This is not an option, implementing an own security
    realm is overkill for this specific web service.
    The other way would be to route the requests by way of a custom servlet,which
    would
    remove the basic authentication header, and put the authentication info incustom
    headers, such as x-auth: <user:password>, or smthng similar, and aftersuccessful
    authentication, make a call to bea's servletweblogic.webservice.server.servlet.WebServiceServlet.
    >
    But still, I'd like to know if there is any way to tell bea's servlet toignore
    the basic
    authentication header?
    Oh yeah, by the way, this is URGENT, as always. (really!! ;)
    Toni Nykanen

  • How to redirect request to a servlet on another server/context

    Hi
    I want to redirect a request came to a servlet to another servlet on another server or atlest different context on same server.
    Thanks in advance,
    --Nagesh                                                                                                                                                                                                                                                                                                                               

    Thanks but, now after rediriceting the request I am
    not getting any ServletInputStream. Getting rintime
    error as NoClassDefinitionFoundError :
    ServletInputStream.That's indicative of a problem with your classpath settings.
    DO I have to do anything the JSP
    (which submitted the request to first servlet) after
    redirecting?Nops, you shouldnt do anything after sendredirect(). The response is committed after using this method.
    ram.

  • Using JDO in a Servlet container/app server

    Hi,
    I was just wondering what Solarmetric recommends when using Kodo in a
    servlet container/app server. Specifically the following:
    1. Should each user session maintain a PersistenceManager or should the
    PM be created per request? I am thinking it might be expensive to
    maintain PMs across requests since you may have idle sessions and the
    PMs may hold database resources? But since PMs aren't pooled in Kodo is
    creating/closing a PM per request expensive or is it offset by Kodo's
    connection pooling?
    2. Is it advisable to store data to be displayed on a JSP by storing the
    JDO instances themselves or serializable proxies (simple data beans) of
    these objects in a user's session?
    3. If you can store the JDO instances in the session, do you need to
    make them transient instances using makeTransient() and call close() the
    PersistenceManager?
    Thanks in advance,
    Khamsouk

    These are all very good questions. There really is no one right answer to any
    of them, so I'll just try to educate you on the issues involved and you can
    make your own decision. Hopefully other people who are actually using Kodo
    in a servlet/JSP environment will chime in too.
    1. Should each user session maintain a PersistenceManager or should the
    PM be created per request? I am thinking it might be expensive to
    maintain PMs across requests since you may have idle sessions and the
    PMs may hold database resources? But since PMs aren't pooled in Kodo is
    creating/closing a PM per request expensive or is it offset by Kodo's
    connection pooling?As long as you are outside of a datastore transaction, a PM does not maintain
    any database resources. The only significant state it maintains is a soft
    cache of persistent objects that have already been instantiated. If you are
    using Kodo 2.3 RC1 and have no set the
    com.solarmetric.kodo.DefaultFetchThreshold property to -1, then some
    large collections you obtain from query results or relation traversals may be
    scrollable result sets on the back-end, in which case they obviously maintain
    some database resources.
    2. Is it advisable to store data to be displayed on a JSP by storing the
    JDO instances themselves or serializable proxies (simple data beans) of
    these objects in a user's session?
    3. If you can store the JDO instances in the session, do you need to
    make them transient instances using makeTransient() and call close() the
    PersistenceManager?I'll address these together. JDO fully supports serialization, and in fact
    I think you'll find it does so in exactly the way that you want. If you choose
    to store serialized persistent objects in the session, then during
    serialization the objects will transparently pull in all of their persistent
    state and relations, so the entire object graph is serialized. When you
    deserialize, the objects will no longer be attached to their persistence
    manager -- they will be transient.
    Another options is to store the object IDs in the session, and re-retrieve
    the persistent objects for each web request.
    One design pattern that can probably net very good performance is to maintain
    a global read-only persistence manager that you use to dereference these IDs.
    Of course, if you ever want to change an object, you'll have to re-fetch it
    in a new persistence manager, and evict it from the global manager's cache.
    I hope this helps.

  • Running a servlet in J2EE server

    Hi there! I'm sorry if I have placed the query in a wrong place, can anybody help me where can I get some step by step process of deploying a servlet in J2EE server, please help me, and your kind help will be appreciated, regards, shabeer

    hi thanks for your response Mr meadandale, well the server is Sun's J2EE1.4 server. regards

  • [svn:bz-trunk] 8910: Bug: LCDS-936 - Should have better error message in servlet log if server in services-config .xml is configured to use wrong class.

    Revision: 8910
    Author:   [email protected]
    Date:     2009-07-29 14:22:26 -0700 (Wed, 29 Jul 2009)
    Log Message:
    Bug: LCDS-936 - Should have better error message in servlet log if server in services-config.xml is configured to use wrong class.
    QA: Yes
    Doc: No
    Checkintests: Pass
    Ticket Links:
        http://bugs.adobe.com/jira/browse/LCDS-936
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/MessageBrokerServlet.java

    After many hard working days.i finally found the error cause,i needed to make weblogic datasource also ADF doesnt work on internet explorer browser,it works on safary.hope it helps somebody

  • Servlet in WebLogic Server 6.0

              I am trying to run a servlet from WebLogic Server 6.0
              Copied servlet class file into the following directory:
              config/mydomain/applications/
              DefaultWebApp_myserver/
              WEB-INF/classes
              Modified the web.xml file located in the config/mydomain/applications/
              DefaultWebApp_myserver/
              WEB-INF/ directory
              <web-app>
              <servlet>
              <servlet-name>
              CustLogin
              </servlet-name>
              <servlet-class>
              lawson.servlet.CustLogin
              </servlet-class>
              <init-param>
              <param-name>url</param-name>
              <param-value> http:/localhost:7001/CustLogin/custaddr.html</param-value>
              </init-param>
              </servlet>
              <servlet-mapping>
              <servlet-name>
              CustLogin
              </servlet-name>
              <url-pattern>
              /CustLogin/*
              </url-pattern>
              </servlet-mapping>
              </web-app>
              Run servlet from a Web browser with URL:
              http://localhost:7001/CustLogin
              Servlet Exception
              <<Error> <HTTP> <saluki2> <myserver> <ExecuteThread-11> <> <> <101018>
              <[WebAppServletContext(944251,DefaultWebApp_myserver)] Servlet
              failed with ServletException>
              javax.servlet.ServletException: Servlet class: 'lawson.servlet.CustLogin'
              could not be resolved - a class upon which this class depends wasn't
              found
              

    Deepak,
              Are all the classes used by CustLogin in System Classpath or under
              web-inf\classes directory?
              Kumar.
              Deepak wrote:
              > I am trying to run a servlet from WebLogic Server 6.0
              >
              > Copied servlet class file into the following directory:
              > config/mydomain/applications/
              > DefaultWebApp_myserver/
              > WEB-INF/classes
              >
              > Modified the web.xml file located in the config/mydomain/applications/
              >
              > DefaultWebApp_myserver/
              > WEB-INF/ directory
              >
              > <web-app>
              >
              > <servlet>
              > <servlet-name>
              > CustLogin
              > </servlet-name>
              > <servlet-class>
              > lawson.servlet.CustLogin
              > </servlet-class>
              > <init-param>
              > <param-name>url</param-name>
              > <param-value> http:/localhost:7001/CustLogin/custaddr.html</param-value>
              >
              > </init-param>
              > </servlet>
              >
              > <servlet-mapping>
              > <servlet-name>
              > CustLogin
              > </servlet-name>
              > <url-pattern>
              > /CustLogin/*
              > </url-pattern>
              > </servlet-mapping>
              > </web-app>
              >
              > Run servlet from a Web browser with URL:
              > http://localhost:7001/CustLogin
              >
              > Servlet Exception
              >
              > <<Error> <HTTP> <saluki2> <myserver> <ExecuteThread-11> <> <> <101018>
              > <[WebAppServletContext(944251,DefaultWebApp_myserver)] Servlet
              > failed with ServletException>
              > javax.servlet.ServletException: Servlet class: 'lawson.servlet.CustLogin'
              > could not be resolved - a class upon which this class depends wasn't
              > found
              >
              

  • How to execute servlets in j2ee server

    please help me out in running servlets in j2ee server.
    i dont know where to put my servlets class files.

    please help me out in running servlets in j2ee
    server.
    i dont know where to put my servlets class files.In your j2ee server, look for your virtual host directory (webapps, deploys...information may be found in a \conf\ directory )
    Your application have to respect the hierarchy :
    /WEB-INF/web.xml --> The Web Application Deployment Descriptor
    /WEB-INF/classes/ --> put any java class (servlet or non-servlet)
    /WEB-INF/lib/ --> put jar file (external ressource)
    *.jsp;*.html ...
    /subdir/*.jsp;*.html...
    put this hierarchy in your web apps directory
    note : You can packed the hierarchy in a WAR file(Web ARchive)
    a web.xml example :
    <web-app>
    <servlet>
    <servlet-name>
    myservlet
    </servlet-name>
    <servlet-class>
    MyFirstServlet <!-- (your servlet's class)-->
    </servlet-class>
    <servlet-mapping>
    <servlet-name>
    myservlet
    </servlet-name>
    <url-pattern>
    /myservleturl <!--(URL to call servlet) -->
    </url-pattern>
    </servlet-mapping>
    </web-app>

  • Can i deploy servlet to iis server..?

    Can i deploy servlet to iis server..?
    if yes.. how..?

    to deploy servlets into IIS you need to use some connector which connects IIS to tomcat. Still you have to use servlet contrainer from tomcat only (as IIS serves you only web server functionality but not servlet contrainer ). use JK Connector for this bride.

  • Need HELP!! Where I have to place an web.xml(servlet) file on server

    I'm using E-business suite for oracle HR version 11.
    On localhost i have developed an servlet file with using web.xml. On web.xml i have customized the file that can load a class for my servlet.But when I deploy on the server i had a cnfused wher do i have to place web.xml and my servlet.
    I have made an servlet file for my custom. Where do I have to place an xml(servlet) file on server?
    Would you give me know forsolving my problem.Please give me know,I really appreciated if you want to give some solution.
    Regards,
    Dany Fauzi

    Copy web.xml to WEB-INF directory of the web application.

  • Using servlet in weblogic server

    hi, guys,
    I have done quite a few research about using servlet in weblogic server, but still can't get it work, hope you guys can provide some suggestion. Thank you in advance.
    I have a folder structure like this:
    There is a "Jsp" folder under the "WebContent", and there is a configJsp.jsp file inside this folder, which is:<br>
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%> <br>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><br>
    <html> <br>
    <head> <br>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <br>
    <title>Insert title here </title> <br>
    </head> <br>
    <body> <br>
    <form method="POST" action="Config"> <br>
    <input type="text" name="myText"/> <br>
    <input type="submit" name="mySubmit" value="submit"> <br>
    </form> <br>
    </body> <br>
    </html> <br>
    And then under the "Java Resources", there is a "servlet" package, there is a ConfigServlet.java file inside, which is like this:
    <br>
    package servlet; <br>
    <br>
    import java.io.*; <br>
    import javax.servlet.*; <br>
    import javax.servlet.http.*; <br>
    public class ConfigServlet extends HttpServlet <br>
    {  <br>
    public void doGet(HttpServletRequest request,HttpServletResponse response) <br> throws ServletException,IOException <br>
    { <br>
    doPost(request, response); <br>
    } <br>
    <br>
    public void doPost(HttpServletRequest request,HttpServletResponse response) <br> throws ServletException,IOException <br>
    {  <br>
    String textContent=request.getParameter("myText"); <br>
    response.setContentType("text/html"); <br>
    PrintWriter out = response.getWriter(); <br>
    out.println(" <html>"); <br>
    out.println(" <head> <title>ServletCommit </title> </head>"); <br>
    out.println(" <body>"); <br>
    out.println(textContent); <br>
    out.println(" </body> </html>"); <br>
    } <br>
    } <br>
    and I add the following mapping configuration into web.xml:
    <servlet> <br>
    <servlet-name>Config </servlet-name> <br>
    <servlet-class>servlet.ConfigServlet </servlet-class> <br>
    </servlet> <br>
    <servlet-mapping> <br>
    <servlet-name>Config </servlet-name> <br>
    <url-pattern>/Jsp/* </url-pattern> <br>
    </servlet-mapping> <br><br>
    I run the application, click "submit", and got the following error message:<br>
    Error 404--Not Found <br>
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found<br>
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.<br><br>
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address. <br><br>
    I guess there might be something wrong with the jsp and servlet mapping, but don't know what exactly it is, and have tried to change some configuration as well, but they don't work. This has annoyed me for a few days, hope there is someone who can be so kind to help me out of this. Thank you again.
    null

    to james.bayer:<br>
    I tried modifying my web.xml like the following:<br><br>
    <servlet><br>
    <servlet-name>Config</servlet-name><br>
    <servlet-class>servlet.ConfigServlet</servlet-class><br>
    </servlet><br>
    <servlet-mapping><br>
    <servlet-name>Config</servlet-name><br>
    <url-pattern>/Config</url-pattern><br>
    </servlet-mapping><br><br>
    is that what you mean? but the same error appear again, it doesn't seem to be able to find the servlet.<br><br>
    I am using an BEA workshop for weblogic platform 10.0. Actually, I am trying to develop a portal, and I need a jsp to be included in it, and will need to deal with the form submit. The jsp is under a portal application, does it matter? Or is it different with a normal dynamic web application? Thank you for your advice.

  • Download servlet from external server

    I write a download file servlet. It should download files from external ftp and make the save as dialog window save it with proper extension.
    It gets 3 parametes:
    http://10.60.1.1:8080/sd-sp45/DownloadServlet?fileName=55555.doc&filePath=000/000/000/000/000/000/010/002/8c8/f07/57/00000000-0000-0000-0001-00028c8f076e&fileType=doc
    fileName - original file name;
    filePath - path and file name on ftp server;
    fileType - file type;
    I get an error IOException : java.oi.FileNotFoundException :
    ftp:\sdattach:[email protected]\sdftp\Servicecall\000\000\000/000\000/000/010\002\8c8\f07\57\00000000-0000-0000-0001-00028c8f076e (The file name, diroctory name, or volume label syntax is incorrect)
    I'm not sure if I can use here File class (maybe some network stuff)
    Besides, what shoud I change here :
    response.setContentType("application/octet-stream");
    response.setContentLength((int)F.length());
    response.setHeader("Content-Disposition","attachment;filename="+file);
    to save file with the extension i need?
    Thank you for help
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.net.*;
    public class DownloadServlet extends HttpServlet {
        File F;
        BufferedInputStream fif;
        ServletOutputStream stream;
        public void init(){
            F=null;
            fif=null;
            stream =null;
        public void doGet(HttpServletRequest request ,HttpServletResponse response) {
            try{
                try{
                // Setting Buffer size
                response.setBufferSize(50000);
                int buffersize;
                String filePath="";
                String fileName="";
                String fileType="";
                //Receiving variables
                fileName=request.getParameter("fileName");
                filePath = request.getParameter("filePath");
                fileType = request.getParameter("fileType");
                System.out.println("========New compile==");
                System.out.println(fileName);
                System.out.println(filePath);
                System.out.println(fileType);
                String downloadFile = "ftp://sdattach:[email protected]/sdftp/Servicecall/" + filePath;
                F=new File(downloadFile);
                String file=F.getName();
                buffersize= 10248;
                byte b[]=new byte[buffersize];
                // Setting Content Type
                response.setContentType("application/octet-stream");
                response.setContentLength((int)F.length());
                response.setHeader("Content-Disposition","attachment;filename="+file);
                stream = response.getOutputStream();
                fif = new BufferedInputStream(new FileInputStream(F));
                //writing data to output stream
                int count=fif.read(b,0,buffersize);
                while(count!=-1){
                stream.write(b,0,count);
                count=fif.read(b,0,buffersize);
                //closing objects
                fif.close();
                stream.flush();
                stream.close();
                F.delete();
                }catch(SocketException se){
                System.out.println("SocketException " +se);
                catch(IOException io){
                System.out.println("IOException " + io);
                catch(Exception e){
                System.out.println("Exception " +e);
            }catch(Exception e){ System.out.println("Exception " +e); }
    }

    assuming the filepath is absolutely correct, try doing this:
    String downloadFile = "ftp://sdattach:[email protected]/sdftp/Servicecall/" + filePath;
    response.setHeader("Content-Disposition","attachment;filename=\""+downloadFile+ "\"");

  • Passing servlet variables without browser

    Im new to this java programming but have been trying to pass variables returned from a java servlet on an external server to my server and onto a php page on a third server. Is this possible without opening a browser window before it has reached the php page? I know this is long winded way of doing things but it is the specification i have been given. If possible i would like to avoid writing to a databse or log file along the way.
    If anyone can help i would be most grateful
    redbarracuda
    "all experience, no regrets"

    Yes at present the whole process is in java, we have a form submitting paymemt data to a java servlet which is processed and returned, and currently is printed to the screen via a results.jsp script. At the same time order data is sent to a php confirmation script. I then need to tie up the two pieces of data to validate the order. Will your suggestion enable me to send the payment data to the php script without printing any data to the screen in the meantime.
    redbarracuda
    "all experience, no regrets"

  • Passing variables to server is not working

    I am new to action scripts, so I'm not even sure where to
    start. I have bits and pieces that I know work, but am not sure why
    the action script and the php file on the server do not seem to be
    talking correctly to each other. The action script seems to work if
    I do not pass any variables, but only just a generic mail()
    function in the php file - i.e. mail("[email protected]","Subject is
    photography","Mail message body is here."). If I try to use the
    variables passed from the action script, I get nothing :-(
    Here is the section of the action script and the php file
    that I am using currently (i have modified it many time and tried
    many things on the php side)
    //sends the data out
    bSend.onRelease = function() {
    var targetLoadVars:LoadVars = new LoadVars();
    var myLoadVars:LoadVars = new LoadVars();
    //sets form focus
    focusManger.setFocus(tiEmailTo);
    myLoadVars.emailFrom = c.text;
    myLoadVars.emailTo = "[email protected]";
    myLoadVars.subject = "Photography Info";
    myLoadVars.name = a.text;
    myLoadVars.message = d.text;
    myLoadVars.sendAndLoad ("
    http://someweb.com/feedbck-1a.php",
    targetLoadVars, "POST");
    targetLoadVars.onLoad = function() {
    trace(this.success);
    This is the feedbck-1.php file on the someweb.com server
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>feedbck-1.php</title>
    </head>
    <body>
    <?
    include("FormValidator.class");
    // instantiate object
    $fv = new form_validator();
    name = targetLoadVars.name;
    emailFrom = targetLoadVars.emailFrom;
    message = targetLoadVars.message;
    emailTo = targetLoadVars.emailTo;
    if ($fv->validate_fields("name, emailFrom, message,
    emailTo"))
    mail($emailTo,"Photography inquiry",$message);
    else
    // or list errors
    echo "The form could not be processed because the
    following fields contained invalid data:";
    echo "<ul>";
    foreach ($fv->error_array as $e)
    echo "<li>$e";
    echo "</ul>";
    ?>
    </body>
    </html>

    Couple of thoughts
    1. The PHP side must only return (echo) standard MIME format
    application/x-www-form-urlencoded(a standard format used by CGI
    scripts).
    &var=value$var=value&var=value
    So you need to remove all the HTML and only have <?php at
    start and ?> at the end with no whitespace before or after these
    tags including tabs, enter keys and spaces.
    Inside you have echo return the URL encoded variables.
    2. Prove the PHP script outside of Flash by creating a
    standard HTML form that sends the values. This will allow you to
    see the return values from the PHP script that they are in the
    requisite encoded form and any PHP errors assuming you have the PHP
    error messages open.
    3. Place
    targetLoadVars.onLoad = function() {
    trace(this.success);
    before the sendAndLoad.
    You are assigning a variable and it is remotely possible that
    the sendAndLoad fires the onLoad before the lines following it are
    processed. A remotely possible failure is not a good item to have
    in code.
    4. Also might be a variable scope problem:
    Define these outside of the onRelease function.
    var targetLoadVars:LoadVars;
    var myLoadVars:LoadVars;
    Inside the onRelease
    targetLoadVars = new LoadVars();
    myLoadVars = new LoadVars();

  • Dsc opc shared variables yields Server Failure

    I've been struggling with the transition from DSC 7.1 to 8+ ever since the release of version 8. I use the Allen Bradley OPC server supplied with the DSC module (Industrial Automation OPC Servers v 5.1) to communicate with a PLC 5/30 via Ethernet, or at least I did when I was using 7.1.
    Prior to today I always failed to get the shared variables that were bound to addresses in the OPC server to deploy, usually getting an error number that started with -19. However today I finally got it to deploy by keeping the I/O server and the shared variables in separate libraries within my project. Now that they deploy I find that I am unable to monitor them. I keep getting a Server Failure. I have browsed the forums here heavily, and the documentation all relates to remote OPC, which is not what I'm doing here (OPC client and server are on the same machine). I tried changing the login account for the Variable Engine service anyway, but that doesn't help, so I put it back.
    I have had some luck simply binding my front panel objects to the OPC server addresses using Datasockets, so it appears that my OPC server is working. However, Datasockets is not a viable option for me because there are times when my project needs to write to a large number of addresses in the PLC sequentially, which never works over datasockets (in my experience).
    We have continued to work in version 7.1 because of the challenges of moving to 8+, but since we can no longer purchase DSC runtime licenses for version 7.1 in order to deploy, it seems that we MUST move forward to 8+ or abandon LabVIEW altogether (which is certainly an option).
    For clarification, I am now working with version 8.2 (but I've been fighting with it since 8.0 without much success). If anybody out there can think of a critical step that I might have missed that might cause this, or if there is a known solution, I could really use (and would greatly appreciate) the help. Thanks!

    Nobody out there seems to have any answers for this, so I kept pounding on it (and pulling my hair out). In the end I finally succeeded in getting one of my old 7.1 DSC projects to run on 8.2. Here's what I did:
    1. I begin with a fresh installation of Windows. I tested it with both 2000 and XP Pro. Vista RC1 will absolutely NOT work!
    2. Install LabVIEW 8.2, DSC 8.2, and just the OPC server that I need from the IA OPC CD (in my case the Allen Bradley server)
    3. Open the IA OPC server editor, and create a new file with an object in it for my PLC (PLC 5/30, Ethernet in my case)
    4. Save, set it as the startup file
    5. Run LabVIEW, create an empty project
    6. Add an IO server
    7. Launch Multi Variable Editor, load project file created in step 6, and bind one variable to PLC address
    8. Save all. Uncheck auto deploy for the library, and deploy all.
    9. Launch variable monitor, browse to new variable, double click to monitor.
    10. This will ALWAYS fail with "server failure". Don't worry, just exit completely out of LabVIEW.
    11. Stop the Variable Engine service.
    12. Run OPC server editor again, and load up the lpd file from your old project. Modify if needed, save, and set as startup
    13. Start the Variable Engine service again.
    14. Launch LabVIEW
    15. Create a new empty project (I created mine in the same directory as my old 7.1 project resided)
    16. Add an IO server, and uncheck auto deploy for its library
    17. Save all
    18. Run Tools->DSC->Migrate->import scf
    19. Convert your old SCF file
    20. Add the new library to your project (it will be named LabVIEW)
    21. Uncheck auto deploy for the "LabVIEW" library you just added
    22. Right click on the "LabVIEW" library and do deploy all
    23. Save, and open the variable monitor
    24. Browse to a tag in the LabVIEW library, and double click
    25. This time it will actually monitor the variable, with a status of "Good"
    26. Now you can add your main front panel VI to your project, open it and run it
    27. Version 8.2 will select the proper legacy tag read/write VI's, whereas 8.0 does not. The writes however do not work. Replace them with shared variable writes. The reads work fine.
    28. The empty project that you created in step 5 is a throw away. It will never work anyway.
    29. So far the only variables that I can get to work at all are the ones that I import from an scf file, which is a pain, but if I must create all my tags in 7.1 and import them into 8.2 I will (for now). I may try exporting to Excel and copying variables that work in order to get functional new variables, since binding them in the editor does not work.
    I hope this helps anybody else out there struggling with moving to 8+ DSC. I saw a few posts with similar issues, but without ANY answers at all. It's a convoluted solution that doesn't make a lot of sense, but for me it is repeatable.

Maybe you are looking for

  • What are the consequences of changing the scratch disc??

    What are the consequences of changing the scratch disk? Everything was fine with my project until I tried to work on a new project for someone else. I uploaded new footage to a new session and changed the scratch disk to my other external hard drive.

  • My code to "select" an element in the Tree UI element is not consistently working

    Hi, I created a Web Dynpro component that does many things.  One feature is do display information in a Tree UI element.  I use the TreeNodeType and recursive context node to build a nice tree representing what the customer wants.  Since this tree co

  • Email from Ipad...

    I sent this morining an email with my new ipad from my gmail account. The receiver said that the message presents some strange "transfer encoded" characters. This is an example... Buongiorno Annina! Stamattina ero gi=C3=A0 sveglio alle 7:30....un po'

  • Why do we have separate selectors for "from" and "smtp server" these days?

    A while back we shifted our email from our own domain and virtual server to gmail.  As was the case using our own domain, we still have two seperate "from" names in a selector above the body of an email being composed, but now the selector for the SM

  • Transposing column names to row for a multi row table

    Hi I have a table some thing like this that needs to be transposed. FIELD_POPULATED First_NM**Last_NM**Mi_NM* A_NULL 0 0 0 A_NOT_NULL 120 120 120 B_NULL 0 0 0 B_NOT_NULL 0 0 0 The above table has to be transposed as column_name*A_NULL**A_NOT_NULL**B_