SMF & legacy rc svccfg properties

Hi,
-short version-
If indeed it does, then how and when does SMF import
legacy rc scripts to the repository, and how can you flush
them from the repository?
If SMF does not import rc scripts, why would moving a
start script from rc2.d to rc3.d not be correctly picked up
by /sbin/rc3? Are symbolically linked rc scripts, each
of which will have their own inode, open to wire-crossing
when run by lvscrun?
-long version-
I had understood that legacy rc*.d functionality was supported
by startd just kicking off any /sbin/rcN scripts as the appropriate
run level was reached. An FAQ somewhere says running init 2,
init 3, and so on should work fine: one needn't necessarily use svcadm -m multi-user.
But then I installed a 3rd-party app (Business Objects), the installer
of which dumped traditional scripts into init.d and rc*.d: an Sscript
and a in Kscript in rc2.d, nothing in rc3.d, and Kscripts everywhere below, using symlinks. A bit odd.
I only spotted this after rebooting, so I moved the Sscript to
rc3. This only ever runs as a Kscript at boot time or as a
result of init 3, but works fine as a start script when run manually.
Scratching my head, I wrote a wee wrapper Sscript in
rc3.d to call the real Sscript in the same directory. This
does cause the real Sscript to be called as a start script
at boot time. The relative orderings of the scripts do not matter.
This made no sense, so I had a look at SMF
svc:> select smf/legacy_run
svc:/smf/legacy_run> listprop
<snip>
rc3_d_S99BobjEnterprise110 framework NONPERSISTENT
rc3_d_S99BobjEnterprise110/contract count 81
rc3_d_S99BobjEnterprise110/inode count 1182
rc3_d_S99BobjEnterprise110/name astring /etc/rc3_d/S99BobjEnterprise110
rc3_d_S99BobjEnterprise110/state_timestamp time 1129192093.169780000
rc3_d_S99BobjEnterprise110/suffix astring BobjEnterprise110
The wrapper script is not listed under legacy_run, but the
original start script is.
The real solution, I know, is to write a manifest, and I ended up
doing that.
But how was the wrapper being run if SMF didn't know about it?
Are there svccfg commands to wipe out legacy entries, or is
editing/deleting/moving the original rc scripts enough?
From reading the comments in
http://cvs.opensolaris.org/source/xref/usr/src/cmd/svc/lsvcrun/lsvcrun.c
It seems the fact that the rc scripts were symbolic links might have
broken some of inode checks. Is that along the right lines?
I'm no C programmer...
Thank you for reading this far! :-)
cheers,
kidari

<snipped explanation: thank you for that!>
If I understand correctly, your problem is that at
first S99BobjEnterprise110 was not being run on boot,
but when you added a script which called it, it did
run and lsvcrun created a property group for
S99BobjEnterprise110. That does seem odd, since I'd
expect lsvcrun to create a property group named for
your wrapper script. It's worse that that. S99BobjEnterprise110 in
rc3.d was being called with the argument 'stop',
and therefore running as a Kscript, at boot time
and by init 3.
I determined this by putting
echo "$0 : $*">/var/tmp/distart.`date`
very early in the script: the command-line
args were only ever stop, and $0 was only
ever K01objEnterprise110 at boot or init 3
When I ran the script manually with
a 'start' arg: then it worked fine.
That pointed me in the direction of SMF
being confused by my having moved
S99BobjEnterprise110 from rc2 .d to 3.
The first place to look for
problems with lsvcrun is
/var/svc/log/milestone-{single-user,multi-user,multi-u
ser-server}:default.log, since that's where any
errors will be logged to. If they aren't
informative, then I'd try putting debug code in your
scripts and possibly /sbin/rc3.Right, I'll keep digging -- thank you for the help.
I'm reluctant to break everything again to reproduce
the error, now there's a manifest and all, but we'll
see....
Thanks again.

Similar Messages

  • How to define SC-2043-SG in vi

    I am trying to get labVIEW to hold the setting of my SC-2043-SG
    accessory board in 8.2 using traditional DAQ.  I can define the
    accessory board (SC-2043-SG) in MAX but  when I  start up my
    vi  it does not  work  correctly , but if  I 
    define  the SC-2043-SG in MAX and then look at channels in the
    "test pannel" they are fine.  Once I do this I can then run my vi
    and it works fine.  How can I define my accessory board in the vi
    so I do not have to do it in Max, because if I shut the machine down or
    close the vi it will forget that the SC-2043-SG was ever defined as
    being attached to my PCI-6034E.

    Hi deepsnow,
    I have been looking at this issue, and I have a few things that you can try. 
    I assume that you are defining the SC-2043 SG by right-clicking on your 6034E under Traditional NI-DAQ (Legacy) Devices, selecting properties, and under the accessory tab selecting the SC-2043 SG.  Can you confirm this for me when you open the VI, the signal is not read properly, but if you open the test panel, and read the signal in the test panel, then go back to the VI it does reads properly?  
    It sounds like the Traditional NI-DAQ configuration is not saving properly.  This will occur if you do not have proper administrative rights to your computer. 
    In MAX, can you set up your SC-2043 SG accessory for your DAQ card and open test panel, and ensure that your VI is working correctly.  Then go to Tools>> Traditional NI-DAQ configuration>>Save configuration as.  Give it a file name and save it. 
    Next, go back to MAX and in the same menu, select Set Active Configuration.  Select the file that you just created.  Close MAX and re-open it and ensure that your accessory is still configured.  If you don’t have administrative rights to your computer, this configuration will not remain. If you do not have administrative rights can you get them.    
    If you are still running into problems, can you please provide me with the following information:
    What version of the NI-DAQ driver are you using, what OS are you using, is there any reason you are using traditional DAQ and not DAQmx, what Development System of LabVIEW do you have, i.e. Full, Professional...
    Also are you using an example VI to acquire the data or are you using a VI that you created from scratch.  If you are using a self-created VI, can you try and acquire this signal form a VI from Example finder (under help menu in LabVIEW). 
    Have a good evening
    Chris_K
    National Instruments
    Applications Engineer

  • Java client error - initPlugins NullPointerException

    I am writing my first java PAPI client and getting a NullPointerException when calling processService.createSession.
    I have included the following in my build classpath: ftlib.jar, ftpapi.jar, fuegocore.jar, Opta2000.jar
    And, I am including the following in the runtime classpath: fuegoclient-papi.jar, Opta2000.jar
    I get the following exception:
    {color:#ff0000}Exception in thread "main" java.lang.NullPointerException
    at fuego.boot.Loader.initPlugins(Loader.java:638)
    at fuego.boot.Loader.initPlugins(Loader.java:630)
    at fuego.papi.ProcessService.getFactory(ProcessService.java:660)
    at fuego.papi.ProcessService.create(ProcessService.java:429)
    at com.myco.papitest.Test1.main(Test1.java:23){color}
    The code I'm using looks like this:
    {color:#0000ff}Properties svcCfg = new Properties();
    svcCfg.setProperty(ProcessService.DIRECTORY_ID, "default");
    svcCfg.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE, "c:/bea/papi/conf/directory.properties");
    svcCfg.setProperty(ProcessService.DIRECTORY_PROPERTIES_URL, "jdbc:inetdae7://qasql:1433?database=ALBPM_FDI_1&tds9=false");
    svcCfg.setProperty(ProcessService.WORKING_FOLDER, "c:/temp");
    try {
    ProcessService processService = ProcessService.create(svcCfg);
    ProcessServiceSession session = processService.createSession("myusrname", "mypwd", "qafuego");
    session.close();
    processService.close();
    } catch (CommunicationException e) {
    System.out.println("Could not connect to Directory Service");
    e.printStackTrace();
    } catch (OperationException e) {
    System.out.println("Could not perform the requested operation");
    e.printStackTrace();
    {color}
    I've tried every combination of setting up the svcCfg properties I can think of with no luck so far.
    The current contents of c:/bea/papi/conf/directory.properties is:
    {color:#0000ff}provider.mssqlserver.anonymous-user=sa
    provider.mssqlserver.anonymous-password=mysapwd
    {color}
    Any advice would be greatl appreciated!
    Thanks,
    Todd
    Edited by: user10039463 on Feb 27, 2009 8:20 AM

    I would recommend including all libraries from bea/albpm5.7/enterprise/client/papi/lib on your classpath when running. If using the weblogic or websphere version the path is bea/albpm5.7/j2eewl/client/papi/lib

  • RPCBind not starting

    After jumpstarting one of our servers; I found that RPCBind was not running.
    When I reboot it on the console, I get the following messages:
    Mar 27 08:11:23 svc.startd[7]: svc:/network/rpc/bind:default: Method "/lib/svc/method/rpc-bind start" failed with exit status 96.
    [ network/rpc/bind:default misconfigured (see 'svcs -x' for details) ]If I run svc -x I get this:
    svc:/network/rpc/bind:default (RPC bindings)
    State: maintenance since Tue Mar 27 08:42:24 2007
    Reason: Start method exited with $SMF_EXIT_ERR_CONFIG.
       See: http://sun.com/msg/SMF-8000-KS
       See: rpcbind(1M)
       See: /var/svc/log/network-rpc-bind:default.log
    Impact: 13 dependent services are not running.  (Use -v for list.)I checked the log and saw the following error:
    [ Mar 27 08:29:54 Executing start method ("/lib/svc/method/rpc-bind start") ]
    svc.startd could not set context for method: chdir: No such file or directory
    [ Mar 27 08:29:54 Method "start" exited with status 96 ]For some reason the start method throws an error; but the website won't help solving the issue. Any ideas?
    Thanks.

    This is really just a wild guess, but check what working_directories you have set in the SMF by running:
    svccfg -s /network/rpc/bind listprop |grep -i working_dir
    .. on my systems it returns:
    start/working_directory astring :default
    stop/working_directory astring :default
    where :default is the default working directory, which is the homedirectory of the "root" user.
    .7/M.

  • When will 11gR2 be available for Solaris?

    It's been three weeks since the release so I'm curious if anyone knows of a date for when 11gR2 for Solaris will be released?
    Thanks!

    Hans Forbrich wrote:
    Solaris 8 is supported officially until March 2012
    Solaris 9 is supported officially until October 2014
    Oracle's policy has been to ensure all supported versions of an OS are treated the same at the time of an Oracle s/w release - if they are available, all features for an Oracle release will have been tested and, as far as feasible, will work the same with the exception of performance.
    I admire Oracle's consistency.
    I am saddened by people who seem to not accept that Oracle customers may be at a wide variety of supported versions of an OS and should be supported by Oracle product.You certainly have a respectable viewpoint.
    I personally was (and am) most saddened at no 11g release at all on the Solaris x86_64 platform. I sometimes wonder if that was political reasons rather than technical or straightforward business decisions.
    I generally think that for most Solaris customers moving to 11gR2 the business case would be overwhelming to move to Solaris 10 at the same time (exception might be a client only install). 11gR1 and lower are available to customers wishing to remain below Solaris 10.
    What moving to solaris 10 would give is the ability to ensure concentration was made to intergrate well with the Solaris SMF facility rather than a dual SMF/legacy approach; and I'm not sure Oracle can really put in the resources to support both well.
    I really dont think are in the upgrade catch-22 that used to occur (but I may be wrong here) .... for instance when Sun ultrasparcs needed Solaris 2.5/2.51 and that Oracle 7.1.4 was not supported on that release (7.1.4 was only supported to Solaris 2.4) . However 7.1.6.2 (which ws the terminal 7.1 release) would not run Oracle Forms 2.3 correctly for existing applications (it finally would (and would do so excellently) with a few patches but 7.1.6.2 had burnt a development DBA badly by that point, nd 7.3 was not an option as that was not compatible with forms 2.3). The upgrade plans for the E-Business Suite on a Sparc 1000 containing dev/test/prod on same Solaris 2.3 server were even more of a nightmare in that era.
    Edited by: bigdelboy on 24-Sep-2009 00:40:
    Having said that the main pain would probably be that some Solaris 8 / Solaris 9 servers out there may be tight for space on partitions containing root, /usr and /var and an upgrade to solaris 10 might require some shunting and shuffling. If overall server space is an issue then IMHO going to 11gR2 needs to be thought carefully anyway.
    Hans - you've made me feel guilty :_| ... I :x all of Solaris 2.4/2.51/2.6/8/9/10u3+

  • Syslogd and SMF properties

    I am using the 08/07 distribution of Solaris10 and I am trying to disable logging of remote messages to syslogd but it fails.
    First I tried setting the LOG_FROM_REMOTE to NO in +/etc/default/syslogd+ and restarting the daemon. The syslogd man page says that this should cause syslogd modify its config/log_from_remote SMF property, and at the same time comment out the /etc/default/syslogd LOG_FROM_REMOTE entry.
    None of these happened. The /etc/default/syslogd entry remains active, and the command +`svcprop -p config/log_from_remote svc:/system/system-log:default`+ returns true.
    Now, trying to set the property to false manually, using the command *'svccfg -s svc:/system/system-log:default addpropvalue config/log_from_remote false'*, also fails with the following error:
    svccfg: No such property group "config"+
    The next thing I tried confused me greately as listed properties for the syslogd service using two different commants produced two different outputs. See below:
    $svcprop svc:/system/system-log:default
    general/enabled boolean false
    general/action_authorization astring solaris.smf.manage.system-log
    general/entity_stability astring Unstable
    general/single_instance boolean true
    config/log_from_remote boolean true _<=== property exists_
    config/value_authorization astring solaris.smf.value.system-log
    milestone/entities fmri svc:/milestone/sysconfig
    milestone/grouping astring require_all
    milestone/restart_on astring none
    milestone/type astring service
    filesystem/entities fmri svc:/system/filesystem/local
    filesystem/grouping astring require_all
    filesystem/restart_on astring none
    filesystem/type astring service
    autofs/entities fmri svc:/system/filesystem/autofs
    autofs/grouping astring optional_all
    autofs/restart_on astring none
    autofs/type astring service
    name-services/entities fmri svc:/milestone/name-services
    name-services/grouping astring require_all
    name-services/restart_on astring none
    name-services/type astring service
    dependents/system-log_single-user fmri svc:/milestone/multi-user
    start/exec astring /lib/svc/method/system-log
    start/timeout_seconds count 600
    start/type astring method
    stop/exec astring :kill
    stop/timeout_seconds count 60
    stop/type astring method
    refresh/exec astring :kill\ -HUP
    refresh/timeout_seconds count 60
    refresh/type astring method
    tm_common_name/C ustring system\ log
    tm_man_syslogd/manpath astring /usr/share/man
    tm_man_syslogd/section astring 1M
    tm_man_syslogd/title astring syslogd
    restarter/logfile astring /var/svc/log/system-system-log:default.log
    restarter/contract count 95
    restarter/start_pid count 1075
    restarter/start_method_timestamp time 1199463071.956059000
    restarter/start_method_waitstatus integer 0
    restarter/auxiliary_state astring none
    restarter/next_state astring none
    restarter/state astring online
    restarter/state_timestamp time 1199463071.962706000
    restarter_actions/restart integer
    Now, using the scscfg command:
    $svccfg -s svc:/system/system-log:default listprop
    general framework
    general/enabled boolean true
    restarter framework NONPERSISTENT
    restarter/logfile astring /var/svc/log/system-system-log:default.log
    restarter/contract count 95
    restarter/start_pid count 1075
    restarter/start_method_timestamp time 1199463071.956059000
    restarter/start_method_waitstatus integer 0
    restarter/auxiliary_state astring none
    restarter/next_state astring none
    restarter/state astring online
    restarter/state_timestamp time 1199463071.962706000
    restarter_actions framework NONPERSISTENT
    restarter_actions/restart integer
    The output is totally different; and clearly the config/log_from_remote property is missing from here.
    Does anyone know what is wrong?
    Thanks.

    Hi i faced opposite problem - tried to turn on remote syslog on Solaris Dev Express (11).
    Correct command for me: svccfg -s svc:/system/system-log setprop config/log_from_remote=true
    Probably for You shoud be : svccfg -s svc:/system/system-log setprop config/log_from_remote=false
    it's a bit different syntax than yours.
    Good Luck.

  • How to enable TCP Wrappers with SMF services?

    I am using a site.xml file to enable/disable services during a Jumpstart configuration. This works great.
    However, I can't yet figure out how to configure the various properties of those services, such as enabling TCP Wrappers for a service. I can set the properties of a service and verify that they are set, but a "svccfg extract" does not capture that information.
    Is this a short coming of svccfg extract? Or are the properties of a service stored and configured elsewhere?

    That will work, as will any path underneath
    /var/svc/manifest.Got it working...Exported the inetd configuration, set tcp_wrappers to false, dropped inetd.xml into my jumpstart tree, jumped a box, and tcp_wrappers came up enabled by default for my inetd services!
    What is the difference between the /var/svcs/profile and /var/svcs manifest directory? Is profile for enabling/disabling services and manifest for service configuration?
    Does /var/svcs/profile/site.xml and /var/svcs/manifest/whatever.xml get read on every system boot? If not, what is the appropriate procedure to "reinitialize" smf if you want to change the existing behaviour by having it reread those files?
    Hmm. The defaults get written on the inetd serviceI believe, so exporting that would give you the
    fragment
    you want.It did, and I was able to accomplish what I needed to do.
    Sorry that it's such a slog in the meanwhile.Will there be something before FCS in a couple weeks?
    I can definetly see the managability and robustness of SMF. It's just going to take time to learn it, and documentation is needed for that.
    Thanks for all your help!

  • Solaris SMF configuration for Oracle CSS service

    Below is the code to create oracle CSS service with solaris SMF, it will create smf service with instance name as "default" where as i need to change it to "css"
    svc:/application/oracle/css:default
    change service instance name to
    svc:/application/oracle/css:css
    i don't know about smf and xml, can somebody help me to change css service name ?
    <?xml version="1.0"?>
    <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
    <!-- $Id: oracle-database-css.xml,v 1.4 2006/03/19 21:19:40 joomul Exp $
      The contents of this file are subject to the terms of the
      Common Development and Distribution License, Version 1.0 only
      (the "License").  You may not use this file except in compliance
      with the License.
      You can obtain a copy of the license at
       http://www.opensource.org/licenses/cddl1.php
      See the License for the specific language governing permissions and
      limitations under the License.
      Copyright 2005, 2006 Joost Mulders.
      This document contains a service definition for the
        Cluster Synchronization Services (CSS) process.
      This process is required for ASM and RAC. It should be started via smf(5)
      only for *non-RAC* systems. On RA clusters, this daemon is started via crs.
    -->
    <service_bundle type='manifest' name='oracle-database-css'>
    <service
      name='application/oracle/css'
      type='service'
      version='1'>
      <create_default_instance enabled='false' />
      <!-- CSS depends on multi-user. That takes care of details like filesystem -->
      <dependency
       name='multi-user'
       grouping='require_all'
       restart_on='error'
       type='service'>
       <service_fmri
        value='svc:/milestone/multi-user:default' />
      </dependency>
      <exec_method
       type='method'
       name='start'
       exec='$ORACLE_HOME/bin/ocssd'
       timeout_seconds='30' >
       <method_context>
        <method_credential
         user='oracle'
         group='dba'
         supp_groups=':default'
         privileges=':default'
         limit_privileges=':default' />
        <method_environment>
         <envvar name='ORACLE_HOME' value='/u01/app/oracle/product/10.2.0.1/asm_1' />
        </method_environment>
       </method_context>
      </exec_method>
      <exec_method
       type='method'
       name='stop'
       exec=':kill'
       timeout_seconds='60' >
       <method_context>
        <method_credential
         user='oracle'
         group='dba'
         supp_groups=':default'
         privileges=':default'
         limit_privileges=':default' />
        <method_environment>
         <envvar name='ORACLE_HOME' value='/u01/app/oracle/product/10.2.0.1/asm_1' />
        </method_environment>
       </method_context>
      </exec_method>
      <!-- ocssd.bin does not detach -->
      <property_group name='startd' type='framework'>
       <propval name='duration' type='astring' value='child' />
       <propval name='modify_authorization' type='astring'
        value='solaris.smf.manage.oracle.database' />
      </property_group>
      <property_group name='general' type='framework'>
       <propval name='modify_authorization' type='astring'
        value='solaris.smf.manage.oracle.database' />
       <propval name='action_authorization' type='astring'
        value='solaris.smf.manage.oracle.database' />
      </property_group>
      <stability value='Unstable' />
      <template>
       <common_name>
        <loctext xml:lang='C'>
         Oracle Cluster Synchronization Services (CSS)
        </loctext>
       </common_name>
       <documentation>
        <doc_link
         name='Intro to Oracle Clusterware and Oracle Real Application Clusters'
         uri='http://download-east.oracle.com/docs'/>
       </documentation>
      </template>
    </service>
    </service_bundle>Edited by: sachinonnet on Jan 12, 2010 2:01 AM

    Hi,
    i got the solution as below
    removed below line from service xml
    <create_default_instance enabled='false' />
    created another xml file for instance xml, where i specified the name of instance.
    <?xml version="1.0"?>
    <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
    <!-- $Id: oracle-database-instance.xml,v 1.12 2006/03/12 19:51:20 joost Exp $
      The contents of this file are subject to the terms of the
      Common Development and Distribution License, Version 1.0 only
      (the "License").  You may not use this file except in compliance
      with the License.
      You can obtain a copy of the license at
       http://www.opensource.org/licenses/cddl1.php
      See the License for the specific language governing permissions and
      limitations under the License.
      Copyright 2005,2006 Joost Mulders.
      This document contains a service definition for an Oracle database instance.
      It contains some instance specific variables like ORACLE_SID and ORACLE_HOME.
      These must be filled in below.
      Other -generic database- service properties are inherited from the parent
      service, 'application/oracle/database'.
      A database instance can be brought under SMF control by:
       * running /lib/svc/method/ora-smf autoimport
    *OR*
       * filling in the blanks (marked with '' or ':default') below
       * svccfg import <file>
    -->
    <service_bundle type='manifest' name='oracle-database-instance'>
    <service
      name='application/oracle/database'
      type='service'
      version='1'>
      <dependency name='oracle-asm' grouping='require_all' restart_on='none' type='service'>
        <service_fmri value='svc:/application/oracle/database:ASM' />
      </dependency>
      <!-- The SMF instance name MUST match the database instance -->
      <instance name='PDB' enabled='false'>
       <method_context
        working_directory='/u01/app/oracle/product/10.2.0.1/db'
        project=':default'
        resource_pool=':default'>
        <!--
          The credentials of the user with which the method is executed.
        -->
        <method_credential
         user='oracle'
         group='dba'
         supp_groups=':default'
         privileges=':default'
         limit_privileges=':default'/>
        <method_environment>
         <envvar name='ORACLE_SID' value='pdb' />
         <envvar name='ORACLE_HOME' value='/u01/app/oracle/product/10.2.0.1/db' />
        </method_environment>
       </method_context>
      <!--
       A generic options property group for this database.
       This property group has currently only one variable: instance_type.
       instance_type describes the type of database instance. It's value can be
       RDBMS or ASM. RDBMS denotes a classic database instance and ASM is a storage
       manager instance.
      -->
      <property_group name='options' type='application'>
       <stability value='External' />
       <propval name='instance_type' type='astring' value='RDBMS' />
       <propval name='modify_authorization' type='astring'
        value='solaris.smf.manage.oracle.database' />
      </property_group>
      </instance>
    </service>
    </service_bundle>

  • [svn] 3722: Bug: BLZ-260 - Error message for a legacy =3. 0 client poll failing against a =3.1 server is unclear

    Revision: 3722
    Author: [email protected]
    Date: 2008-10-17 14:04:59 -0700 (Fri, 17 Oct 2008)
    Log Message:
    Bug: BLZ-260 - Error message for a legacy <=3.0 client poll failing against a >=3.1 server is unclear
    QA: Yes
    Doc: No
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-260
    Modified Paths:
    blazeds/trunk/modules/common/src/flex/messaging/errors.properties
    blazeds/trunk/modules/core/src/flex/messaging/FlexSession.java
    blazeds/trunk/modules/core/src/flex/messaging/client/FlexClient.java

    your problem:
    Missing class: oracle.tip.adapter.jms.JmsManagedConnectionFactory
    Dependent class: oracle.tip.adapter.fw.wsdl.WSDLUtils
    Loader: oracle.bpel.common:10.1.3
    Code-Source: /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar
    Configuration: <code-source> in /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml
    It happens when server is custom installed, try to reinstall it as full version and problem should disappear otherwise your need another full installation to retrieve and replace orabpel.jar file from (or maybe more)

  • Service Management Facility (SMF) - Service Won't Go Online

    Hello All,
    I am new to this forum, but getting rather frustrated and thought I'd see if any of you could point me in the right direction.
    I have just loaded Solaris 10 on my local workstation and I'm trying to get it set up. I have a simple script that I did have set up in my Solaris 9 inittab file to respawn. This script essentially kept track of my filesystem size and sent me an email if any specified filesystem went over a defined limit. It worked great for me in my Sol9 environment.
    I have been trying to create a service (manifest?) for this same script, and I am clearly doing something wrong because when I import/enable the xml file, the service runs (I can see the process consistantly running, exiting, restarting), but the service state is offline.
    I confess, this is my first attempt at a service script...and I can't seem to find much on-line info about the values - I have essentially just copied bits and pieces from other service xml files.
    Please take a look and let me know if you see anything obviously wrong.
    # svccfg import fscheck.xml
    # svcs -a |grep fscheck
    offline* 12:53:25 svc:/site/fscheck:default
    # svcs -xv fscheck
    svc:/site/fscheck:default (?)
    State: offline since Tue Jul 24 12:53:25 2007
    Reason: Start method is running.
    See: http://sun.com/msg/SMF-8000-C4
    See: /var/svc/log/site-fscheck:default.log
    Impact: This service is not running.
    # ps -ef |grep fscheck
    root 3184 818 0 11:12:01 pts/4 0:00 tail -f site-fscheck:default.log
    root 3484 7 0 13:08:26 ? 0:00 /bin/ksh /lib/svc/method/fscheck
    Output of log file.
    [ Jul 24 12:56:25 Method "start" exited with status 0 ]
    [ Jul 24 12:56:25 Stopping because all processes in service exited. ]
    [ Jul 24 12:56:25 Executing stop method (null) ]
    [ Jul 24 12:56:25 Executing start method ("/lib/svc/method/fscheck") ]
    # svcs -l fscheck
    fmri svc:/site/fscheck:default
    enabled true
    state offline
    next_state online
    state_time Tue Jul 24 13:08:26 2007
    logfile /var/svc/log/site-fscheck:default.log
    restarter svc:/system/svc/restarter:default
    contract_id 214
    dependency require_all/none svc:/milestone/multi-user-server (online)
    # more fscheck.xml
    <?xml version="1.0"?>
    <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
    <service_bundle type='manifest' name='manifest:fscheck'>
    <service
    name='site/fscheck'
    type='service'
    version='1'>
    <create_default_instance enabled='true' />
    <single_instance />
    <dependency
    name='foo_opt'
    type='service'
    grouping='require_all'
    restart_on='none'>
    <service_fmri value='svc:/milestone/multi-user-server' />
    </dependency>
    <exec_method
    type='method'
    name='start'
    exec='/lib/svc/method/fscheck'
    timeout_seconds='0' >
    </exec_method>
    <exec_method
    type='method'
    name='stop'
    exec=':true'
    timeout_seconds='0' >
    </exec_method>
    <property_group name='startd' type='framework'>
    <propval name='duration' type='astring' value='wait' />
    </property_group>
    <stability value='Unstable' />
    </service>
    </service_bundle>

    It looks like your startup script is hanging somehow. Run a ps and grep the process of the startup script to see if it has any children. That may help you determine where it is getting stuck. If you can't find any children, edit that script and add checkmarks that write to a debug file. Things like:
    echo "checkpoint 1: `date` " >> /tmp/fscheck
    Or... now that I think about it.... did you simply put your script in place at:
    /lib/svc/method/fscheck ??
    If so, that's your problem. SVC expects the startup script to finish, and from there tracks the children.
    Put fscheck somewhere else, and make /lib/svc/method/fscheck a script that calls your fscheck as a background process.

  • Checkboxes in custom panels/boolean XMP properties

    I have a large and expanding collection of photos, the majority of which are either (a) gig photos or (b) photos of railway signalling. The latter include a 'legacy' collection of some 2,000 35mm slides which I am slowly but steadily digitising using a film scanner. I make a lot of use of Adobe Photoshop CS2.
    To assist in cataloguing my collections, I have created two custom XMP metadata panels, one for the gig photos and the other for the railway ones. I have installed both of these in the appropriate directory on my PC and they work very well, with the exception of the one small issue described below. Can anyone help me with that?
    As I built up my railway slide collection, I adopted a system of numbering and categorising the slides which I have now incorporated into my custom panel and its underlying XMP extension schema. One of the properties within my system is a boolean setting, so I incorporated this as a check_box control within the custom panel for the railway photos.
    What I am now finding, however, is that whenever I update the metadata of
    any image on my PC, the default value of false is inserted for this property regardless of whether or not I have set any of the other properties defined in the custom railway photo metadata panel. I would prefer for this property to remain unset unless I specifically set it via the dialogue box. Is there anything I can do to achieve this?
    For reference, the check box definition from my railway photo custom panel is:
    check_box(name: '$$$/RailwayPhotos/item=Substitution ',
    hotizontal: align_right, xmp_ns_prefix: 'RailPhoto',
    xmp_namespace: 'http://www.roscalen.com/RailwayPhotos/1.0/',
    xmp_path: 'substituted');
    TIA
    Adie

    OK, this is what I have done.
    The swf file is named generic.swf
    I made a text doc and put this path in the text
    C:\Users\Chyron\AppData\Roaming\Adobe\XMP\Custom File Info Panels\4.0\panels\Athletes (US)\bin\
    then saved it and renamed the .txt to .cfg and then created folders like you said above because they did not exist.
    and put the file there.
    C:\Users\chyron\AppData\Roaming\Macromedia\Flash Player\#Security\FlashPlayerTrust
    and still does not work

  • X Pro crashes when clicking Properties

    When I right-click on Properties on an object I get an "Adobe Acrobat has stopped working" error message and then Acrobat X Pro crashes. The PDF I'm working with is a legacy PDF is apparently created from CorelDRAW rendered in Acrobat 7 format. I'm trying to create a mailto hyperlink which allows the user to email the document. I have updated Acrobat X Pro as well as used the Repair function but to no avail. I am able perform this function on other PDFs that were created in InDesign, for example, but not these particular ones. Because I have 45 of these legacy PDFs, the origins which are probably lost to the organization, I would like to know how I can still accomplish my work.

    Hi travisc74509405,
    Could you please let me know what version of OS are you using.
    Also, let me know how much RAM and free hard disk space is available on your machine.
    What exact dot version of Acrobat X do you have? You might check for updates under the Help menu to use the latest patch i.e. 10.1.13
    Hope to hear from you.
    Regards,
    ~Anubha

  • Dynamic configuration of properties/descriptor files?

    Hello all,
    I am trying to use configuration files used in j2ee applications (property files, deployment descriptors) in a more dynamic manner. I have been searching for a suitable solution for some time now.
    I have come across the following syntax within a configuration or properties file in a legacy project that I am to maintain.
    <some-tag>
    <some-config value=${theVariable}/>
    </some-tag>
    Notice the JSTL-like syntax ${theVariable}
    The above code comes from an xreg config file, read at startup.
    I do not think that there is custom code that parses the file so that it is updated, but I think that this is a pretty cool mechanism for dynamic configuration of applications especially if the properties come from the shell environment variables and can be set at will, or from the java -D option.
    If anyone knows anything about this technique please respond to the present mail or to [email protected]
    thank you,
    Joe
    Joe

    Hi,
    I have very similar requirement, In my scenario I need to pick up files from 4 static locations and based on the file name and pick up type(file/ftp) I can find out the destination's connectivity information from a Cross-Referencing table(Based on MS-SQL Database table- I can get this using look API) in this table we maintaining more than 100 destinations(host/user_name/password etc).
    Now I need to set the connectivity information dynamically at runtime. I know this is not possible with Standard XI but does anyone thinks this is possible by any technical way using with XI.. Adapter Modules or Java Proxies?
    This is very Critical to win the war with other middleware tools. Please let me know your thoughts and comments...
    thanks,
    Laxman Molugu

  • JSC 2.1 ignores path properties in nbproject/project.properties ?

    Hi,
    I have to import a Netbeans 5.0 project into JSC 2.1 in order to use the JSF UI designer. The project has the Java BluePrints source structure with all folders external to the Netbeans project folder (because it was created with other tools in the past). It is a mix of legacy servlets, plain JSP and JSF pages.
    In Netbeans it was no problem to import the source tree by using the option "Web Application with Existing sources" from the project wizard and tweaking the pathes in nbproject/project.properties. In JSC this option does not exist. Also I cannot just move all the sources into a standard JSC project folder since it is a large project in a CVS repository. Also I cannot use softlinks since some people work on the project using Windows and some use Linux.
    So I tried to edit the path settings in nbproject/project.properties manually. Here are the relevant lines I changed from a default JSF project created by the JSC wizard I used to manually import the project into JSC:
    conf.dir=${file.reference.jsctest-src}/conf
    file.reference.jsctest-test=../../test
    file.reference.jsctest-web=../../web
    file.reference.jsctest-src=../../src
    jsf.pagebean.package=jsctest
    jsf.project.libraries.dir=lib   # <-- not sure what goes in here
    source.root=${file.reference.jsctest-src}
    src.dir=${file.reference.jsctest-src}/java
    test.src.dir=${file.reference.jsctest-test}
    web.docbase.dir=${file.reference.jsctest-web}The web.xml, faces-config.xml, ... etc. are all prepared for JSC. JSC seems to understand it and opens it correctly and list the external folders like Netbeans would. But when I try to add a new JSF UI based page I get a NullPointerException. From the message log:
    java.lang.reflect.UndeclaredThrowableException
         at $Proxy14.actionPerformed(Unknown Source)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
         at java.awt.Component.processMouseEvent(Component.java:5488)
    Caused by: java.lang.NullPointerException
         at com.sun.rave.api.jsf.project.ui.WebFormIterator.instantiate(WebFormIterator.java:131)
         at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:557)
         at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:396)
         at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:218)
         at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1425)
         at org.openide.WizardDescriptor.access$900(WizardDescriptor.java:63)
         at org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:1327)
    [catch] ... 67 moreWhen I look into the files view of the project I see that JSC recognizes the classes in the external source packages folder like Netbeans would. But it creates at the same time a non-existing folder named src below the JSC project folder which contaings an empty folder named "jsctest" (the default package name I selected for page beans).
    So it seems some part of JSC (the web designer?) ignores the path settings in nbproject/project.properties while others (the code from NB4.1?) does not. When I move all project sources into the JSC project folder in their standard location it works but as I wrote above doing that is not an option because CVS etc..
    Or do I have to set some additonal properties in the project for the designer? Or is there any other way to import such a legacy project to create new JSF pages with the designer (we cannot change all servlets / pages at once).
    Or is it just a bug in JSC 2.1 I should report? Or is it a unsupported feature JSC will never support?
    Thanks in advance,
    regards,
    Thomas

    Thanks for your answer.
    Unfortunately, as I described in my inital posting, it is not possible for me to do a refactoring of the source structure in Netbeans because the project is based on a CVS repository and I cannot change the pathes there for several reasons. The web folder and sources folder are outside of the Netbeans project folder anyway. I just thouhgt that JSC would read the pathes from the project.properties file like Netbeans but that doesn't seem to be the case.
    I guess we have to wait for the next JSC version or check out other options.
    Thanks anyway,
    Thomas

  • SMF environment variables not working

    I have a Glassfish application in SMF with the following manifest file. I am trying to set the JAVA_HOME to /usr/jdk/latest.
    svccfg -s svc:/application/SUNWappserver/domain1 setenv -m stop JAVA_HOME /usr/jdk/latest
    svccfg -s svc:/application/SUNWappserver/domain1 setenv -m start JAVA_HOME /usr/jdk/latest
    svcadm refresh svc:/application/SUNWappserver/domain1:default
    # svcs -av |grep appser
    online - 12:22:51 249170 svc:/application/SUNWappserver/domain1:default
    # svccfg -s svc:/application/SUNWappserver/domain1 listprop | grep JAVA
    start/environment astring JAVA_HOME=/usr/jdk/latest
    stop/environment astring JAVA_HOME=/usr/jdk/latest
    I have a default instance and the stop/start methods are not defined inside it. After the refresh and restart, I still don't see Java using the /usr/jdk/latest JDK. Does anyone know why?
    Do those variables need to be defined inside the "default1" instance? If so, how do I do that with svccfg?
    <service_bundle type="manifest"
    name="SUNWasu appserver services">
    <service name="application/SUNWappserver/domain1"
    version="1"
    type="service">
    <single_instance/>
    <exec_method type="method"
    name="start"
    exec="/usr/local/glassfish/bin/asadmin start-domain --user admin --passwordfile /usr/local/glassfish/passfile --domaindir /usr/local/glassfish/domains domain1"
    timeout_seconds="0">
    <method_context working_directory=":default">
    <method_credential user="root"
    group=":default"/>
    <!-- privileges="basic,net_privaddr" -->
    </method_context>
    <stability value="Evolving"/>
    </exec_method>
    <exec_method type="method"
    name="stop"
    exec="/usr/local/glassfish/bin/asadmin stop-domain --domaindir /usr/local/glassfish/domains domain1"
    timeout_seconds="0">
    <method_context working_directory=":default">
    <method_credential user="root"
    group=":default"/>
    </method_context>
    <stability value="Evolving"/>
    </exec_method>
    <instance name="default" enabled="false">
    <dependency
    name='network'
    grouping='require_all'
    restart_on='none'
    type='service'>
    <service_fmri value='svc:/milestone/network:default' />
    </dependency>
    <!-- for ZFS, we need this to state this dependency -->
    <dependency
    name='filesystem-local'
    grouping='require_all'
    restart_on='none'
    type='service'>
    <service_fmri value='svc:/system/filesystem/local:default' />
    </dependency>
    </instance>
    <stability value="Evolving"/>
    <template>
    <common_name>
    <loctext xml:lang="C"> Appserver Domain Administration Server </loctext>
    </common_name>
    <documentation>
    <manpage title="Appserver" section="1" manpath="/opt/SUNWappserver/appserver/man"/>
    </documentation>
    </template>
    </service>
    </service_bundle>

    You're right....... it worked.
    The Content Server is case sensitive and the documentation is wrong......
    Thanks!

Maybe you are looking for

  • Problem with control hints and date formatting

    Hi, I have a Date attribute with a control hint 'dd.MM.yyyy' in my EO. When the user browse through the data all date values have 4 digits. But when a lazy user changes a date value to e.g. 12.12.04, the new value is stored as 12.12.0004. This is cor

  • Oracle UCM - 10gR3 - NOE

    Hi, In our UCM deployment, the idea is to receive the notification of expiration for a particular documents exactly on 45th day, 30th day and 15th day before expiration date. The NOE query run at default time and the documents expiration time is also

  • How to use a KVM switch with my IMAC

    Have a new IMAC and wanting to use my KVM switch - is there a way to use it? Thanks,

  • How does one import Capture One 7.0 Pro files into Lightroom 5.3?

    I'm trying to import CR2 files from Capture One Pro 7.0 into Lightroom 5.3. I've done this before but this time around LR5 is not seeing the files yet I know they're there.

  • Opening Pdf or Word Documents

    I'd like to know if it's possible and how can i open a word document ou pdf inside flex