Downloaded file ext. lost & managed server

Hi,
I am running WLS 6.1 SP2, and I have the following problem only when I run my
server as a managed server in my production environment.
I have a static HTML page that has a link to an .EXE file in the same unprotected
web application (which is deployed as an exploded directory). When I click on
the link, I am prompted to save this file on my local disk, but the .EXE extension
is missing in the dialog box.
This problem does not occur unless the server is a managed server. Does anyone
know what's going on?
Thanks,
Dan

Hi,
In my last email, I mentioned that this only occurs when the server is a managed
server. I just validated that this is not true. I always happens, my apologies
for the confusion.
Any hint would be greatly appreciated.
Dan
"Dan" <[email protected]> wrote:
>
Hi,
I am running WLS 6.1 SP2, and I have the following problem only when
I run my
server as a managed server in my production environment.
I have a static HTML page that has a link to an .EXE file in the same
unprotected
web application (which is deployed as an exploded directory). When I
click on
the link, I am prompted to save this file on my local disk, but the .EXE
extension
is missing in the dialog box.
This problem does not occur unless the server is a managed server. Does
anyone
know what's going on?
Thanks,
Dan

Similar Messages

  • Sync files across the Managed Server.

    We have exploded war deployed in the Weblogic Cluster and in this there is a feature which would create a zip file in the exploded folder and this zip file will be downloaded through the URL. Now the problem in clustered environment is when the application write the zip file which will be available in only one of the managed server and when we try to download the zip file through the LoadBalancer URL it may not hit the same Managed Server in which the zip file is available.
    Is there a way in weblogic cluster to sync the files across all the managed server so that we can access the file through loadbalancer.

    Hi Suresh
    1. Your issue has nothing to do with the cluster setup and the way you deploy the application (as EAR or Exploded). Basically in your application, you generate a file and automatically that gets stored in that machines location. Now when you access it from a load balancer, the request may go to other machine and naturally it will not find the file there. There is nothing in the cluster setup or something that can copy the files and replicate acorss the machines. Infact that will be way too complex. I will couple of solutions.
    2. Create a shared folder like public folder. Say in Windows, create a folder with some folder structure and map it as say X: Drive. now this X Drive can be accessed from any other machine like Machine1, Machine2 (after setting the sharing properties). First try directly from Windows Explorer itself. Now within your application, when you generate and store the file, refer this X: Drive with full path. You can make it more flexible by using a .properties file that has key value pair. Key is like FILE_LOCATION and value can be like X:\a\b\c. Now using simple Java Properties class API to load the contents from this file. You can add all the constants, check for if .properties file exist like that. Once you have all the properties loaded, then refer this key, to get its value and use that to store the file generated. Use the same approach, while retrieving the file also. Use the key to get the location and then look for the file you want to download. This should work, when the request goes to any managed server in the cluster. I used it. I created a utility class like MyAppPropertiesLoader, with some static methods, that reads the file only once, if it is null, and then get values using simle methods like getString(String aKey), getLong(String aKey) etc. The huge BENEFIT of this is, once you deploy the application say in Unix, natually, the shared location has to be one of the unix boxes. Then just mount this location on both the managed servers (mount is similar to mapping a drive in Windows OS). Also the location of the files can be changed anytime in the properties file. Say in QC, the location may be X:\a\b\c\qc. But for UAT on Unix it can be like /x/y/z/uat/. Now this .properties file can exist directly under the Domain root folder so you can access it directly without any path in your java code. You can also use System properties like user.home etc. Make sure to copy this .properties file on both the domains. The original master domain. And the psueduo domain that is generated when you run the unpack command if you have managed server in another machine.
    3. This is much simpler but kind of not recommended. Simply, create a simple table with few header columns and one BLOB/CLOB column. Store the file in this database table and retrieve from it. This means you will have JDBC code, and the code to create clob to store and generate file from clob for retrieval.
    My preference is the first option given above. Getting tools to copy files may be complex. Its not like syncing the data across but its the files that needs to be copied across the machines.
    Thanks
    Ravi Jegga

  • How can i Download file directly to http server (like in cloud server) instead user's pc

    I wan to create a plugin like download manager which download file directly in cloud.
    On Download prompt it ask for login and after user authenticate successfully it will redirects to our website in next tab where download will started.
    But i am unable to get download file url when click on particular file for download .
    I need this download file url and pass it to http server to download there.
    Please help me how can i do this ???
    Urgent help required.
    Thanks in advance.
    Sagar Modi

    Try to ask advice at the MozillaZine Extension Development forum.
    *http://forums.mozillazine.org/viewforum.php?f=19
    You need to register on the MozillaZine forum site in order to post at that forum.

  • Can't download files on Android from Server 2012 Essentials Remote Web Access

    I have two servers, one with Windows Server 2012 Essentials, and the other SBS 2011.  Employees like using Remote Web Access to log in from anywhere and have access to shared folders.  It works perfect on a Desktop computer, but when they try to
    use their Android tablets or phones, and want to download a file (e.g. a PDF) from one of the shared folders on the server, the download fails.   When Microsoft was pushing 2012 they said RWA worked great on mobile devices, do I have to set up something
    separately to make this happen?
    I've completely disabled the firewall, and have ports 80,443,987, and 1723(just to be safe) all forwarded to the server.
    I can log into the RWA site on the android, browse files and folders, but when I select a PDF to download, the download shows as if it's starting, shows in my android notification as if its going to start downloading (Shows MobileDownload www.mydomain.com)
    but eventually after a few minutes, will time out and show "Download Unsuccessful".
    Network connectivity is fine as I can do this on a Windows Desktop PC using any browser (Chrome, Firefox, IE) and successfully download anything I want.
    UPDATE:  I found this in the event handler when I tried to download something from a mobile device...
    - System
    - Provider
    [ Name] ASP.NET 4.0.30319.0
    - EventID 1309
    [ Qualifiers] 32768
    Level 3
    Task 3
    Keywords 0x80000000000000
    - TimeCreated
    [ SystemTime] 2014-01-12T16:49:12.000000000Z
    EventRecordID 72818
    Channel Application
    Computer MYSERVER.MYDOMAIN.local
    Security
    - EventData
    3005
    An unhandled exception has occurred.
    1/12/2014 11:49:12 AM
    1/12/2014 4:49:12 PM
    953eedf1ad414391a193e5f98a281da5
    263
    3
    0
    /LM/W3SVC/1/ROOT/Remote-1-130340167702975633
    Full
    /Remote
    C:\Program Files\Windows Server\Bin\WebApps\RemoteAccess\
    MYSERVER
    2592
    w3wp.exe
    NT AUTHORITY\NETWORK SERVICE
    HttpException
    Server cannot set content type after HTTP headers have been sent. at System.Web.HttpResponse.set_ContentType(String value) at System.Web.UI.Page.SetIntrinsics(HttpContext context, Boolean allowAsync) at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at Microsoft.WindowsServerSolutions.Web.RemoteAccessSite.RealPageHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    https://remote.MYDOMAIN.com:443/Remote/fs/MobileDownload.aspx?path=\\MYSERVER\PICTURES\2013603.jpg
    /Remote/fs/MobileDownload.aspx
    MY.IP.ADDRESS.141
    MYDOMAIN\user
    True
    Forms
    NT AUTHORITY\NETWORK SERVICE
    31
    NT AUTHORITY\NETWORK SERVICE
    False
    at System.Web.HttpResponse.set_ContentType(String value) at System.Web.UI.Page.SetIntrinsics(HttpContext context, Boolean allowAsync) at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at Microsoft.WindowsServerSolutions.Web.RemoteAccessSite.RealPageHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Hi,
    Before going further, would you please let me confirm something firstly?
    Would you please let me know if all Android devices
    encounter this same issue? If you download different type files, will still this issue persists? You can upload a small file (such as a text file) to the share folder, then check if Android device can’t download it.
    Based on your description, when logon a desktop computer, you will download files via RWA successfully. Please use the user account which logon computer to logon
    the Android device, will still fail to download?
    Please check if there has enough free space in Android devices that be used to save download.
    When this issue occurred, please check the state of Android device in Dashboard. Besides, I suggest you should run the Best Practices Analyzer (BPA) and fix all
    it can find. Then monitor the result.
    Run the Windows Server 2012 Essentials Best Practices Analyzer
    http://technet.microsoft.com/en-us/library/jj200181.aspx
    In addition, regarding to the Event ID 1309, please refer to the following articles.
    Event ID: 1309 Source: ASP.NET 4.0.30319.0
    http://www.eventid.net/display-eventid-1309-source-ASP.NET%204.0.30319.0-eventno-11022-phase-1.htm
    Hope this helps.
    Best regards,
    Justin Gu

  • Adding patch jar file while starting Managed Server through Node Manager

    Hi,
    I am using Weblogic Express 10.0 on Linux env, Jrockit JVM.
    I have a patch jar file from BEA, I added it to Weblogic start script, when I start the Managed server by using startManagedWeblogic.sh script, I can see that patch jar file is added to classpath when I grep for Java process.(ps -ef | grep -i java).
    But when I start the Managed server through NodeManager and grep for java process, I dont see the patch jar file added to classpath of Managed server process which is started.
    Can someone let me know if I have to add the patch jar file somewhere else along with Weblogic start script if starting Managed server through Node Manager?
    Weblogic Consultant

    Thanks for your response.
    I found another way to do this.
    Edit nodemanager.properties file and set StartScriptEnabled=true (By default it is false), and then restart the Node Manager process.
    Enabling this setting to true will enable the NodeManager process to use startManagedWeblogic.sh script while starting the managed server, all the added jar files, memory settings will be taken from start script of Weblogic
    Weblogic Consultant

  • Upload File to Content Management Server (Tcode OAC0) and Return a URL

    Dear Experts,
    We use webdynpro ABAP for UI and now we have a requirment: User want to upload a attachment to Content Management Server (Tcode OAC0) and get the URL like "http://svsrmd01.csvw.com:8000/sap/ebp/docserver/Daily.txt?attcget&ClId=4F45CC6E84F31335E10000000A7A05C5&sap-client=280". Is there any stand function to achieve it? Many thanks!

    Hi,
    This link will be helpful for u.[content ngmt|http://help.sap.com/saphelp_crm700_ehp01/helpdata/en/07/53291e70e346b1bf16977cc8dcabdd/frameset.htm]
    regards,
    Karthik.R

  • Download files to a local server and distribute locally

    I have 3 pc's to ugrade, not at a lot but is time consuming.
    I would like to download only the necessary files to a server and than distribute these to the two other pc's
    What is the best way to do this ?
    Is the procedure to follow described somewhere ? Thanks
    Last edited by go4it (2007-03-25 21:04:32)

    I don't think it is necessary, just added a local server and now it goes 50 times faster
    Last edited by go4it (2007-03-25 21:43:53)

  • Is it faster to download files from a remote server or file sharing with Back To My Mac?

    I am trying to send somebody a 6GB file using Back To My Mac. I had them set up my Apple ID in iCloud in System Preferences on their Mac and check the box for Back to My Mac. Went into Sharing preferences to check the boxes for File Sharing and Screen Sharing.
    From my Mac I then went to that shared computer in the Finder, copied over my file but it's showing that it will take 27hrs to transfer.
    Is this normal? And if so would setting up a server for remote access be better for transferring such large files?
    Any other mind blowing ideas would be most welcome for remote large file tranfer.
    Jazz
    Message was edited by: ShadowRa
    Message was edited by: ShadowRa

    Download history usually will have the link back to the original source location. Assuming that still exists, it's worth a try. When you right-click (Ctrl+click) an item, the small context menu should let you copy the URL of the original source, which you then can paste into the address bar to fetch it again. If the original download required you to be logged in to the source site, you should log in again first to increase your odds of getting the download.

  • Download file into non-sap server

    Hi all,
    My requirement is to  my program should be able to download the file into Mapped drive , which is Non-sap server .
    is it posible ?
    Thanks,
    Rani

    Have you tried it?  I assume that your talking about something other than desktop target?  If so, construct yourself a small test program, containing open dataset for output in text mode and check the return code.

  • Need some files to execure RFC to download file on the presentaion server

    Hi SAPGURUS,
    I need following files to setup my RFC program. Please let me know if you have it in your system.
    rfc.car
    car.exe
    rfcexec.exe
    thanks a lot for your help.
    Regards,
    Priti

    Hi
    Go thourgh the link
    To download
    http://documentation.softwareag.com/crossvision/sap231/pages/install.htm
    For Documentation
    http://sapabap.iespana.es/sap/info/rfcexec/rfcexec_e.htm
    Regards
    Pavan

  • Uploading & Downloading Files into DMS Server using Web Dynpro Java

    Hello Friends,
          I want to Upload a file from Portal to Document Management Server and to Download a file from Document Management Server to Portal,  In short, I want to give the user the facility to Upload a File into DMS Sever via Portal and also to download the file from DMS Sever via Portal.
      Can anybody give me a Input for the same from Both Java Development End as well as ABAP End, more inputs are required from ABAP end, since i have a very less ABAP Experience on working with DMS. Few Questions i have in my mind?
    1. How to actually access the file contents with the help of Document Number?
    2. With the help of Doc-Number we can extract the file from DMS sever but to provide a option for downloading in portal, the   RFC should convert the File Contents into X-String or is there some other way?
    +3. While Uploading the Data should be given in Which format to RFC? Are there any limitation with respect to size or formats. Is there any Standard RFC i can use directly in WD4 Java application to upload the file into DMS Server and which will return me the Document Number? +
    Please give me your valuable inputs.
    Thank You.
    Edited by: TusharShinde on Feb 21, 2011 11:13 AM
    Now, I am able to download the File in Portal via my WD4 Java Application from DMS Server by passing the Document Number, but I am facing the problem in downloading the PDF files, Its not working for PDF files. Please give me inputs for the same.
    Thank You.
    Edited by: TusharShinde on Feb 22, 2011 10:13 AM

    HI,
    Thanks for reply.
    I am able to download the file From DMS server but I am still not able to Upload the File to DMS Server via Portal. For Download also it is working for all file formats but not for PDF any specific reason for the same.
    function zhrf_rfc_dms_download_document.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(LV_DOCUMENT) TYPE  DOKNR
    *"  EXPORTING
    *"     VALUE(LV_FADA) TYPE  XSTRING
    *"  TABLES
    *"      LT_DOC STRUCTURE  BAPI_DOC_FILES2
    *"      LT_OUT STRUCTURE  ZST_DMS_FILE_XSTRING
    data: ls_docfiles type bapi_doc_files2,
             ls_dms type dms_doc_files,
             lt_docfiles type standard table of bapi_doc_files2.
    *      data: LT_OUT  type table of  ZST_DMS_FILE_XSTRING.
      data :wa_out like line of lt_out.
      select single * from dms_doc_files
        into ls_dms
        where doknr = lv_document."Retrieve file
      if sy-subrc = 0.
        ls_docfiles-documenttype = ls_dms-dokar.
        ls_docfiles-documentnumber = lv_document.
        ls_docfiles-documentpart = ls_dms-doktl.
        ls_docfiles-documentversion = ls_dms-dokvr.
    *    ls_docfiles-documenttype = '321'.
    *    ls_docfiles-documentnumber = LV_DOCUMENT.
    *    ls_docfiles-documentpart = '000'.
    *    ls_docfiles-documentversion = 'A0'.
      endif.
      call function 'BAPI_DOCUMENT_CHECKOUTVIEW2'
        exporting
          documenttype    = ls_docfiles-documenttype
          documentnumber  = ls_docfiles-documentnumber
          documentpart    = ls_docfiles-documentpart
          documentversion = ls_docfiles-documentversion
          documentfile    = ls_docfiles
          getstructure    = '1'
          getcomponents   = 'X'
          getheader       = 'X'
    *      pf_http_dest    = 'SAPHTTPA'
          pf_ftp_dest     = 'SAPFTPA'
        tables
          documentfiles   = lt_docfiles.
      data: i_bin type standard table of sdokcntbin,
            i_info type standard table of scms_acinf,
            v_info type scms_acinf,
            v_id type sdok_phid,
            v_cat type sdok_stcat.
      if sy-subrc = 0.
        loop at lt_docfiles into ls_docfiles.
          v_id = ls_docfiles-docfile.
          v_cat = ls_docfiles-storagecategory.
          call function 'SCMS_DOC_READ'
            exporting
              stor_cat              = v_cat
              doc_id                = v_id
              phio_id               = ls_docfiles-file_id
            tables
              access_info           = i_info
              content_bin           = i_bin
            exceptions
              bad_storage_type      = 1
              bad_request           = 2
              unauthorized          = 3
              comp_not_found        = 4
              not_found             = 5
              forbidden             = 6
              conflict              = 7
              internal_server_error = 8
              error_http            = 9
              error_signature       = 10
              error_config          = 11
              error_format          = 12
              error_parameter       = 13
              error                 = 14
              others                = 15.
        endloop.
        if sy-subrc <> 0.
        else.
          data: v_xstring type xstring.
          read table i_info into v_info index 1.
          call function 'SCMS_BINARY_TO_XSTRING'
            exporting
              input_length = v_info-comp_size
            importing
              buffer       = v_xstring
            tables
              binary_tab   = i_bin
            exceptions
              failed       = 1
              others       = 2.
          if sy-subrc <> 0.
          endif.
        endif.
        wa_out-file_name =  ls_docfiles-docfile.
        wa_out-binary = v_xstring.
        lv_fada = v_xstring.
        append wa_out to lt_out.
      endif.
    endfunction.
    The above is the RFC Code,  I am using in my WD4Java app for downloading the file From DMS Server, Is there any Improvement suggested for above RFC to make it work in more efficient way. Please give me input for my Upload RFC.
    Thank You.

  • Getting file not found exception in managed server

    Hi,
    Working on jdev 11.1.1.3.0, ADF BC with Rich faces.
    I am downloading file from network file system, i am successfully download file in integrated weblogic server, the same application when i am trying to run with my managed server(DEV Server), i am getting error like
    ####<Aug 10, 2010 5:39:02 PM EDT> <Notice> <Stdout> <sunt2000-10.wfs.com> <wld1_ms1> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <21291a4e37aed913:-38a2f9a1:12a5d38d756:-8000-0000000000000275> <1281476342286> <BEA-000000> <downloadLetters file name*://bwi-wfp-v01/Apps/SCII/TEST/LOG/Cards/ONDEMAND/Xyz.doc*>
    ####<Aug 10, 2010 5:39:02 PM EDT> <Notice> <Stdout> <sunt2000-10.wfs.com> <wld1_ms1> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <21291a4e37aed913:-38a2f9a1:12a5d38d756:-8000-0000000000000276> <1281476342313> <BEA-000000> <<Aug 10, 2010 5:39:02 PM EDT> <Warning> <org.apache.myfaces.trinidadinternal.taglib.listener.FileDownloadActionListener> <BEA-000000> <
    javax.el.ELException: java.io.FileNotFoundException: */bwi-wfp-v01/Apps/SCII/TEST/LOG/Cards/ONDEMAND/Xyz.doc* (No such file or directory)
    at com.sun.el.parser.AstValue.invoke(AstValue.java:161)
    my file location is://bwi-wfp-v01/Apps/SCII/TEST/LOG/Cards/ONDEMAND/Xyz.doc, i am getting the correct file location while reading in the managed bean, but the error is showing as /bwi-wfp-v01/Apps/SCII/TEST/LOG/Cards/ONDEMAND/Xyz.doc one / is missing, why it was happening in managed server.
    Can any one help me, what is the issue here.

    Thanks for your reply, Timo, and John, the same file downloading is working fine with my Integrated weblogic server, but the same application when i deployed in my DEV server i am getting the error.
    Code which i am trying to download file is
    public void downloadCardInserts(FacesContext facesContext,
    OutputStream outputStream) throws FileNotFoundException,
    IOException {
    // Add event code here...
    UploadedFile filename=(UploadedFile)browseFile.getValue();
    String fname=filename.getFilename();
    String fname1="//bwi-wfp-v01/Apps/SCII/TEST/LOG/Cards/RENEWAL/"+fname;
    System.out.println("file name11111:"+fname1);
    FileInputStream in = new FileInputStream(new File(fname1));
    byte[] buffer = new byte[1024];
    int bytes = in.read(buffer);
    while (bytes >= 0) {
    outputStream.write(buffer, 0, bytes);
    bytes = in.read(buffer);
    }

  • Download file from ftp server

    Can I download files from an ftp server by simply using the ip address or https:// url?    I've only gotten this to work by using the "ftp//:" address in previous projects and I'm not getting this to work in many different attempts. 
    Here is one...
     # FTP Config
    $FTPHost =
    "10.10.10.5"
    $Username =
    "admin"
    $Password =
    "12345678"
    $FTPFile =
    "test.log"
    # FTP Log File Url
    $FTPFileUrl =
    "ftp://" +
    $FTPHost +
    "/" +
    $FTPFile
    # Create FTP Connection
    $FTPRequest =
    [System.Net.FtpWebRequest]::Create("$FTPFileUrl")
    $FTPRequest.Credentials
    = New-Object System.Net.NetworkCredential($Username,
    $Password)
    $FTPRequest.Method =
    [System.Net.WebRequestMethods+Ftp]::DownloadFile
    $FTPRequest.UsePassive
    = $false
    $FTPRequest.UseBinary
    = $true
    $FTPRequest.KeepAlive
    = $false
    # Get FTP File
    $FTPResponse =
    $FTPRequest.GetResponse()
    $ResponseStream =
    $FTPResponse.GetResponseStream()
    $FTPReader =
    New-Object System.IO.Streamreader
    -ArgumentList $ResponseStream
    do
    Write-Host
    $FTPReader.ReadLine()
    while ($FTPReader.ReadLine()
    -ne $null)
    $FTPReader.Close()
    # Create FTP Connection
    $FTPRequest =
    [System.Net.FtpWebRequest]::Create("$FTPFileUrl")
    $FTPRequest.Credentials
    = New-Object System.Net.NetworkCredential($Username,
    $Password)
    $FTPRequest.Method =
    [System.Net.WebRequestMethods+Ftp]::DownloadFile
    $FTPRequest.UsePassive
    = $false
    $FTPRequest.UseBinary
    = $true
    $FTPRequest.KeepAlive
    = $false
    # Get FTP File
    $FTPResponse =
    $FTPRequest.GetResponse()
    $ResponseStream =
    $FTPResponse.GetResponseStream()
    $FTPReader =
    New-Object System.IO.Streamreader
    -ArgumentList $ResponseStream
    do
    Write-Host
    $FTPReader.ReadLine()
    while ($FTPReader.ReadLine()
    -ne $null)
    $FTPReader.Close()

    Hi!
    You don't need to specifically use an IP address. E.g can use
    $FTPHost = "myrandomserver.mycompany.com"
    $Username = "admin"
    $Password = "12345678"
    $FTPFile = "test.log"
    # FTP Log File Url
    $FTPFileUrl = "ftp://" + $FTPHost + "/" + $FTPFile

  • Japanese character problem while downloading file to application server

    Hello All,
    We are facing a strange problem while downloading a file to application server when file contains japanese text.
    We are downloading vendor and customer information in a flat file format on application server. When the login language is EN program show ouput in a properly formatted manner.
    When the login language is JA (japanese) program does download file with customer vendor data. I can see the description is japanese language but the formatting is gone for a toss.
    We are facing similar issue with other programs downloading files on the application server.
    I am using OPEN DATASET........ENCODING DEFAULT. and working on unicode enabaled ECC 6.0 system
    Quick help appriciated.
    Thanks!

    Hi
    Sometimes this also happens because of your desktop setting.Make sure that your OS also supports the JAPANESSE language.
    Ask your technical support team to enable them in your desktop.
    Thanks & Regards
    Jyo

  • Error while starting Managed server in wls

    I am using WebLogic Server Version: 10.3.4.0. I have created one managed server thru admin console. I am starting managed server using startManagedWebLogic.cmd batch file. Chnages I made in this cmd file is added managed server name and wls userid/password.
    When execute this, I get below error:
    Server
    Exception in thread "Main Thread" java.lang.NoClassDefFoundError: weblogic/Server
    Caused by: java.lang.ClassNotFoundException: weblogic.Server
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    Could not find the main class: weblogic.Server.  Program will exit.
    The contents of the startManagedWebLogic.cmd is as below:
    @ECHO OFF
    @REM WARNING: This file is created by the Configuration Wizard.
    @REM Any changes to this script may be lost when adding extensions to this configuration.
    SETLOCAL
    @REM --- Start Functions ---
    GOTO :ENDFUNCTIONS
    :usage
         echo Need to set SERVER_NAME and ADMIN_URL environment variables or specify
         echo them in command line:
         echo Usage: %1 SERVER_NAME {ADMIN_URL}
         echo for example:
         echo %1 managedserver1 http://localhost:7001
    GOTO :EOF
    :ENDFUNCTIONS
    @REM --- End Functions ---
    @REM *************************************************************************
    @REM This script is used to start a managed WebLogic Server for the domain in
    @REM the current working directory. This script can either read in the SERVER_NAME and
    @REM ADMIN_URL as positional parameters or will read them from environment variables that are
    @REM set before calling this script. If SERVER_NAME is not sent as a parameter or exists with a value
    @REM as an environment variable the script will EXIT. If the ADMIN_URL value cannot be determined
    @REM by reading a parameter or from the environment a default value will be used.
    @REM
    @REM For additional information, refer to "Managing Server Startup and Shutdown for Oracle WebLogic Server"
    @REM (http://download.oracle.com/docs/cd/E17904_01/web.1111/e13708/overview.htm)
    @REM *************************************************************************
    @REM Set SERVER_NAME to the name of the server you wish to start up.
    Set SERVER_NAME=*ManagedServer1*
    set DOMAIN_NAME=mydomain
    set ADMIN_URL=http://localhost:7001
    @REM Set WLS_USER equal to your system username and WLS_PW equal
    @REM to your system password for no username and password prompt
    @REM during server startup. Both are required to bypass the startup
    @REM prompt.
    set WLS_USER=*weblogic*
    set WLS_PW=*weblogic1*
    @REM Set JAVA_OPTIONS to the java flags you want to pass to the vm. i.e.:
    @REM set JAVA_OPTIONS=-Dweblogic.attribute=value -Djava.attribute=value
    set JAVA_OPTIONS=-Dweblogic.security.SSL.trustedCAKeyStore="d:\Perforce\weblogic1\src_16020jr\bea\wlserver_10.3\server\..\server\lib\cacerts" %JAVA_OPTIONS%
    @REM Set JAVA_VM to the java virtual machine you want to run. For instance:
    @REM set JAVA_VM=-server
    set JAVA_VM=
    @REM Set SERVER_NAME and ADMIN_URL, they must by specified before starting
    @REM a managed server, detailed information can be found at
    @REM http://download.oracle.com/docs/cd/E17904_01/web.1111/e13708/overview.htm
    if "%1"=="" (
         if "%SERVER_NAME%"=="" (
              CALL :usage %0
              GOTO :EOF
    ) else (
         set SERVER_NAME=%1
         shift
    if "%1"=="" (
         if "%ADMIN_URL%"=="" (
              CALL :usage %0
              GOTO :EOF
    ) else (
         set ADMIN_URL=%1
         shift
    @REM Export the admin_url whether the user specified it OR it was sent on the command-line
    set ADMIN_URL=%ADMIN_URL%
    set SERVER_NAME=%SERVER_NAME%
    set DOMAIN_HOME=D:\Perforce\weblogic1\dev\src_crmod\wls\mytest
    if "%1"=="" (
         @REM Call Weblogic Server with our default params since the user did not specify any other ones
         call "%DOMAIN_HOME%\bin\startWebLogic.cmd" nodebug noderby noiterativedev notestconsole noLogErrorsToConsole
    ) else (
         @REM Call Weblogic Server with the params the user sent in INSTEAD of the defaults
         call "%DOMAIN_HOME%\bin\startWebLogic.cmd" %1 %2 %3 %4 %5 %6 %7 %8 %9
    ENDLOCAL
    Any help is really appreciated.

    I could see calling to setDomainEnv.cmd script:
    *@REM Call setDomainEnv here.*
    set DOMAIN_HOME=D:\Perforce\weblogic1\dev\src_crmod\wls\mytest
    for %%i in ("%DOMAIN_HOME%") do set DOMAIN_HOME=%%~fsi
    call "%DOMAIN_HOME%\bin\setDomainEnv.cmd" %*
    set SAVE_JAVA_OPTIONS=%JAVA_OPTIONS%
    set SAVE_CLASSPATH=%CLASSPATH%
    But in my environment I do not see these variable set to any, JAVA_HOME, DERBY_CLASSPATH, JAVA_OPTIONS, CLASS_PATH.
    This might be the issue? Or anything else?

Maybe you are looking for

  • Inserting Metadata events in a live stream using non-flash client app

    Hi all, I wish to insert captions into a live flash video stream. I found an example here : http://www.adobe.com/devnet/flashmediaserver/articles/metadata_video_streaming_print.html but this example uses a Flash client app wich can invoke something l

  • How can i lock individual apps like whatsapp,messages,mail in my iphone 5s

    how do i lock individual apps in my 5s i dont intend jailbreaking

  • Help with scrolling screen

    I am writing a turn based strategy game in Java but I am unable to make a scrolling screen you can "move" your view of the game board around in. I can do every other aspect of the game myself, except for this. Examples of this on the internet are onl

  • This just in from HTC support in regards to ICS

    Hi thank you for emailing HTC, I do apologize about the wait for the ICS update. The release date for the HTC Rezound is for sometime in July. Our goal is to make sure that an upgrade provides an equal or improved customer experience and that means a

  • Nokia 5800xm, very bad battery backup

    hi all, i have just bought Nokia 5800 XM, a week back. I am facing a very bad experience with this new phone since its giving a poor battery backup. The battery is not lasting even a day. I charge it fully in night and it starts getting down next day