Redirecting output to J2EE server command prompt

I am finding difficulty with reading the system.out.println() given in the server side code. J2SDK redirects it to System.out file, but most of the time, I am not
getting the results. I tried to restart the server to get the value from buffer.
But thats not working either. Is there any way for getting the output in the server prompt itself. Can I do any configuration changes for this.

Start the J2EE server from the command prompt with "-verbose" option.
Regards,
Ashoke Bhowmick

Similar Messages

  • How to redirect output of an OS command to a stream???

    how can i redirect the output of an OS command (such as 'ls' in linux or 'dir' in windows) to a io stream???
    ....for example, assume i'm having a textbox and a button...when i click the button , i need the output of 'ls' to be in the textbox....i think execution of the command could be accomplished by Runtime's exec() ...but how to redirect outputs???

    You should find what you are looking for here:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • Redirecting output after a "cat" command

    I first encountered this with "do shell script" in AS, and the issue also occurs in Terminal.
    Basically, I want to get contents from a file, make some changes via "sed ," and return the changed version to the same file -- but the file always winds up empty. Without the redirect, the commands work as expected.
    For example, in Terminal:
    cat --path to some file-- | sed 's/this/that/g'
    results in the expected changes (returned to Terminal)
    but
    cat --path to some file-- | sed 's/this/that/g' > path to some (same) file
    results in a blank file
    (The "sed" command isn't even necessary for this to happen; just trying to return the output of the "cat" command to the file results in a blank file.)
    I've certainly been able to accomplish this sort of thing with commands other than "cat." Is this something that's not possible with "cat" or do I have the syntax wrong?
    (Of course, I can get around this by following up with an "echo" command but, in "do shell script," that requires more code.)
    Thanks in advance for your comments.

    HI osimp,
       I've always thought that the "sed 's/this/that/g' < input > output" syntax looked cool because you can sort of see the flow of information. However, the end of the command is simply a pair of redirect directives. The first tells the shell to open the file and pipe the contents into the standard input stream of sed. Then the output of sed is piped into the output file.
       The command I was proposing, "sed 's/this/that/g' input > output", is simpler in that it tells sed to read the file directly rather than asking the shell to read it.
       You said above that you were interested in storing the result in a variable. That could be done simply with a command like:
    OUTPUT=$( sed 's/this/that/g' input )
    For many types of content this would work nicely but the shell will try to expand the output so plenty of things can cause errors. I was going to wait to post the above until I discovered a way around that expansion but I haven't had enough time to do that so I'm posting it and I'll see if I can improve it later.
       I know some about AppleScript and have written several scripts that combine capabilities of the shell with those of AppleScript. There are probably more people here that know AppleScript here than there are shell scripters on the AppleScript Discussion. You should try posting the whole question over here as well as over there. However, try and see if you can get the help of Deivy over there. He knows a lot about interactions between AppleScript and the shell.
    Gary
    ~~~~
       A memorandum is written not to inform the reader,
       but to protect the writer.
             -- Dean Acheson

  • Output of cmd in command prompt as key and vaule in properties file

    hi,
    i want to get the value of any command which i run using cmd in a properties file as a key and value rather then getting it in text file
    for example - hostname>output.txt   [not good], i want it to be like hostname>output.properties with a key and its value as output.
    command - `hostname`
    output - userpc
    but i want the same output in a properties file like
    xyzkey=userpc   in sample.properties file.
    it would be a great help.
    thanks
    sid

    I am sorry to say that it is not possible to understand what you are asking.
    Please post a copy of your script with any error messages.
    ¯\_(ツ)_/¯

  • Forms 11g - Weblogic Server - Command prompts stay open?

    is it right, that i have to logon to the windows server, start the Admin Server for Weblogic Server domain manually,
    if i want to go to the Admin Console on port 7001?
    is it right, that i have to logon to the windows server, start the Weblogic Server WLS_FORMS manually,
    if i want to start any forms?
    Today i just want to set up an Oracle application server 11g like we would need for our customers.
    So i have installed Oracle Fusion Middleware 11g on a Windows 2003 Datacenter Server in US Version named "center".
    I took the US Version just for testing, cause on my machines the Oracle installer runs in german and
    may this make the problems i had until now.
    i installed the following components:
    Server Components
    Oracle Forms
    Oracle Rerports
    Developer Tools
    None
    Management Components
    Enterprise Manager
    System Components
    Oracle HTTP Server OHS
    Clustered: No
    Summary after the normal 70 minutes installaltion-prozess:
    Type: Oracle Portal, Forms, Reports and Discoverer Installation
         Configuration Options
              Middleware Home Location: C:\Oracle\Middleware
              Oracle Home Location: C:\Oracle\Middleware\as_1
              Oracle Instance Location: C:\Oracle\Middleware\asinst_1
              Oracle Instance: asinst_1
              Domain Option: Create Domain
              Domain Name: ClassicDomain
              Domain Home: C:\Oracle\Middleware/user_projects/domains/ClassicDomain
              Domain Host Name: center
              Domain Port No: 7001
              User Name: weblogic
              Automatic Port Detection: true
              Administrator Console: http://center:7001/console
              EM Console: http://center:7001/em
              EMAgent URL: http://center:5155/emd/main
              Forms URL: http://center:8888/forms/frmservlet
              Reports URL: http://center:8888/reports/rwservlet
    h5. First of six installations whithout failures! Yep!
    I pressed finish to close the installer and wait about 6 minutes til it was gone ...
    ^(at the end of this message there is a screenshot from my "half-dead-windows-server" ...)^
    when rebooting there must four cmd.exe and one javaw.exe beeing "hard-killed" before shutting down...
    After windows reboot:
    - http://center:7001/console - not reachable
    - http://center:7001/em - not reachable
    - EMAgent URL: http://center:5155/emd/main - reachable (with Congratulations :) )
    - http://center:8888 - reachable - 11g welcome page
    - http://center:8888/forms/frmservlet - not reachable - Failure of server APACHE bridge
    - http://center:8888/reports/rwservlet - not reachable - Failure of server APACHE bridge
    The Windows Service Oracle Prozess Manager (asinst_1) is up an running.
    opmnctl status:
    emagent_asinst_1 - alive
    ReportsServer_center_asinst_1 - alive
    ohs1 - alive
    where is a forms_asinst_1-process or something like this ??
    after starting the Admin Server for Weblogic Server domain manually,
    inclusiv entering weblogic username and password, waiting about 4 Minutes,
    http://center:7001/console is reachable.
    Under environment / servers / Control in the Weblogic Console, i try to start wls_forms.
    Message
    For server WLS_FORMS, the Node Manager associated with machine center is not reachable.
    All of the servers selected are currently in a state which is incompatible with this operation or are not associated with a running Node Manager or you are not authorized to perform the action requested. No action will be performed.
    - may i can set a password somewhere? i did not found ...
    So i start manually the Weblogic Server WLS_FORMS
    inclusiv entering weblogic username and password and waiting about 2 Minutes.
    Then the WLS_FORMS Server in the Weblogic Admin Console is running.
    h5. I log off from the windows console and all manually started servers and services are down. *(?!)*
    h5. Is there another way to start the forms server without having dos-boxes open ?
    h6. Windows tasks after installation Oracle Middleware 11g
    !http://www.maugo.de/image/11gsummary.jpg!
    Edited by: Magoo on Jul 24, 2009 11:38 AM

    For the benefit of any other users discovering this thread we have a new Oracle Fusion Middleware 11g 'Failure of server Apache Bridge' Troubleshooting support document - available via My Oracle Support (formerly known as Metalink)
    Check out
    Oracle Middleware 11g - Troubleshooting the Error "Failure of server APACHE bridge" [ID 1304095.1]
    https://support.oracle.com/CSP/main/article?cmd=show&id=1304095.1&type=NOT

  • Command Prompt Output to a File

    hi,
    i am new to java, i would like to write a program which executes a command in command prompt, giving some result and want to read this command prompt output to a file like this:
    1) first i need to exeucte "dir c:" command which will give the details fo that particular directory
    2) the output displyed on the command prompt by executing the above command has to be read into a File.
    help me with some code snippets to do this.
    Thanks in advance.

    could you please elaborate the explanation interms of
    java code snippets?
    rofl
    Read this.
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?page=3

  • When starting J2EE server .....

    I have installed j2sdk 1.4 & j2sdkee1.3 on Windows XP. I have set Environment variables.
    When I start j2ee server
    COMMAN PROMPT SAYS
    C:\>j2ee
    Warning: This J2EE SDK release has only been tested on J2SE v1.3
    J2EE server listen port: 1050
    Redirecting the output and error streams to the following files:
    c:\j2sdkee1.3\logs\home\j2ee\j2ee\system.out
    c:\j2sdkee1.3\logs\home\j2ee\j2ee\system.err
    Exception in thread "main"
    C:\>
    SYSTEM.ERR shows
    Logging for J2EE Server Version: 1.3-b16 started at: Wed Apr 07 16:03:55 GMT+05:30 2004..
    Using the Java HotSpot(TM) Client VM and the version number 1.4.0 from Sun Microsystems Inc..
    VM is using the classpath: c:\j2sdkee1.3\lib\system\cloudscape.jar;c:\j2sdkee1.3\lib\system\tools.jar;c:\j2sdkee1.3\lib\cloudscape\RmiJdbc.jar;c:\j2sdkee1.3\lib\cloudscape\client.jar;c:\j2sdkee1.3\lib\classes;c:\j2sdkee1.3\classes;c:\j2sdkee1.3\lib\j2ee.jar;c:\j2sdkee1.3\lib\locale;c:\j2sdk1.4.0\jre\lib\rt.jar;c:\j2sdk1.4.0\lib\tools.jar;.;;c:\j2sdkee1.3\lib\jhall.jar .
    J2EE Home Directory has been set to: c:\j2sdkee1.3.
    java.lang.NoSuchMethodError: loadClass0
         at com.sun.corba.ee.internal.util.JDKClassLoader.specialLoadClass(Native Method)
         at com.sun.corba.ee.internal.util.JDKClassLoader.loadClass(JDKClassLoader.java:58)
         at com.sun.corba.ee.internal.util.JDKBridge.loadClassM(JDKBridge.java:181)
         at com.sun.corba.ee.internal.util.JDKBridge.loadClass(JDKBridge.java:84)
         at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.loadClass(Util.java:392)
         at javax.rmi.CORBA.Util.loadClass(Util.java:233)
         at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObject.java:179)
         at javax.rmi.PortableRemoteObject.<clinit>(PortableRemoteObject.java:58)
         at com.sun.enterprise.server.J2EEServer.createActivationObjects(../../src/share/com/sun/enterprise/server/J2EEServer.java:397)
         at com.sun.enterprise.server.J2EEServer.run(../../src/share/com/sun/enterprise/server/J2EEServer.java:227)
         at com.sun.enterprise.server.J2EEServer.main(../../src/share/com/sun/enterprise/server/J2EEServer.java:901)
    SYSTEM.OUT shows
    Logging for J2EE Server Version: 1.3-b16 started at: Wed Apr 07 16:03:55 GMT+05:30 2004..
    Using the Java HotSpot(TM) Client VM and the version number 1.4.0 from Sun Microsystems Inc..
    VM is using the classpath: c:\j2sdkee1.3\lib\system\cloudscape.jar;c:\j2sdkee1.3\lib\system\tools.jar;c:\j2sdkee1.3\lib\cloudscape\RmiJdbc.jar;c:\j2sdkee1.3\lib\cloudscape\client.jar;c:\j2sdkee1.3\lib\classes;c:\j2sdkee1.3\classes;c:\j2sdkee1.3\lib\j2ee.jar;c:\j2sdkee1.3\lib\locale;c:\j2sdk1.4.0\jre\lib\rt.jar;c:\j2sdk1.4.0\lib\tools.jar;.;;c:\j2sdkee1.3\lib\jhall.jar .
    J2EE Home Directory has been set to: c:\j2sdkee1.3.
    Naming service started:1050
    I tried changing the port number from 1050 to 10590 (as shown in Sun site) but didn't help. Same problem.
    One more thing, can this problem be b'coz of "Warning: This J2EE SDK release has only been tested on J2SE v1.3" this starting line on start of server.
    Can anyone tell me, y am I facing this problem and how to solve it. Other applications like deploytool, cloudscape r running fine. I didn't try others.
    Looking for help as soon as possible
    Thanks
    Trupti

    You may want to try and use J2SE 1.3 instead of J2SE 1.4. This may alleviate your issue.

  • Redirecting output in Netbeans?

    After a few years of several languages, I am finding Java to be my home :) I really enjoyed the improvements that Sun has made with NetBeans 6. However, it doesn't output text to the console/command-prompt like it would in JCreator Pro. Even in JCreator Pro, I had to redirect the output and it was much easier given a few settings. For Netbeans, the output goes to an "Output Window." I find writing my ascii game is easier with the command prompt and so JCreator seems ideal if I can't get my preferred IDE set properly for the command prompt. Is there a way to get NetBeans to redirect its output from the Output Window to the command prompt? Thanks.

    I was able to get the "run" button to execute output to the console (command prompt). Doing so was not too difficult. I agreed with Leonardo that posting it here would be helpful for someone else. He was very helpful with our first few attempts on a similar task.
    In your workspace, click on the Files tab. Find build-impl.xml, double-click on the "run" property in the navigator window. It should bring you to something similar below. What I added was the "exec" open and end tags. Just paste this in there and you will be up and going.
    <target name="run" depends="init,compile" description="Run a main class.">
    <j2seproject1:java>
    <customize>
    <arg line="${ application.args}"/>
    </customize>
    </j2seproject1:java>
    <exec executable="cmd">
    <arg value="/k" />
    <arg value="start cmd /k java -classpath "${basedir}\${ build.classes.dir}" ${main.class}" />
    </exec>
    </target>

  • ERROR WHILE STARTING J2EE SERVER IN COMMAND PROMPT

    C:\j2sdkee1.3.1\bin>j2ee -verbose
    J2EE server listen port: 1050
    Naming service started:1050
    Exception in thread "main" java.lang.NoSuchMethodError
    at com.sun.corba.ee.internal.corba.AnyImpl.createTypeCodeForClass(AnyImpl.java:1256)
    at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.createTypeCode(ShutdownUtilDelegate.java:223)
    at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.writeAny(ShutdownUtilDelegate.java:178)
    at javax.rmi.CORBA.Util.writeAny(Util.java:80)
    at org.omg.stub.com.sun.enterprise.naming._SerialContextProvider_Stub.rebind(Unknown Source)
    at com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:188)
    at com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:202)
    at javax.naming.InitialContext.rebind(InitialContext.java:370)
    at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManagerImpl.java:192)
    at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManagerImpl.java:149)
    at com.sun.enterprise.server.J2EEServer.bindObject(J2EEServer.java:718)
    at com.sun.enterprise.server.J2EEServer.createServerObject(J2EEServer.java:473)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:244)
    ANY DETAILS POST
    REGARDS
    VENKAT

    I had the same problem overhere.
    If you would have taken the time to read some topics on this forum you would have found dozens of others having this problem like
    http://forum.java.sun.com/thread.jsp?forum=136&thread=280211
    Which gave the answer for me
    That was: install the jdk141 and UNDEFINE any classpath and cpath in you environment setting.
    HTH
    Xiffy

  • Redirecting output when starting the server as Service

    Hi,
    I was wondering if there is any way to redirect the error to a log file if the
    weblogic server has been started as Service. We are getting some crashes and we
    are not sure what exactly the issue is. We have tried running it on the command
    line and we have been able to capture some info but if there is a way to do the
    same when starting it as service,it would be great
    thanks
    Sushil

    wls8.1 sp3:
    To redirect the output to log files you must redirsct standard out and standard error to a file.
    This can be done by following steps:
    1.     Create a backup copy of the WL_HOME\server\bin\installSvc.cmd master script.
    2.     In a text editor, open the WL_HOME\server\bin\installSvc.cmd master script.
    3.     In installSvc.cmd, the last command in the script invokes the beasvc utility. At the end of the beasvc command, append the following command option:
    -log:"pathname "
    where pathname is a fully qualified path and filename of the file that you want to store the server's standard out and standard error messages.
    The modified beasvc command will resemble the following command:
    "%WL_HOME%\server\bin\beasvc" -install
    -svcname:"%DOMAIN_NAME%_%SERVER_NAME%"
    -javahome:"%JAVA_HOME%" -execdir:"%USERDOMAIN_HOME%"
    -extrapath:"%WL_HOME%\server\bin" -password:"%WLS_PW%"
    -cmdline:%CMDLINE%
    -log:"d:\bea\user_projects\domains\myWLSdomain\myWLSserver-stdout.txt"
    4.     By default, every 24 hours the Windows service archives messages to a file named pathname-yyyy_mm_dd-hh_mm_ss. New messages collect in the file that you specified in the previous step.
    For information on changing the default behavior, see Changing the Default Rotation Criteria <http://e-docs.bea.com/wls/docs81/adminguide/winservice.html>.
    After you install the service and restart the Windows host, to view the messages that the server writes to standard out or standard error, do one of the following:
    §     Make a copy of the file that you specified and view the copy. The Windows file system cannot write to files that are currently opened.
    §     To view the messages as they are being printed to the file, open a command prompt and, using a DOS utility that supports the tail command, enter tail -f stdout-filename.

  • Reading newly opened command prompt output

    I need to use SSH to connect to a server. Rather than downloading a third party SSH API, I would like to use Putty which is already on my computer. The problem is that when using Putty from the command line to connect to a server it opens the connection in a completely different command prompt window instead of the original window. How would I read the output from the new window? I believe this code would have worked if it opened the connection in the same command prompt window...
    try{
    File test = new File("c:\\program files\\putty");
    Runtime rt = Runtime.getRuntime();
    Process output = rt.exec("cmd /c putty.exe -ssh username@host", null, test);
    BufferedReader br = new BufferedReader (new InputStreamReader(output.getInputStream()));
    String line = null;
    while((line = br.readLine()) != null )
    { System.out.println(line); } // display process output
    int exitVal = output.waitFor(); // get process exit value
    System.out.println("Process Exit Value : "+ exitVal);
    catch(IOException ioe){
    System.err.println(ioe);
    catch (Throwable t) {
    t.printStackTrace();
    }

    web definition of 'come unstuck' :
    come unstuck (British & Australian)
    if a person or something they are trying to achieve comes unstuck, they have problems which cause them to fail. Athletes who don't prepare properly for the humid conditions will certainly come unstuck. The negotiations came unstuck over disagreements about the wording.

  • How do i get a output in CSV of a SQL query executed via SQL Command prompt

    Hi All,
    I have a question with reference to SQL command prompt. I have a sql query which runs properly and gives proper execution in SQL Management console in GUI.
    This report is used to pull the free disk space report of our servers
    As i want to schedule it as a report so i want to script it to run via SQL command prompt. I made the script and it works fine if i enter it in SQL command prompt. When i try to extract the output to a CSV File it fails. Below is the details of the command
    i am using to query to pull the data. Can anyone help me in getting the output of this query in SQL command prompt.
    sqlcmd -W -s , -S Servers FQDN
    use operationsmanager
    Go
    Query:"select Path, InstanceName, SampleValue 
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < '20' and CounterName='% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled" -s "," -o "C:\DataSqlCmd.csv"
    Go
    When i enter the command without the quotes when the query is starting and ending and also without the output command (-s "," -o "C:\DataSqlCmd.csv") it is working and shows the output in the command prompt. Below is the screen shot for
    your reference.
    Due to security reasons i have to erase the server names:
    But when i add the line to extract the output ( -s "," -o "C:\DataSqlCmd.csv") It gives me this error:
    The exact command would be:
    sqlcmd -W -s , -S CINMLVSCOM01.e2klab.ge.com
    use operationsmanager
    Go
    "select Path, InstanceName, SampleValue 
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < '20' and CounterName='% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled" -s "," -o "C:\DataSqlCmd.csv" -h-1
    Go
    saying the syntax is not correct or some thing as per the below screenshot.
    Can any one please help. Below is just the query whi i use to get the output in SQL management studio.
    Can any one make a command for the below quer so i can directly execute and test for getting the output.
    select Path, InstanceName, SampleValue 
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < '20' and CounterName='% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled
    Gautam.75801

    Can you try the below query?
    select Path, InstanceName, SampleValue
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < 20 and CounterName like '% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled
    -- replace the below query part in the below SQLCMD C:\>SQLCMD -S SERVERNAME -E -d operationsmanager -Q "select * from sys.databases ds with (nolock) where name='master'" -s "," -o "F:\PowerSQL\MyData.csv" -h -1
    SQLCMD -S SERVERNAME -E -d OperationsManager -Q "select Path, InstanceName, SampleValue
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < '20' and CounterName='% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled" -s "," -o "c:\MyData.csv" -h -1
    Refer for the other ways 
    http://dba.stackexchange.com/questions/23566/writing-select-result-to-a-csv-file
    --Prashanth

  • How to print pdf file in SQL Server Reporting services report using command prompt?

    Is there a way to automatically print a SQL Server Reporting services report on command prompt? For eg: We can save a pdf file using rs.exe utility. I want to print a pdf using rs.exe utility. Is it possible? I don't want to install any 3rd party software.

    Thanks Simon for replying to my question.
    In oracle form, there is oracle command to print the report from command prompt with the help of rwrun.exe
    e.g: rwrun.exe   REPORT="D:\Test\REP_25\MLA.REP" DESNAME="testprinter" DESTYPE="PRINTER" P_FORMNAME="MLA.FMX" P_SPRACHE="E" P_SPRACHE_NR2="1" P_WHERE_BEDINGUNG="order by land_nr" USERID="test/test.world" PSV_NAME="PSV_DEMO" PSV_JOB_ID="PS$9583" RECURSIVE_LOAD="NO"
    BATCH="YES" NONBLOCKSQL="NO" ARRAYSIZE="1" PARAMFORM="NO" ERRFILE="c:\temp\psv16.tmp"<
    and to save the report we just need to change DESNAME="c:\temp\OC_100001349.pdf" DESTYPE="FILE" in above command instead of DESNAME="testprinter" DESTYPE="PRINTER".
    DESNAME and DESTYPE are the input parameters of the respective report.
    In SSRS, we can run the file from the command prompt and save it.
    rs -i "C:\Users\pujarswa\Documents\reports\new\LoadReport.rss" -s ww2004760:80/ReportServer_MSSQL -v fileName="C:\Users\pujarswa\Desktop\TipsReportLoad.pdf"
    -v reportPath="/TipsReport/LoadListTabular" -t -v format="PDF" -v LandNr=4 -u ap\swati -p test@# -e Exec2005
    But we cannot use same command for printing as you said we need to create another script for printing files.
    I have gone through the links but I dont want to use Adobe Acrobat Reader exe for printing because client it may not have Adobe Acrobat Reader on their machine.
    Also I want to pass a input parameter as type="Printer" to my report which will print directly for me and same I can acheive in command prompt passing type="Printer" fileName="C:\Users\pujarswa\Desktop\TipsReportLoad.pdf"

  • Not able to start managed server from command prompt

    Hi,
    I am trying to start manged server from command prompt. The command i am using is as follows:
    startManagedWebLogic.cmd MS1 [http://]&lt;Listen_Address&gt;:&lt;Admin_port&gt;
    Where MS1 is the name of my managed server.
    But i am getting following exceptions:
    There are 1 nested errors:
    weblogic.management.ManagementException: Unable to obtain lock on C:\bea\user_pr
    ojects\domains\PB530Domain\servers\AdminServer\tmp\AdminServer.lok. Server may a
    lready be running
    at weblogic.management.internal.ServerLocks.getServerLock(ServerLocks.ja
    va:159)
    at weblogic.management.internal.ServerLocks.getServerLock(ServerLocks.ja
    va:58)
    at weblogic.management.internal.DomainDirectoryService.start(DomainDirec
    toryService.java:73)
    at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesMan
    ager.java:459)
    at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServ
    icesManager.java:164)
    at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:711)
    at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:482)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:440)
    at weblogic.Server.main(Server.java:67)
    >
    <Feb 10, 2009 6:48:16 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server sta
    te changed to FAILED>
    <Feb 10, 2009 6:48:16 PM IST> <Error> <WebLogicServer> <BEA-000383> <A critical
    service failed. The server will shut itself down>
    <Feb 10, 2009 6:48:16 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server sta
    te changed to FORCE_SHUTTING_DOWN>
    Please help me to resolve this issue.
    thanks,
    Sonal
    Edited by: [email protected] on Feb 10, 2009 5:16 AM

    Looking at your error message a little closer, I don't believe it has anything to do with port conflicts but rather that even though you are executing the startManagedWeblogic.cmd with your managed server name (MS1), the error indicates that it is trying to start the Admin Server (not MS1). Note in your error message the following: Unable to obtain lock on C:\bea\user_pr
    ojects\domains\PB530Domain\servers\AdminServer\tmp\AdminServer.lok. Server may a
    lready be running
    It is saying that it cannot start the Admin Server because it is already running (which is probably true in your case). Have you made any changes to the startManagedWeblogic.cmd or the startWeblogic.cmd scripts? I would start debugging there and try to figure out why the script is trying to start your admin server instead of MS1 as you requested on the cmd line.

  • VM Server 2.2.1 & 11gR2 RAC ... How to get ASM command prompt?

    Hi,
    I am using Oracle VM Server 2.2.1, and two database instances
    created by the Oracle 11gR2 RAC template?
    My memory seems to have slipped. How do I get to the ASM command prompt?
    What ORACLE_HOME do I set?
    What ORACLE_SID do I use?
    What 'login words' do I use?
    Thank you.
    Andre M

    AIM wrote:
    Hi,
    I am using Oracle VM Server 2.2.1, and two database instances
    created by the Oracle 11gR2 RAC template?
    My memory seems to have slipped. How do I get to the ASM command prompt?
    What ORACLE_HOME do I set?
    What ORACLE_SID do I use?
    What 'login words' do I use?
    Thank you.
    Andre M
    Hi Andre,
    Starting from 11g you can use asmcmd or sqlplus to manage ASM. below is the example
    $ > export ORACLE_HOME=<your Grid infrastructure location>
    $ > export ORACLE_SID=+ASM1
    $ > sqlplus / as sysasm
    or
    $ > asmcmd
    Hope it helps
    Cheers

Maybe you are looking for

  • Not working in Japan!?!

    Called Verizon before I left on my trip and had the 100MB Global Data plan added to my  Razr Maxx.  When I first turned my phone on in Osaka I received a text from Verizon welcoming me to JPN and give me some basic dialing instruction for calling the

  • Selecting photo then clicking "Fit" does NOT turn off the Ken Burns effect.

    Trying to wean from iMovieHD.  I'm having trouble mastering what seems to be more limited Ken Burns effect functionality in iMovie11.   I don't seem to have the range, say, left-to-right, as I did in either iPhoto or in iMovie HD. So, I figured for n

  • How do I resize a graph?

    Hello, how do I resize a graph? From what I can see, I can only set its size when I create it? I guess I could Transform > Scale an existing graph - but I'd rather set a fixed width and height so I can keep the proportions right for when I import the

  • Air Execute Ant File

    Hi, I have a big big big problem. I want to execute an ant file (example: build.xml) from flex-air application, by clicking a button for example. Is there at least a way to make what I asking for? Tank you Marco

  • Turn off a single plot of a multiple plot waveform graph

    I have a multiple plot waveform graph (4 plots). I want to turn off one of the plots, say plot 2. Is this posible from the graphs property node? The property node seems to only give a reference to plot 0. I am using labview 7. Cheers, Wayne