Background processes of the app server

Hi,
  We had setup one app server & database server. We would like to restrict the users to use the same server which they are assigned to. Currently it's happening with the logon groups for dialog users. When ever something is getting executed in background it's occupying the other servers background work process also which we don't want to.
  Is there a way to control to use only that particular application server's processes when they are performing any activity or transaction running in the background.
Regards,
Krishna.

Check SAP  [Note 786412 - Determining execution server of jobs w/o target server|https://service.sap.com/sap/support/notes/786412]
The default server group has now been introduced (as of Basis Release 6.10) for these types of requirements.
Create a server group with the name 'SAP_DEFAULT_BTC' in transaction SM61 and assign the desired servers. As of now, the background jobs that do not have an execution goal are only executed on a (any) server that is included in the server group 'SAP_DEFAULT_BTC'.
Note that the 'SAP_DEFAULT_BTC' server group is analyzed at the start time of a job, but not at the definition time. This applies in general to background processing server groups.
Hope this helps.
Thanks,
Naveed
Edited by: Naveed Qureshi on Oct 11, 2010 11:41 AM

Similar Messages

  • ResultSet processed at the DB server or App Server???

    Well,
    If I have a ResultSet object that is fetched with a couple of records, where does the actual records stay???
    Are these records fetched into your App server, or they still are with your DB?? So, when I call "rs.next()", evidently does the App server need to fetch each and every record from the DB, if the latter is true??? If the former is true, how do you explain that the ResultSets and other related objects are scarce DB resources???
    Thx for your time.
    fun_one

    A ResultSet is a Java object, so it resides on the application server. A ResultSet is associated with a database cursor, which resides on the database server.
    When you open a cursor, i.e. execute a query, the database figures out which rows match the query. The database servers builds a data structure of some sort in its memory, containing the selected data. The data structure is...cough...don't ask me, I don't know. Must be fairly significant to allow for transaction isolation, sorting, joins, ... If you just do "select * from foo" without a "where" clause, the db server may get by with a simpler data structure.
    The database then sends the first, say, 10 rows to the application server. The db server also says, "here's the data on the newly opened cursor, and let's call this cursor #22."
    After the application server has looped 10 times in while(res.next()), res.next() says to the db server, "dude, I have this cursor, #22, send me more data on it." The db server sends the next batch of 10 rows. This repeats until all rows are processed, or you close the ResultSet (aka close the cursor).
    Closing the ResultSet tells the database server that it can release the data structure that holds the stuff in the cursor. If you don't close the cursor, the data structure needs to stay there, reserving memory, in case you rewind it and start reading it over.
    So, a ResultSet + cursor take space on both the application server and at the db server.
    The number of rows that are fetched at a time can be adjusted; see setFetchSize(). It's a tradeoff between the number of times a round trip has to be made, vs. the memory it takes to keep the 10 or whatever rows in memory before res.next() gets to them.
    All of this depends on how the db server and the JDBC driver are implemented, but I'd guess the above is a pretty typical way of doing it.

  • What's consuming the app server heap memory?

    Dear all,
    I keep getting the "java.lang.OutOfMemoryError: Java heap space" error in our environment, I tried to remove the BAM from the Jboss, and the error disappear for some times, but it appear again recently, while we only changed one line of script in one of the form. (i.e. I don't think the error is caused by changing code)
    So, I would like to know where can I find some information about how the memory is consumed in ALC? Because we only have 2 workflow running, although one of them is heavily used.
    Here some information about my environment.
    - ALC 8.2.1 with no sp
    - Using the default Jboss as app server
    - Using the default MySQL as Database
    - Only 2 workflow running
      - While 1 of them have around 4 - 8 request pre week
      - And the others will have around 60 - 80 request pre day (i.e. around 490 pre week)
    Here listed some points I think may affect the memory and I want to know for sure:
    1) Number of variable used in long-live process (i.e. More variable = more Memory used)
    2) Number of operation used in long-live process (i.e. More operation = more memory used)
    3) Number of track record of long-live process (i.e. More track record = more memory used)
    4) Long-lived process vs Short-lived process (i.e. Only long-lived process will keep consume memory because short-lived process will only load on call?)
    5) Number of long-lived process still running (i.e. If we send a assign task to notify the user the workflow have been approved, and the user never dismiss it, it will turn out to consume the app server memory because it is still in the running stage)
    6) Old version of the same long-lived process will use memory even no active workflow? (i.e. Because active long-live process will load up into memory?)
    Thanks in advance
    Regards
    Bill

    Did you tried to increase your heap size in jboss server . try this  and i think it will  help you in solving this problem .
    if u want  to know how to increase the heap size:
    go to bath of ur JBoss    "D:\Adobe\Adobe LiveCycle ES2\jboss\bin" as example.
    scond find the Run file and  open it in  Text File
    find a line  which is responsible for   heap size ==>>"set JAVA_HEAP_ARGS=-XX:PermSize=128m -XX:MaxPermSize=192m -Xms1024m -Xmx1024m"
    close it and restart the server again and test your problem.
    put ur line to be like what i wrote 1024 means that 1 giga for heap of jboss.
    if the problem still appear for  you then your Memory doesnot of because memory heap size

  • Finding the app server name

    Is there a way to find the app server name through peoplecode?
    The %appserver meta-html variable isn't available through peoplecode and looks like it only resolves when it is used as part of a page source (CNTL+J info page, for example). Our process server and app servers are different, and a user could be logged in through three different app servers. I'm hoping there is a way to get the equivalent of the %appserver meta-html sys variable.
    Thanks,
    Paul

    Hi
    Go to SAP Logon single click on your system and again single click at option change item..that will present at left side of your saplogon pad
    you will get all the information regarding that system on which you have clicke first.

  • When will Apple allow background processes for the iPhone?

    Can't find a suitable subforum so I'll post it here, please refer me to the correct Apple forum otherwise.
    When will Apple allow background processes for the iPhone?
    When will Apple allow Alerts from 3rd party apps?
    Even my first Palm Pilot allowed developers to use Alert beeps.
    Why is Apple crippling the iPhone?
    If they continue this, Android will be the winner.
    Or will the next SDK allow this?

    Background processing, simply won't. They already said they won't and explained why.
    However, they are currently adding "Push" ability to developers (soon). Originally they did say they were shooting for Sept (but obviously that has passed). Nobody can say "why" it is late or when it will come. Just know it is coming.
    Push in case you don't know will let a service (one service) run in the background that apple makes for the phone. that service will ping apple's servers. Apps that want to "run" in the background have to register with that service thus lets say AIM is on your phone, you send a message and close...somebody responds. AIM's servers will send notification to the push service...then the phone will alert you of a notification in the AIM app, you open (thus starts the app again) and it gets the message.

  • Create attachment of  a file stored on the app server for mail

    Hello All:
    I am working on sending a mail with attachemnts (file from the app server), i am aware of numerous solutions posted on the forum ....i am  able to create an attachment and send mail. the problem i am facing is the attachment is corrupted . can some one guide me as what i am ding wrong . here's the code
    DATA: REC(80) TYPE C.
        DATA: L_SIZE TYPE DRAO-ORLN.
        DATA: L_LINES TYPE I.
        DATA: L_DATA_TAB TYPE TABLE OF RCGREPFILE.
        DATA: L_DATA_TAB1 TYPE TABLE OF RCGREPFILE.
        DATA: L_DATA_WA TYPE RCGREPFILE.
        DATA: N_FILE TYPE RCGIEDIAL-IEFILE.
        P_FILE = '/usr/sap/MIE/SYS/global/PDFSpools/30978.pdf'.
        N_FILE = P_FILE.
        CONCATENATE 'C:temp' RQ2NAME '.pdf' INTO ELPATH.
    *   Read Data from the App server
        OPEN DATASET  P_FILE FOR INPUT IN BINARY MODE .
        DO.
          READ DATASET P_FILE INTO REC.
          IF SY-SUBRC NE 0.
            EXIT.
          ELSE.
            L_ANN = REC.
            APPEND  L_ANN TO T_PDF .
          ENDIF.
        ENDDO.
        CLOSE DATASET P_FILE.
    *   How do i get the filesize ?
        CLEAR L_ANN.
        DESCRIBE TABLE T_PDF LINES LIN_TEXT.
        LOOP AT T_PDF INTO L_ANN.
          APPEND L_ANN TO T_ANN.
        ENDLOOP.
    *    Using this i get the file size
    *    CALL FUNCTION 'C13Z_RAWDATA_READ'
    *      EXPORTING
    *        I_FILE           = N_FILE
    *      IMPORTING
    *        E_FILE_SIZE      = L_SIZE
    *        E_LINES          = L_LINES
    *      TABLES
    *        E_RCGREPFILE_TAB = L_DATA_TAB
    *      EXCEPTIONS
    *        NO_PERMISSION    = 1
    *        OPEN_FAILED      = 2
    *        OTHERS           = 3.
    *    CLEAR L_ANN.
    *    DESCRIBE TABLE L_DATA_TAB LINES LIN_TEXT.
    *    LOOP AT L_DATA_TAB INTO L_DATA_WA.
    *      L_ANN-LINE = L_DATA_WA-ORBLK.
    *      APPEND L_ANN TO T_ANN.
    *    ENDLOOP.
        DOC_CHNG-OBJ_NAME   = 'URGENT'.
        DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
        DOC_CHNG-OBJ_DESCR  = TEXTS.
        DOC_CHNG-SENSITIVTY = 'O'.
    *   DOC_CHNG-DOC_SIZE   = LIN_TEXT * 255.
        CLEAR OBJPACK-TRANSF_BIN.
        OBJPACK-HEAD_START = 1.
        OBJPACK-HEAD_NUM   = 0.
        OBJPACK-BODY_START = 1.
    *   OBJPACK-BODY_NUM   = LIN_TEXT.
        OBJPACK-DOC_TYPE   = 'RAW'.
        APPEND OBJPACK.
        NOMFITXER = ELPATH.
        CALL FUNCTION 'SPLIT_FILENAME'
          EXPORTING
            LONG_FILENAME  = NOMFITXER
          IMPORTING
            PURE_EXTENSION = EXTENSIO.
        OBJPACK-TRANSF_BIN = 'X'.
        OBJPACK-HEAD_START = 1.
        OBJPACK-HEAD_NUM   = 1.
        OBJPACK-BODY_START = 1.
        OBJPACK-BODY_NUM   = LIN_TEXT.
        OBJPACK-DOC_TYPE   = EXTENSIO.
        OBJPACK-OBJ_NAME   = RQ2NAME.
        CONCATENATE RQ2NAME EXTENSIO
          INTO NOMFITXER SEPARATED BY '.'.
        OBJPACK-OBJ_DESCR = NOMFITXER.
        OBJPACK-DOC_SIZE  = L_SIZE * 255.
        APPEND OBJPACK.
        CALL FUNCTION 'BAPI_USER_GET_DETAIL'
          EXPORTING
            USERNAME = SY-UNAME
          TABLES
            RETURN   = BAPIRETUR
            ADDSMTP  = DADESUSER.
        READ TABLE BAPIRETUR WITH KEY TYPE = 'E'.
        IF SY-SUBRC NE 4.
        ELSE.
          READ TABLE DADESUSER INDEX 1.
    *     REMITENT = DADESUSER-E_MAIL.
          REMITENT = SY-UNAME.
        ENDIF.
        TEXTS = 'TEST MAIL'.
        APPEND TEXTS.
        DESTINATARIS-RECEIVER   = SY-UNAME.
        DESTINATARIS-REC_TYPE   = 'B'.
        DESTINATARIS-EXPRESS    = 'X'.
    *   DESTINATARIS-COM_TYPE   = 'INT'.
    *   DESTINATARIS-NOTIF_DEL  = 'X'.
    *   DESTINATARIS-NOTIF_NDEL = 'X'.
        APPEND DESTINATARIS.
        CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
             DOCUMENT_DATA                    = DOC_CHNG
             PUT_IN_OUTBOX                    = 'X'
             SENDER_ADDRESS                   = REMITENT
    *        SENDER_ADDRESS_TYPE              = 'SMTP'
             COMMIT_WORK                      = ' '
           IMPORTING
             SENT_TO_ALL                      = ENVIAT
    *        NEW_OBJECT_ID                    =
    *        SENDER_ID                        =
           TABLES
             PACKING_LIST                     = OBJPACK
    *        OBJECT_HEADER                    =
             CONTENTS_BIN                     = T_ANN
             CONTENTS_TXT                     = TEXTS
    *        CONTENTS_HEX                     =
    *        OBJECT_PARA                      =
    *        OBJECT_PARB                      =
            RECEIVERS                        = DESTINATARIS
          EXCEPTIONS
            TOO_MANY_RECEIVERS               = 1
            DOCUMENT_NOT_SENT                = 2
            DOCUMENT_TYPE_NOT_EXIST          = 3
            OPERATION_NO_AUTHORIZATION       = 4
            PARAMETER_ERROR                  = 5
            X_ERROR                          = 6
            ENQUEUE_ERROR                    = 7
            OTHERS                           = 8.
    Message was edited by: Poornanand Mandalika. Code was formatted using the <b>Code</b> button!!

    Assuming you are using Apache?
    You could place your Word docs in the same folder as your current Apex images directory (or a sub-directory off it) then reference them with a URL of the form http://yourserver/i/sample_word_file.doc. Alternatively you could add a new Alias entry to your dads.conf file (found in your Apache/modplsql/conf directory) to expose the folder on your webserver that contains your Word files via a URL such as http://yourserver/word_docs/
    E.g.
    Alias /word_docs/ "c:\my_docs\technical_word_docs/"
    Andy

  • Error installing the App Server 10.1.2.0.3 Metadata Repo Creation Asst

    Hi,
    I have upgraded the Database from 10.2.0.1 to 10.2.0.4,
    ORACLE_HOME=D:\oracle\product\10.2.0\db_1
    but while installing the App Server 10.1.2.0.3 Metadata Repo Creation Asst, im encountered with (in the OUI 'Destination' is Name:OracleAS1, Path:C:\OraHome_1)
    "There was error while loading the libaray:rgsQueries
    1. Stop Installation of all products
    2. Stop installation of this component only.
    Any help would be great.
    Regards,
    - Sri

    Anybody there to help me on this....
    Regards,
    - Sri

  • Object failed to run due to an error while processing on the Job Server

    when i am scheduling a report ith email notification i am getting  below error
    error msg: Object failed to run due to an error while processing on the Job Server
    i have configured email notification in bo cmc and server also SMTP enabled. while scheduling report to ueser i am getting error and even mails are delivered to users as well.

    hi prithvi,
    i am able to schedule reports to other destinations and reports are delivered as per the requirement.
    i am able to telnet SMTP server from Adaptive job server machine on SMTP port.
    have to check errors on log file....
    @ COULD YOU  PLEASE LET ME KNOW USER CAN SEND A MAIL TO USER  IN SAME DOMAIN . WHILE SCHEDULING A REPORT AND AS OPTION AVAILABLE  IN 4.0 LAUNCH PAD CAN HE SEND A MAIL DIRECTLY  AFTER RUNNING REPORT.

  • Adobe LiveCycle ES 8.2 Installation Error can't configure the App Server from Config Manager

    Hello All-
    We are trying to install the Adobe LiveCycle ES 8.2 SP2 and we are getting some issues while configuring the Application Server from the Config Manager, not sure why are those showing up, we never had these issues before when we installed 8.0, please look at the lcm log and the screenshot I provided for the errors which we are getting.
    We are trying to configure the remote Application Server WebSphere on Linux from my machine which is on Windows and i made the target Application Server as WebSphere and target platform as linux when i initially installed the livecycle media.
    The LCM logs say it failed to run the jacl scripts in the LiveCycle root directory and we wonder why is it pointing for the target Application Server to the Application Server which resides on my machine rather than it should point to the one on server. I am not sure what's going on and we did exactly what we did for 8.0.
    Below are the environment details where we are trying to install.
    Adobe LiveCycle ES: 8.2 SP2
    Database: IBM DB2 9.1 FP4.
    JVM Version and Vendor: 1.5.0 IBM Corporation
    Application server: IBM WebSphere Application Server/6.1.0.19
    Operating System: Linux
    Hardware: x86 .
    Any help will be appreciated!
    Thanks-
    Karthik.

    Hi All,
    Even i was facing the same issue but i was able to resolve it.
    Although the earlier reply from karthik_chowdary was sent way back in 2008 and i think would have got resolved till now, but still the resolution which i have found is
    The port i was using on the app server conf screen was that of application server HTTP Port.
    But here in case of WebSphere ND, we need to use port specified in WAS UI > System administrator > Deployment manager > Ports
    Try using that by default it is 8879.
    And this resolved the issue.
    ~Hkin

  • HELP! The App server stopped working!

    Everything was fine then I started getting this when trying to run the applicaiton. Note that it keeps giving this same error message over and over until I stop the app server.
    I did notice that the context-root was missing in the domain.xml as mentioned, so I put it back, but that still did not help.
    Any ideas?
    Starting Sun Java System Application Server Platform Edition 8.0.0_01 (build b08-fcs) ...
    [#|2005-04-13T17:17:53.474-0500|WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.system.stream.err|_ThreadID=10;|java.util.logging.ErrorManager: 0: Error In getLogService  |#]
    java.util.logging.ErrorManager: 0: Error In getLogService java.util.logging.ErrorManager: 0: Error In getLogService
    recursive call into SystemOutandErrhandler
    java.lang.RuntimeException: recursivecall
         at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream.flush(SystemOutandErrHandler.java:189)
         at java.io.PrintStream.write(PrintStream.java:260)
         at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
         at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404)
         at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:115)
         at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:169)
         at java.io.PrintStream.write(PrintStream.java:305)
         at java.io.PrintStream.print(PrintStream.java:448)
         at java.io.PrintStream.println(PrintStream.java:585)
         at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingPrintStream.println(SystemOutandErrHandler.java:144)
         at java.util.logging.ErrorManager.error(ErrorManager.java:76)
         at com.sun.enterprise.server.logging.ServerLogManager.getLogService(ServerLogManager.java:284)
         at com.sun.enterprise.server.logging.FileandSyslogHandler.publish(FileandSyslogHandler.java:266)
         at java.util.logging.Logger.log(Logger.java:424)
         at java.util.logging.Logger.doLog(Logger.java:446)
         at java.util.logging.Logger.log(Logger.java:469)
         at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream.flush(SystemOutandErrHandler.java:198)
         at java.io.PrintStream.write(PrintStream.java:260)
         at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
         at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404)
         at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:115)
         at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:169)
         at java.io.PrintStream.write(PrintStream.java:305)
         at java.io.PrintStream.print(PrintStream.java:448)
         at java.io.PrintStream.println(PrintStream.java:585)
         at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingPrintStream.println(SystemOutandErrHandler.java:144)
         at java.util.logging.ErrorManager.error(ErrorManager.java:76)
         at com.sun.enterprise.server.logging.ServerLogManager.getLogService(ServerLogManager.java:284)
         at com.sun.enterprise.server.logging.ServerLogManager.reInitializeServerLoggers(ServerLogManager.java:468)
         at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:119)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:210)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:172)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    java.util.logging.ErrorManager: 0: Error In getLogService java.util.logging.ErrorManager: 0: Error In getLogService
    java.util.logging.ErrorManager: 0: Error In getLogService java.util.logging.ErrorManager: 0: Error In getLogService
    java.util.logging.ErrorManager: 0: Error In getLogService java.util.logging.ErrorManager: 0: Error In getLogService
    com.sun.enterprise.config.ConfigException: Error refreshing ConfigContext:C:\Sun\Creator\SunAppServer8\domains\creator\config\domain.xml
    cause: Failed to create the XML-DOM Document. Check your XML to make sure it is correct.
    Attribute "context-root" is required and must be specified for element type "web-module".
         at com.sun.enterprise.config.ConfigContextImpl.refresh(ConfigContextImpl.java:315)
         at com.sun.enterprise.config.ConfigContextImpl.refresh(ConfigContextImpl.java:397)
         at com.sun.enterprise.config.ConfigContextImpl.getRootConfigBean(ConfigContextImpl.java:192)
         at com.sun.enterprise.config.ConfigBeansFactory.getConfigBeanByXPath(ConfigBeansFactory.java:36)
         at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getServerBean(ServerBeansFactory.java:84)
         at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getConfigModel(ServerBeansFactory.java:57)
         at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getConfigBean(ServerBeansFactory.java:95)
         at com.sun.enterprise.server.logging.ServerLogManager.getLogService(ServerLogManager.java:281)
         at com.sun.enterprise.server.logging.FileandSyslogHandler.publish(FileandSyslogHandler.java:266)
         at java.util.logging.Logger.log(Logger.java:424)
         at java.util.logging.Logger.doLog(Logger.java:446)
         at java.util.logging.Logger.log(Logger.java:469)
         at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream.flush(SystemOutandErrHandler.java:198)
         at java.io.PrintStream.write(PrintStream.java:260)
         at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
         at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404)
         at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:115)
         at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:169)
         at java.io.PrintStream.write(PrintStream.java:305)
         at java.io.PrintStream.print(PrintStream.java:448)
         at java.io.PrintStream.println(PrintStream.java:585)
         at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingPrintStream.println(SystemOutandErrHandler.java:144)
         at java.util.logging.ErrorManager.error(ErrorManager.java:76)
         at com.sun.enterprise.server.logging.ServerLogManager.getLogService(ServerLogManager.java:284)
         at com.sun.enterprise.server.logging.ServerLogManager.reInitializeServerLoggers(ServerLogManager.java:468)
         at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:119)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:210)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:172)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    Caused by: org.netbeans.modules.schema2beans.Schema2BeansNestedException: Failed to create the XML-DOM Document. Check your XML to make sure it is correct.
    Attribute "context-root" is required and must be specified for element type "web-module".
         at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:718)
         at org.netbeans.modules.schema2beans.BaseBean.createGraph(BaseBean.java:2262)
         at com.sun.enterprise.config.ConfigContextImpl.refresh(ConfigContextImpl.java:293)
         ... 32 more
    Caused by: org.xml.sax.SAXParseException: Attribute "context-root" is required and must be specified for element type "web-module".
         at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:266)
         at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:206)
         at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:714)
         ... 34 more

    No, I did not modify the web.xml file. I did modify the applicationContext-jdbc.xml file though (Spring related) just before this started to happen.
    Also, I was adding some logic to the ApplicationBean just before the problem occured.

  • Running the App Server as a user other than root

    We used to use iPlanet Web Server which during installation allowed you to specify which user you wanted to run the Web Server. This was very good for security. How do you do this with the App server ?
    Thanks
    PS We are running it on Solaris 9.

    Application Server 7 expands on the flexibility offered in the web server.
    The most basic means to define app server instances with non-root users is to create an administrative domain (basically, an admin server instance) using the user ID of interest. As you create new application server instances in the admin domain, you can assign the same user ID to the instances.
    (There is an admin domain that is initially configured as part of the app server installation. If you installed the product as root, then the admin server and the initially configured app server instance are owned by root. If you do not want these instances to be owned by root, you should remove this admin domain and create a new one that is owned by a non-root user.)
    For example, with the following command, I've created a new app server config (an administrative domain) containing an admin server owned by user "ckamps":
    root@canteloupe-{}: asadmin create-domain sysuser ckamps adminuser admin adminpassword password adminport 5050 ckamps.domain3
    Created Domain ckamps.domain3 successfully
    root@canteloupe-{}:
    Then I create an app server instance within this admin domain:
    root@canteloupe-{}: asadmin create-instance domain ckamps.domain3 sysuser ckamps --instanceport 80 instance1
    Created Instance instance1 successfully
    Note the use of the "--sysuser" option to specify the user that owns both the admin domain as well as the app server instance.
    You can either use root to define the admin domain and the instances (in which case you need to specify the sysuser option to force a non-root ownership) or you can use a non-root user to define the admin domain and app server instances.  In the latter case, specification of the sysuser is not required.
    Since my instance is defined to listen on a privileged port, I'll need to set the "run as user" in the <instance-dir>/config/init.conf file (similar to magnus.conf in Sun ONE Web Server 6) AND ensure that I start the instance as root. Once the server instance starts up as root, it will automatically switch to the run as user.
    The "User" setting below is the "run as user" specified in the admin console's "Create new instance" wizard.
    <snip of init.conf>
    NetsiteRoot /usr/appserver
    ServerID instance3
    ServerName canteloupe
    PidLog /var/appserver/domains/ckamps.domain3/instance3/logs/pid
    User ckamps
    DNS off
    </snip>
    Alternatively, you can start up the newly defined admin server and create the new app server instance through the admin console.
    Hope this helps,
    Chris

  • CL_GUI_PDFVIEWER and files from the App server

    Hi,
    I would liek to use the class CL_GUI_PDFVIEWER  to read files from the app server (transaction AL11) and then to present them.
    it is easy to use the local machine files.
    how can I use the method open_document with a file from there?
    Thanks,
    Itay

    Thanks for the help.
    I tried what you suggested but I get a dump for some reason.
    Can you help?
    This is the dump:
    Exception condition "SYSTEM_FAILURE" raised.
         Program                                      SAPLOLEA                    
         Include                                      LOLEAU10                    
         Row                                          358                         
         Module type                                  (FUNCTION)                  
         Module Name                                  AC_FLUSH_CALL_INTERNAL      
    This is the program:
    REPORT zpdftest .
    DATA: g_html_viewer     TYPE REF TO cl_gui_html_viewer,
          my_main_container TYPE REF TO cl_gui_custom_container,
          entry1(100) TYPE c,
          entry2(100) TYPE c.
    DATA: okcode TYPE sy-ucomm,
          gt_pdf TYPE STANDARD TABLE OF string,
          wa_pdf TYPE string,
          g_url(2048)  TYPE c
    START-OF-SELECTION.
      SET SCREEN 100.
    *&      Module  pbo_0100  OUTPUT
    MODULE pbo_0100 OUTPUT.
      SET PF-STATUS 'STATUS100'.
      SET TITLEBAR  'TITLE100'.
      IF my_main_container IS INITIAL.
        CREATE OBJECT my_main_container
          EXPORTING
            container_name = 'CUSTOM_CNTL'
          EXCEPTIONS
            cntl_error     = 1
            OTHERS         = 2.
        CHECK sy-subrc IS INITIAL.
        CREATE OBJECT g_html_viewer
          EXPORTING
            parent             = my_main_container
          EXCEPTIONS
            cntl_error         = 1
            cntl_install_error = 2
            dp_install_error   = 3
            dp_error           = 4
            OTHERS             = 5
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        DATA: lv_filename TYPE rlgrap-filename.
        lv_filename = '/PBMGUS/UXA/ABAP/TEST.PDF'.
        OPEN DATASET lv_filename FOR INPUT
                     IN BINARY MODE
        WHILE sy-subrc IS INITIAL.
          READ DATASET  lv_filename  INTO wa_pdf.
          IF NOT sy-subrc IS INITIAL.
            EXIT.
          ENDIF.
          APPEND wa_pdf TO gt_pdf.
        ENDWHILE.
        CLOSE DATASET lv_filename.
        CALL METHOD g_html_viewer->load_data
          EXPORTING
            type                 = 'application'
            subtype              = 'pdf'
          IMPORTING
            assigned_url         = g_url
          CHANGING
            data_table           = gt_pdf
          EXCEPTIONS
            dp_invalid_parameter = 1
            dp_error_general     = 2
            cntl_error           = 3
            OTHERS               = 4
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        CALL METHOD g_html_viewer->show_url
          EXPORTING
            url                    = g_url
          EXCEPTIONS
            cntl_error             = 1
            cnht_error_not_allowed = 2
            cnht_error_parameter   = 3
            dp_error_general       = 4
            OTHERS                 = 5
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDIF.
    ENDMODULE.                 " pbo_0100  OUTPUT
    *&      Module  pai_0100  INPUT
    MODULE pai_0100 INPUT.
      CASE okcode.
        WHEN 'BACK'.
          LEAVE to screen 0.
        WHEN OTHERS.
          CALL METHOD cl_gui_cfw=>dispatch.
      ENDCASE.
      CLEAR okcode.
    ENDMODULE.                 " pai_0100  INPUT

  • [svn:bz-4.0.0_fixes] 16148: Update config testsuite on 4.0. 0_fixes branch to force kill the app server before running any tests when the app server is Tomcat .

    Revision: 16148
    Revision: 16148
    Author:   [email protected]
    Date:     2010-05-17 06:40:40 -0700 (Mon, 17 May 2010)
    Log Message:
    Update config testsuite on 4.0.0_fixes branch to force kill the app server before running any tests when the app server is Tomcat. The regression runs were hanging on this branch when going to run the config suite because the Tomcat server isn't shutting down cleanly at the end of the MXUnit run. I believe this is an issue with the version of ActiveMQ we are using. Since I don't think we want to update ActiveMQ on this branch force killing the Tomcat server will workaround the problem.
    Modified Paths:
        blazeds/branches/4.0.0_fixes/qa/apps/qa-regress/testsuites/config/build.xml

    Hi,
    Thanks for the reply. I have tried this on another machine running the same version of Blackboard. It works fine.
    Only difference is that the machine that has the JVM crash is running on Fujitsu PrimePower and the OS is Solaris 9 (but twigged for PrimePower).
    The one where it runs and starts up successfully is running on SunFire (OS is Solaris 10).
    I am wondering if there is a problem with the JVM loading required libraries because of the OS being different versions.
    Any leads on this is welcomed. Thank you.
    Regards,
    Hon Peng
    ===================
    On Fujitsu Primepower
    SunOS 5.9 Generic_118558-33 sun4us sparc FJSV,GPUS
    the Dependencies for libjvm.so are as follows:
    ===================
    bash-2.05$ ldd -r libjvm.so
    libsocket.so.1 => /usr/lib/libsocket.so.1
    libsched.so.1 => /usr/lib/libsched.so.1
    libdl.so.1 => /usr/lib/libdl.so.1
    libCrun.so.1 => /usr/lib/libCrun.so.1
    libm.so.1 => /usr/lib/libm.so.1
    libthread.so.1 => /usr/lib/libthread.so.1
    libc.so.1 => /usr/lib/libc.so.1
    libnsl.so.1 => /usr/lib/libnsl.so.1
    libmp.so.2 => /usr/lib/libmp.so.2
    /usr/platform/FJSV,GPUS/lib/libc_psr.so.1
    =====================================
    On SunFire, Sun machine
    SunOS 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire-280R
    the dependencies are different for the libjvm.so:
    =====================================
    bash-2.05$ ldd -r libjvm.so
    libsocket.so.1 => /lib/libsocket.so.1
    libsched.so.1 => /usr/lib/libsched.so.1
    libdl.so.1 => /lib/libdl.so.1
    libCrun.so.1 => /usr/lib/libCrun.so.1
    libm.so.1 => /lib/libm.so.1
    libthread.so.1 => /lib/libthread.so.1
    libc.so.1 => /lib/libc.so.1
    libnsl.so.1 => /lib/libnsl.so.1
    libmp.so.2 => /lib/libmp.so.2
    libmd5.so.1 => /lib/libmd5.so.1
    libscf.so.1 => /lib/libscf.so.1
    libdoor.so.1 => /lib/libdoor.so.1
    libuutil.so.1 => /lib/libuutil.so.1
    /platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
    libm.so.2 => /lib/libm.so.2
    /platform/SUNW,Sun-Fire-280R/lib/libmd5_psr.so.1

  • On installation of the app server, was asked for a key that is supposed to come with the welcome letter. How do I get a welcome letter?

    I bought the Solaris 9 media which brought the iPlanet servers. When installing the app server, I was asked for a key in a welcome letter. I don't seem to have one. How can I get the key to install the servers

    No matter how many times you ask this question, the answer is going to be the same.
    You can submit feedback to Apple here:
    http://www.apple.com/feedback

  • How to make the App Server Listen for HTTPS

    I have a web application that needs to be accesible over an HTTPS connection, not HTTP.
    When I deploy an application with Java Studio Creator to the App Server it is automatically set to an HTTP URL. How do I setup HTTPS ?
    Thank you in advance,
    Joe Paladin

    Looks like I should have thanked myself in advance....
    Turns out its pretty easy. Open the admin console, go to configuration, add and HTTP listener, check the security check box, and fill out the other mandatory fields like the port. Standard SSL port is 443.
    Save changes, and restart the App Server. Any deployed apps should be reachable via https://localhost:443/myWebApp
    This approach uses a default certificate that comes with the app server. Here is a link if you want to create a certificate :
    http://java.sun.com/developer/technicalArticles/WebServices/appserv8-1.html
    Joe Paladin

Maybe you are looking for