Deprecated value

Hi All,
I am using oracle 11g rel 2(test machine) on windows 7.I messed up with spfile and getting the following warning
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE instance started.
When i checked the alert log i found i have enabled SQL_TRACE.Then i have set the value for SQL_TRACE to false with scope=both.
when i restarted the instance i am getting the same error.Please find the alert log.
Please let me know where i am going wrong:
Sun Nov 07 19:09:36 2010
Shutting down instance (immediate)
Stopping background process SMCO
Shutting down instance: further logons disabled
Stopping background process QMNC
Sun Nov 07 19:09:38 2010
Stopping background process CJQ0
Stopping background process MMNL
Stopping background process MMON
License high water mark = 15
All dispatchers and shared servers shutdown
ALTER DATABASE CLOSE NORMAL
Sun Nov 07 19:09:46 2010
SMON: disabling tx recovery
SMON: disabling cache recovery
Sun Nov 07 19:09:47 2010
Shutting down archive processes
Archiving is disabled
Sun Nov 07 19:09:47 2010
ARCH shutting down
Sun Nov 07 19:09:47 2010
ARCH shutting down
Sun Nov 07 19:09:47 2010
ARCH shutting down
ARC1: Archival stopped
Sun Nov 07 19:09:47 2010
ARCH shutting down
ARC0: Archival stopped
ARC2: Archival stopped
ARC3: Archival stopped
Thread 1 closed at log sequence 40
Successful close of redo thread 1
Sun Nov 07 19:09:49 2010
Completed: ALTER DATABASE CLOSE NORMAL
ALTER DATABASE DISMOUNT
Completed: ALTER DATABASE DISMOUNT
ARCH: Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
ARCH: Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
Sun Nov 07 19:09:50 2010
Stopping background process VKTM:
Sun Nov 07 19:09:52 2010
Instance shutdown complete
Sun Nov 07 19:09:59 2010
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 3
Using LOG_ARCHIVE_DEST_1 parameter default value as USE_DB_RECOVERY_FILE_DEST
Autotune of undo retention is turned on.
IMODE=BR
ILAT =27
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options.
Using parameter settings in server-side spfile C:\APP\PRODUCT\11.2.0\DBHOME_1\DATABASE\SPFILEORCL.ORA
System parameters with non-default values:
processes = 150
sga_max_size = 1504M
shared_pool_size = 288M
large_pool_size = 16M
java_pool_size = 16M
streams_pool_size = 16M
sga_target = 0
memory_target = 0
control_files = "C:\APP\ORADATA\ORCL\CONTROL01.CTL"
control_files = "C:\APP\FLASH_RECOVERY_AREA\ORCL\CONTROL02.CTL"
db_block_size = 8192
db_cache_size = 1152M
sharedio_pool_size = 0
compatible = "11.2.0.0.0"
db_recovery_file_dest = "C:\app\flash_recovery_area"
db_recovery_file_dest_size= 3912M
undo_tablespace = "UNDOTBS1"
db_block_checking = "TRUE"
remote_login_passwordfile= "EXCLUSIVE"
db_domain = ""
dispatchers = "(PROTOCOL=TCP) (SERVICE=orclXDB)"
local_listener = "LISTENER_ORCL"
audit_file_dest = "C:\APP\ADMIN\ORCL\ADUMP"
audit_trail = "DB"
db_name = "orcl"
open_cursors = 300
sql_trace = FALSE
pga_aggregate_target = 560M
statistics_level = "TYPICAL"
diagnostic_dest = "C:\APP"
Deprecated system parameters with specified values:
sql_trace
End of deprecated system parameter listing
Sun Nov 07 19:09:59 2010
PMON started with pid=2, OS id=3824
Sun Nov 07 19:09:59 2010
VKTM started with pid=3, OS id=3636 at elevated priority
VKTM running at (10)millisec precision with DBRM quantum (100)ms
Sun Nov 07 19:09:59 2010
GEN0 started with pid=4, OS id=2032
Sun Nov 07 19:09:59 2010
DIAG started with pid=5, OS id=4572
Sun Nov 07 19:09:59 2010
DBRM started with pid=6, OS id=3308
Sun Nov 07 19:09:59 2010
PSP0 started with pid=7, OS id=1032
Sun Nov 07 19:09:59 2010
DIA0 started with pid=8, OS id=1988
Sun Nov 07 19:09:59 2010
MMAN started with pid=9, OS id=3980
Sun Nov 07 19:09:59 2010
DBW0 started with pid=10, OS id=5892
Sun Nov 07 19:09:59 2010
LGWR started with pid=11, OS id=3732
Sun Nov 07 19:09:59 2010
CKPT started with pid=12, OS id=5468
Sun Nov 07 19:09:59 2010
SMON started with pid=13, OS id=3200
Sun Nov 07 19:09:59 2010
RECO started with pid=14, OS id=5612
Sun Nov 07 19:09:59 2010
MMON started with pid=15, OS id=3292
Sun Nov 07 19:09:59 2010
MMNL started with pid=16, OS id=2416
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
starting up 1 shared server(s) ...
ORACLE_BASE from environment = C:\app
Sun Nov 07 19:09:59 2010
ALTER DATABASE MOUNT
Successful mount of redo thread 1, with mount id 1262265351
Allocated 15937344 bytes in shared pool for flashback generation buffer
Starting background process RVWR
Sun Nov 07 19:10:03 2010
RVWR started with pid=20, OS id=1260
Database mounted in Exclusive Mode
Lost write protection disabled
Completed: ALTER DATABASE MOUNT
Sun Nov 07 19:10:04 2010
ALTER DATABASE OPEN
LGWR: STARTING ARCH PROCESSES
Sun Nov 07 19:10:04 2010
ARC0 started with pid=21, OS id=5088
ARC0: Archival started
LGWR: STARTING ARCH PROCESSES COMPLETE
ARC0: STARTING ARCH PROCESSES
Sun Nov 07 19:10:05 2010
ARC1 started with pid=22, OS id=6044
Sun Nov 07 19:10:05 2010
ARC2 started with pid=23, OS id=3920
ARC1: Archival started
ARC2: Archival started
ARC2: Becoming the 'no FAL' ARCH
ARC2: Becoming the 'no SRL' ARCH
ARC1: Becoming the heartbeat ARCH
Thread 1 opened at log sequence 40
Current log# 1 seq# 40 mem# 0: C:\APP\ORADATA\ORCL\REDO01.LOG
Successful open of redo thread 1
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
SMON: enabling cache recovery
Successfully onlined Undo Tablespace 2.
Verifying file header compatibility for 11g tablespace encryption..
Verifying 11g file header compatibility for tablespace encryption completed
SMON: enabling tx recovery
Database Characterset is WE8MSWIN1252
Sun Nov 07 19:10:05 2010
ARC3 started with pid=24, OS id=5472
No Resource Manager plan active
ARC3: Archival started
ARC0: STARTING ARCH PROCESSES COMPLETE
Starting background process QMNC
Sun Nov 07 19:10:10 2010
QMNC started with pid=25, OS id=1228
Completed: ALTER DATABASE OPEN
Sun Nov 07 19:10:20 2010
Starting background process CJQ0
Sun Nov 07 19:10:20 2010
CJQ0 started with pid=30, OS id=880
Sun Nov 07 19:10:21 2010
db_recovery_file_dest_size of 3912 MB is 33.81% used. This is a
user-specified limit on the amount of space that will be used by this
database for recovery-related files, and does not reflect the amount of
space available in the underlying filesystem or ASM diskgroup.
Setting Resource Manager plan SCHEDULER[0x3009]:DEFAULT_MAINTENANCE_PLAN via scheduler window
Setting Resource Manager plan DEFAULT_MAINTENANCE_PLAN via parameter
Sun Nov 07 19:10:23 2010
Starting background process VKRM
Sun Nov 07 19:10:23 2010
VKRM started with pid=31, OS id=5944

Aman,
Please find the details:
orcl.__db_cache_size=1207959552
orcl.__java_pool_size=16777216
orcl.__large_pool_size=16777216
orcl.__oracle_base='C:\app'#ORACLE_BASE set from environment
orcl.__pga_aggregate_target=587202560
orcl.__sga_target=637534208
orcl.__shared_io_pool_size=0
orcl.__shared_pool_size=301989888
orcl.__streams_pool_size=16777216
*._shared_io_pool_size=0
*.audit_file_dest='C:\app\admin\orcl\adump'
*.audit_trail='DB'
*.compatible='11.2.0.0.0'
*.control_files='C:\APP\ORADATA\ORCL\CONTROL01.CTL','C:\APP\FLASH_RECOVERY_AREA\ORCL\CONTROL02.CTL'#Restore Controlfile
*.db_block_checking='TRUE'
*.db_block_size=8192
*.db_cache_size=1207959552
*.db_domain=''
*.db_name='orcl'
*.db_recovery_file_dest='C:\app\flash_recovery_area'
*.db_recovery_file_dest_size=4102029312
*.diagnostic_dest='C:\app'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
*.java_pool_size=16777216
*.large_pool_size=16777216
*.local_listener='LISTENER_ORCL'
*.memory_target=0
*.open_cursors=300
*.pga_aggregate_target=587202560
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_max_size=1572864000#internally adjusted
*.sga_target=0
*.shared_pool_size=301989888
*.sql_trace=FALSE
*.statistics_level='TYPICAL'
*.streams_pool_size=16777216
*.undo_tablespace='UNDOTBS1'
(Please let me know when is your book on RMAN getting released..can't wait)

Similar Messages

  • Deprecated value for migration

    Hi All,
    I have to migrate a database of version Oracle 8.1.7.4.0 to Oracle 10gR2.
    Can anyone is able to help me out for figuring out the Deprecated value which shoud be taken care from application prospective.For examplae if i will compile the procedure in new database environment it should not through any error related with datatype ...e.t.c.
    Thanks in advance.

    first check whether your application is compatible to 10g or not. if so, you can try an upgrade of test machine and check application connectivity. once done, do the same in production. almost all datatypes are still there in 10g also(excpet few, for them refer to 10g doc)

  • Obsolete and/or deprecated

    Hi there,
    I have recently installed Oracle 10g using DBCA. I then ran some scripts to utilise our internal application that runs on Oracle 9i. After shutting down the instance and restarting it, I get the following error:
    ORA-32004: obsolete and/or deprecated parameter(s) specified
    ORACLE instance started.
    Has anyone any ideas on how to locate this parameter? The alert log did not give me much info.
    Regards
    Ciara

    Thanks for that, the list of deprecated values are as follows. Do I simply set them to false/0 to get rid of the error on startup?
    NAME
    lock_name_space
    buffer_pool_keep
    buffer_pool_recycle
    max_commit_propagation_delay
    remote_archive_enable
    log_archive_start
    parallel_server
    parallel_server_instances
    fast_start_io_target
    logmnr_max_persistent_sessions
    serial_reuse
    NAME
    max_enabled_roles
    global_context_pool_size
    plsql_compiler_flags
    sql_trace
    parallel_automatic_tuning
    drs_start
    Regards
    Ciara

  • Depreciation value not shown under the tab 'posted value' in AW01N

    Dear experts
    I have in chart of depreciation US GAAP book(posted to G/L), local GAAP book(not posted), book to post difference of two GAAP(posted to G/L), and local tax book.
    In AW01N, the ordinary depreciation value is shown correctly for all books in the first tab 'planned values',
    But on the second tab 'posted values', depreciation value only shown for the US GAAP book.
    I'm thinking it maybe relavant with posting to G/L or not, that means only book with posting to G/L is shown with deprecation value on the second tab.
    But something strange is in another chart of deprecation, deprecation value is shown for US book, local book.
    Could someone comment how to control deprecation value shown or not on the second tab by local book?
    Best Regards,
    Nicole

    Hi,
    If you would have mentioned it as a "area post in real time" it will show you in the aw01n. If not, it will not show. Because, the tab specifies the posted values which means how much depreciation posted to GL.
    As you have put "area doesnot post" for the local book, it will not show the balance.
    Thanks,
    sravankumar

  • Program will run with errors, but not at all in a .jar file

    First off, here is my program right now:
    import java.io.*;
    import java.util.*;
    import javax.swing.JOptionPane;
    public class prune
        public static void main(String args[])
            String steamid="",time="";
            BufferedReader infile = null;
            BufferedWriter outfile = null;
            FileReader fr = null;
            FileWriter wr = null;
            StringTokenizer strtk = null;
            String line = null;
         JOptionPane.showMessageDialog
          (null, "Vault.ini Pruner v2");
         String filepath = JOptionPane.showInputDialog("Enter the filepath to your vault.ini file.");
         String strdeletenumber = JOptionPane.showInputDialog("Enter the number that vault entries under will be deleted");
         int deletenumber = Integer.parseInt(strdeletenumber);
            try
                infile = new BufferedReader(new FileReader(filepath));
                outfile = new BufferedWriter(new FileWriter(filepath));
            catch(IOException ioe)
                JOptionPane.showMessageDialog
          (null, "Can't open vault.ini:" + ioe);
            try
                while((line=infile.readLine())!=null)
                    strtk = new StringTokenizer(line);
                    steamid = strtk.nextToken();
                    time = strtk.nextToken();
                    if(Integer.parseInt(time)>=deletenumber)
                        outfile.write(steamid);
                        outfile.write(" ");
                        outfile.write(time);
                        outfile.newLine();
            catch(IOException ioe)
                JOptionPane.showMessageDialog
          (null, "Error:" + ioe);
            try
                outfile.close();
                infile.close();
            catch(IOException ioe)
               JOptionPane.showMessageDialog
          (null, "Error:" + ioe);
                System.exit(0);
    }The program is supposed to open a vault.ini file and delete entries with a number lower than specified.
    Vault files are set up like this:
    STEAMID:X:XXXX 100000
    Right now if I run the program through command prompt it erases both the vault.ini and new vault.ini. I am also trying to put it in an executable jar file and when I do that I get a "Failed to load main class manifest attribute" error. Any ideas on what is causing this?

    I don't know what is happening. I put your exact code into a small build environment and used a build file for ant that I have and it works just fine. Manifest files are a total pain which is why I use a tool to generate it. I know that the last line has to be blank and that no line can be over a certain length.
    You've now spent several days avoiding ant and I got it running with ant in about 3 minutes. I'm really missing something.
    For reference, the build file is below should you change your mind. Put your prune.java in a new directory named "src" and save this file below as build.xml in the parent directory of "src". Run the program with java -jar lib/prune.jar
    <project name="jartest" default="main" basedir=".">
    <!-- location properties -->
        <property name="src.dir" location="src" />
        <property name="dest.classes.dir" location="classes" />
        <property name="dest.lib.dir" location="lib" />
    <!-- value properties -->
        <property name="dest.lib.name" value="prune.jar" />
        <property name="main.class" value="prune" />
    <!-- compile time value properties -->
        <property name="compile.debug" value="true" />
        <property name="compile.optimize" value="false" />
        <property name="compile.deprecation" value="true" />
        <property name="compile.source" value="1.4"/>
        <property name="compile.target" value="1.4"/>
    <!-- build -->
        <target name="main" depends="compile,jar" />
        <target name="compile">
            <mkdir dir="${dest.classes.dir}"/>
            <mkdir dir="${dest.lib.dir}"/>
            <javac srcdir="${src.dir}"
                         destdir="${dest.classes.dir}"
                         debug="${compile.debug}"
                         deprecation="${compile.deprecation}"
                         optimize="${compile.optimize}"
                         source="${compile.source}"
                         target="${compile.target}" >
            </javac>
        </target>
    <!-- clean -->
        <target name="clean">
            <delete dir="${dest.classes.dir}"/>
            <delete dir="${dest.lib.dir}"/>
        </target>
    <!-- jar -->
        <target name="jar" depends="compile">
            <jar destfile="${dest.lib.dir}/${dest.lib.name}"
                    basedir="${dest.classes.dir}">
                <manifest>
                    <attribute name="Built-By" value="${user.name}"/>
                    <attribute name="Main-Class" value="${main.class}" />
                </manifest>
            </jar>
        </target>
    </project>

  • Creating And Deploying A JWSDP Web Service Client to Weblogic 8.1

    This setup produces an EAR containing a message driven bean in a jar file. When the MDB receives a message
    it checks to see if there is any data in a database table and if so calls the web service with that data. These instructions
    are for MS-Windows environments.
    In my setup I have:
    the weblogic domain at c:\b2b80
    the jwsdp at c:\apps\jwsdp-1.3
    extra jar files for the app server in c:\b2b80\lib
    the main weblogic installation at c:\apps\weblogic810\
    1> Download the the JWSDP version you wish to use and install it. (In this example I'm using 1.3)
    2> Create a project structure for you client like this:
         /project
              /earbuild
                   /META-INF
              /ejbbuild
                   /META-INF
              /ejbsource
              /wssource
    3> in the /project directory you will need a build.xml file that looks something like this: (the ant build targets are described at the end of this document)
    ==============================================================
    <?xml version="1.0"?>
    <project name="svcowner" default="buildall" basedir=".">
         <property file="classpath.settings"/>
         <property name="wssource" value="wssource"/>
         <property name="ejbsource" value="ejbsource"/>
         <property name="compileejbdest" value="ejbbuild"/>
         <property name="earbuilddest" value="earbuild"/>
         <property name="jarfilename" value="svcownerejb.jar"/>
         <property name="earfilename" value="svcowner.ear"/>
         <property name="debug" value="true"/>
         <property name="deprecation" value="true"/>
         <!-- this runs the create.bat which has all of the wscompile parameters -->
         <target name="cmdline_wscompile">
              <exec executable="wssource/create.bat"/>
         </target>
         <target name="compileejb" depends="cmdline_wscompile">
              <javac debug="${debug}" srcdir="${wssource}" classpath="${BUILD_CLASSPATH}"
                   destdir="${compileejbdest}" includes="**/*.java" deprecation="${deprecation}"/>
              <javac debug="${debug}" srcdir="${ejbsource}" classpath="${BUILD_CLASSPATH}"
                   destdir="${compileejbdest}" includes="**/*.java" deprecation="${deprecation}"/>
         </target>
         <target name="buildejbjar" depends="compileejb">
              <jar jarfile="${earbuilddest}/${jarfilename}" manifest="${compileejbdest}/META-INF/MANIFEST.txt">
                   <fileset dir="${compileejbdest}">
                        <include name="**/*.*"/>
                   </fileset>
              </jar>
         </target>
         <target name="buildear" depends="buildejbjar">
              <jar jarfile="${earfilename}">
                   <fileset dir="${earbuilddest}">
                        <include name="**/*.*"/>
                   </fileset>
              </jar>
         </target>
         <target name="deploy">
              <copy file="${earfilename}" todir="../../config/domain/applications"/>
         </target>
         <target name="buildall" description="build everything" depends="buildear, deploy">
         </target>
    </project>
    ==============================================================
    4> You need a matching classpath.settings file in the same directory, something like this:
    ==============================================================
    BUILD_CLASSPATH=/b2b80/lib/saaj-impl.jar;/b2b80/lib/saaj-api.jar;/b2b80/lib/jaxrpc-api.jar;/b2b80/lib/jaxrpc-impl.jar;c:/b2b80/lib/jaxrpc-spi.jar/b2b80/classes/;/b2b80/classes;/apps/weblogic810/server/lib/weblogic.jar;/apps/weblogic810/server/lib/weblogic_sp.jar;/apps/weblogic810/server/lib/xmlx.jar;/apps/weblogic810/server/ext/weblogic-tags.jar;/apps/weblogic810/server/ext/jdbc/oracle/920/ojdbc14_g.jar;/b2b80/lib/log4j.jar
    ==============================================================
    5> In the /project/earbuild/META-INF directory you need an application.xml file:
    ==============================================================
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN' 'http://java.sun.com/j2ee/dtds/application_1_2.dtd'>
    <application>
    <display-name>svcownerb2b</display-name>
    <description>Application description</description>
    <module>
    <ejb>svcownerejb.jar</ejb>
    </module>
    </application>
    ==============================================================
    6> The /project/ejbsource directory contains the source for the client application. In my case this is a message driven bean (note that code below isn't complete). The most important part of the code below is the setting of the javax.xml.soap.MessageFactory system property.
    System.getProperties().put("javax.xml.soap.MessageFactory","com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl");
    If you don't do this a weblogic class will be used and the code will fail.
    ==============================================================
    package com.svcclient.ejb.svcownershipment;
    import java.text.*;
    import java.io.*;
    import java.sql.*;
    import java.util.Properties;
    import javax.ejb.*;
    import javax.jms.*;
    import javax.naming.*;
    import javax.sql.DataSource;
    import com.svcclient.util.*;
    import org.w3c.dom.*;
    import com.svcclient.websvc.svcowner.*;
    import javax.xml.rpc.Stub;
    public class SvcOwnerShipmentSubscriberMDB implements MessageDrivenBean, MessageListener
    private transient MessageDrivenContext mdc = null;
    private static Context context;
    private final static String CLASSNAME = "SvcOwnerShipmentSubscriberMDB";
    private String DATASOURCE_JNDI = "svcclient.b2b";
    private static DataSource mDS = null;
    private SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
    public SvcOwnerShipmentSubscriberMDB()
    System.getProperties().put("javax.xml.soap.MessageFactory","com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl");
    try
    if (context == null)
    context = new InitialContext() ;
    if (mDS == null)
    mDS = (DataSource)context.lookup(DATASOURCE_JNDI);
    catch (NamingException ex)
    ex.printStackTrace();
    catch(Exception ex)
    ex.printStackTrace();
    public void onMessage(javax.jms.Message message)
    TextMessage msg = null;
    String ordernumber = null;
    String lineid = null;
    try
    if (message instanceof TextMessage)
    msg = (TextMessage) message;
    ordernumber = msg.getStringProperty("ordernumber");
                   // the JMS message contains a property that is an order number
    createAndSendXML(ordernumber);
    catch (Throwable ex)
    ex.printStackTrace();
    private void createAndSendXML(String ordernumber)
    if(ordernumber==null)
    return;
    PreparedStatement statement = null;
    ResultSet rset = null;
    java.sql.Connection conn = null;
    try
    conn = DBHelper.getConnection(mDS,"SvcOwnerShipmentSubscriberMDB.createAndSendXML");
    statement = conn.prepareStatement("select * from ..."); // you SQL here
    statement.setString(1,ordernumber);
    rset = statement.executeQuery();
    StringBuffer data = new StringBuffer();
    data.append("<? version=\"1.0\"?>\n");
    data.append("<shippingRequest>\n");
    while(rset.next())
    data.append("\t<order_date>"+dateFormat.format(new java.util.Date(rset.getTimestamp("SCHEDULE_SHIP_DATE").getDate()))+"</order_date>\n");
    data.append("\t<brand_name>svcclient</brand_name>\n");
    data.append("\t<shipRequestType>Sale</shipRequestType>\n");
    data.append("</shippingRequest>\n");
              // call the web service with the data from the database
    DataExchanger_Impl impl = new DataExchanger_Impl();
    Stub stub = (Stub)(impl.getDataExchangerSoap());
    DataExchangerSoap dx = (DataExchangerSoap)stub;
    String resp = dx.exchangeData("svcclient", "mypassword", "Sales", data.toString());
    catch(SQLException sqle)
    sqle.printStackTrace();
    catch(Exception e)
    e.printStackTrace();
    finally
    try
    if (rset != null)
    rset.close();
    if (statement != null)
    statement.close();
    if (conn != null)
    conn.close();
    catch(Exception x){}
    public void ejbCreate() { System.out.println("In SvcOwnerShipmentSubscriberMDB.ejbCreate()"); }
    public void setMessageDrivenContext(MessageDrivenContext mdc) { this.mdc = mdc; }
    public void ejbRemove() throws javax.ejb.EJBException { System.out.println("In SvcOwnerShipmentSubscriberMDB.remove()"); }
    ==============================================================
    7> The /project/ejbbuild/META-INF directory needs a MANIFEST.txt file.
    Manifest-Version: 1.0
    8> The /project/ejbbuild/META-INF directory needs a ejb-jar.xml file. This just sets up the MDB which is the client.
    ==============================================================
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
    <ejb-jar>
    <display-name>SvcOwnerShipmentSubscriberMDB</display-name>
    <enterprise-beans>
    <message-driven>
    <display-name>SvcOwnerShipmentSubscriberMDB</display-name>
    <ejb-name>SvcOwnerShipmentSubscriberMDB</ejb-name>
    <ejb-class>com.svcclient.ejb.svcownershipment.SvcOwnerShipmentSubscriberMDB</ejb-class>
    <transaction-type>Container</transaction-type>
    <message-driven-destination>
    <destination-type>javax.jms.Topic</destination-type>
    <subscription-durability>NonDurable</subscription-durability>
    </message-driven-destination>
    </message-driven>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>SvcOwnerShipmentSubscriberMDB</ejb-name>
    <method-name>onMessage</method-name>
    <method-params>
    <method-param>javax.jms.Message</method-param>
    </method-params>
    </method>
    <trans-attribute>NotSupported</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    ==============================================================
    9> The /project/ejbbuild/META-INF directory needs a weblogic-ejb-jar.xml file.
    ==============================================================
    <?xml version="1.0"?>
    <!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN" "http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd">
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>SvcOwnerShipmentSubscriberMDB</ejb-name>
    <message-driven-descriptor>
    <pool>
    <max-beans-in-free-pool>5</max-beans-in-free-pool>
    <initial-beans-in-free-pool>1</initial-beans-in-free-pool>
    </pool>
    <!-- JNDI Name of the Topic that the SvcOwnerShipmentSubscriberMDB listens for messages on -->
    <destination-jndi-name>jms.svcownerShipmentsTopic</destination-jndi-name>
    </message-driven-descriptor>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    ==============================================================
    10> The /project/wssource directory needs a dataexchange.wsdl file. This is the WSDL describing the web service
    we want to connect to with our client.
    ==============================================================
    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:tns="https://www.svcowner.com/mfg/DataExchange/"
    xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    targetNamespace="https://www.svcowner.com/mfg/DataExchange/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    name="">
    <wsdl:types>
    <s:schema elementFormDefault="qualified"
    targetNamespace="https://www.svcowner.com/mfg/DataExchange/">
    <s:element name="exchangeData">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="sender" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="transactionType" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="data" type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="exchangeDataResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="exchangeDataResult" type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    </s:schema>
    </wsdl:types>
    <wsdl:message name="exchangeDataSoapIn">
    <wsdl:part name="parameters" element="tns:exchangeData" />
    </wsdl:message>
    <wsdl:message name="exchangeDataSoapOut">
    <wsdl:part name="parameters" element="tns:exchangeDataResponse" />
    </wsdl:message>
    <wsdl:portType name="DataExchangerSoap">
    <wsdl:operation name="exchangeData">
    <wsdl:input message="tns:exchangeDataSoapIn" />
    <wsdl:output message="tns:exchangeDataSoapOut" />
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="DataExchangerSoap" type="tns:DataExchangerSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="exchangeData">
    <soap:operation soapAction="https://www.svcowner.com/mfg/DataExchange/exchangeData"
    style="document" />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="DataExchanger">
    <wsdl:port name="DataExchangerSoap" binding="tns:DataExchangerSoap">
    <soap:address location="https://svc.svcowner.com/mfg/dataexchange.php" />
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    ==============================================================
    10> The /project/wssource directory needs a websvc_config.xml file. This file tells wscompile where
    to find the WSDL file and the package name for the generated classes.
    ==============================================================
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
         <wsdl location="wssource/dataexchange.wsdl" packageName="com.svcclient.websvc.svcowner"/>
    </configuration>
    ==============================================================
    11> The /project/wssource directory needs a create.bat file. This just sets up the environment
    and calls the wscompile batch file in the JWSDP. I had to tweak the wscompile.bat file to match
    my environment as well.
    ==============================================================
    SETLOCAL
    SET WSDP=C:\apps\jwsdp-1.3\
    SET ANT_HOME=%WSDP%;apache-ant
    SET PATH=%ANT_HOME%\bin;%WSDP%jaxrpc\bin;%PATH%
    SET JAVA_HOME=c:\apps\weblogic810\jrockit81sp2_141_05
    call wscompile -gen:client -s ./wssource -keep -g -d ejbbuild wssource/websvc_config.xml
    ==============================================================
    12> The /project directory needs a build.bat file. Just a way for me to make sure my
    environment is set up right before doing the build.
    ==============================================================
    SETLOCAL
    SET ANT_HOME=c:\apps\jakarta-ant-1.4.1
    SET PATH=%ANT_HOME%\bin;%PATH%
    SET JAVA_HOME=c:\apps\weblogic810\jrockit81sp2_141_05
    call ant -buildfile build.xml %1 %2 %3 %4 %5 %6 %7 %8 %9
    ==============================================================
    13> You need to copy the following jar files from the JWSDP into a location they can be used by the
    app server during run time and also for the build process. In my set up this is c:\b2b80\lib. Note that
    these are pointed to by the file in step 4.
    c:\apps\jwsdp-1.3\jaxrpc\lib\jaxrpc-api.jar
    c:\apps\jwsdp-1.3\jaxrpc\lib\jaxrpc-impl.jar
    c:\apps\jwsdp-1.3\jaxrpc\lib\jaxrpc-spi.jar
    c:\apps\jwsdp-1.3\saaj\lib\saaj-api.jar
    c:\apps\jwsdp-1.3\saaj\lib\saaj-impl.jar
    14> You must make sure that the jar file in step 13 are at the front of the classpath for the
    weblogic server. WL comes with classes that conflict with these jars.
    15> I also had to add the root ssl certificate from the partners certificate authority to the java keystore
    using the keytool because this service uses SSL:
    C:\apps\weblogic810\jrockit81sp2_141_05\jre\bin>keytool -import -keystore ..\lib\security\cacerts -alias svcownerroot -keypass password -file c:\temp\svcownerroot.cer
    ==============================================================
    So the idea is this, you run the /project/build.bat file from within the /project directory. This
    calls ant which uses the build.xml file to create everything and copy the EAR to the weblogic deployment
    directory. The default ant target is buildall.
    The cmdline_wscompile target runs the /project/wssource/create.bat file which in turn runs the wscompile.bat
    file from the jwsdp. This causes the dataexchange.wsdl file to processed and the client files to be generated.
    The generated java files go into the /project/wssource directory. The generated class files go into the
    /project/ejbbuild directory. They need to be there so the MDB can use them.
    Next the compileejb ant target compiles the MDB java file and places the resulting class file into the
    /project/ejbbuild directory.
    Next the buildejbjar ant target takes everything in the /project/ejbbuild directory and creates the ejb jar
    file that will be included in the EAR. This file is placed in the /project/earbuild directory.
    Finally the buildear ant target takes everything in the /project/ejbbuild directory and produces the EAR
    file for deployment. The EAR file is placed in the /project directory.
    The deploy task simply copies the EAR file into the weblogic domain applications directory.

    It's really the web service that determines what kind of authentication is required. You can't just use any old strategy. If the web service isn't expecting it in that form, it won't work. Typically, either HTTP BASIC Auth or WS-Security is used. You'd have to contact the people responsible for the web service to know what kind of auth it requires.

  • Cannot make .war file using tomcat with eclipse and ant

    i have made all necesary configuration for deploying application using eclipse and ant for the tomcat server.
    when i start the server by clicking the tomcat icon on eclipse toolbar, the message is prompted that "missing application web.xml and using defaults". i have placed the web.xml file in the web/WEB-INF directory of the source project directory.
    also when i use ant by right-clicking on the build.xml file and choose Run as ant.. the process creates a desired .war file in webapps folder of the tomcat server but that war file does not works.
    where is the error i cannot figure out.
    am attaching the code of build.xml for reference.
    please help.
    build.xml:-
    <project name="BecilCTI" default="compile" basedir=".">
    <property file="build.properties"/>
    <property file="${user.home}/build.properties"/>
    <property name="app.name" value="BecilCTI"/>
    <property name="app.path" value="/${app.name}"/>
    <property name="app.version" value="0.1-dev"/>
    <property name="build.home" value="${basedir}/build"/>
    <property name="catalina.home" value="c:/Tomcat_5.5"/> <!-- UPDATE THIS! -->
    <property name="dist.home" value="${basedir}/dist"/>
    <property name="docs.home" value="${basedir}/docs"/>
    <property name="manager.url" value="http://localhost:8080/manager"/>
    <property name="src.home" value="${basedir}/src"/>
    <property name="web.home" value="${basedir}/web"/>
    <property name="compile.debug" value="true"/>
    <property name="compile.deprecation" value="false"/>
    <property name="compile.optimize" value="true"/>
    <!--<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>-->
    <path id="compile.classpath">
    <!-- Include all elements that Tomcat exposes to applications -->
    <pathelement location="${catalina.home}/common/classes"/>
    <fileset dir="${catalina.home}/common/endorsed">
    <include name="*.jar"/>
    </fileset>
    <fileset dir="${catalina.home}/common/lib">
    <include name="*.jar"/>
    </fileset>
    <pathelement location="${catalina.home}/shared/classes"/>
    <fileset dir="${catalina.home}/shared/lib">
    <include name="*.jar"/>
    </fileset>
    </path>
    <target name="all" depends="clean,compile"
    description="Clean build and dist directories, then compile"/>
    <target name="clean"
    description="Delete old build and dist directories">
         <echo message="Cleaning all dirs."/>
    <delete dir="${build.home}"/>
    <delete dir="${dist.home}"/>
    </target>
    <target name="compile" depends="prepare"
    description="Compile Java sources">
    <!-- Compile Java classes as necessary -->
    <mkdir dir="${build.home}/WEB-INF/classes"/>
    <javac srcdir="${src.home}"
    destdir="${build.home}/WEB-INF/classes"
    debug="${compile.debug}"
    deprecation="${compile.deprecation}"
    optimize="${compile.optimize}">
    <classpath refid="compile.classpath"/>
    </javac>
    <!-- Copy application resources -->
    <copy todir="${build.home}/WEB-INF/classes">
    <fileset dir="${src.home}" excludes="**/*.java"/>
    </copy>
    </target>
    <target name="dist" depends="compile"
    description="Create binary distribution">
    <!-- Copy documentation subdirectories
    <mkdir dir="${dist.home}/docs"/>
    <copy todir="${dist.home}/docs">
    <fileset dir="${docs.home}"/>
    </copy> -->
    <!-- Create application JAR file -->
    <jar jarfile="${catalina.home}/webapps/${app.name}.war"
    basedir="${build.home}"/>
    <!-- Copy additional files to ${dist.home} as necessary -->
    </target>
    <target name="install" depends="compile"
    description="Install application to servlet container">
    <deploy url="${manager.url}"
    username="${manager.username}"
    password="${manager.password}"
    path="${app.path}"
    localWar="file://${build.home}"/>
    </target>
    <target name="list"
    description="List installed applications on servlet container">
    <list url="${manager.url}"
    username="${manager.username}"
    password="${manager.password}"/>
    </target>
    <target name="prepare">
    <!-- Create build directories as needed -->
    <mkdir dir="${build.home}"/>
    <mkdir dir="${build.home}/WEB-INF"/>
    <mkdir dir="${build.home}/WEB-INF/classes"/>
    <!-- Copy static content of this web application -->
    <copy todir="${build.home}">
    <fileset dir="${web.home}"/>
    </copy>
    <mkdir dir="${build.home}/WEB-INF/lib"/>
    </target>
    <target name="reload" depends="compile"
    description="Reload application on servlet container">
    <reload url="${manager.url}"
    username="${manager.username}"
    password="${manager.password}"
    path="${app.path}"/>
    </target>
    <target name="remove"
    description="Remove application on servlet container">
    <undeploy url="${manager.url}"
    username="${manager.username}"
    password="${manager.password}"
    path="${app.path}"/>
    </target>
    </project>

    So is context.xml actually overwriting the settings found in server.xml?I think so. The way I understand it is the the context.xml file saves you from having to edit server.xml. It is preferred for each web app to do its own config, rather than lumping them all together in server.xml.
    And what would be the best way to create the war file? IAt its heart, a WAR is just a zip file with its contents laid out in according to the specification of a web application directory structure.
    So the simplest way to make a war file is to zip up your directory structure with a tool like winzip, and rename it to be myApp.war.
    Regarding ant, I would recommend you take a look through [url http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
    ]this tutorial. It explains the basics of website layout, configuration and deployment.
    On [url http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/source.html] this page  in particular, it includes a link to a basic ant file that you can use as a starting point.
    Cheers,
    evnafets

  • Desktop file errors

    $ desktop-file-validate /opt/Adobe/Reader9/Resource/Support/AdobeReader.desktop
    /opt/Adobe/Reader9/Resource/Support/AdobeReader.desktop: error: file contains key "Caption" in group "Desktop Entry", but keys extending the format should start with "X-"
    /opt/Adobe/Reader9/Resource/Support/AdobeReader.desktop: warning: value "Application;Office;Viewer;X-Red-Hat-Base;" for key "Categories" in group "Desktop Entry" contains a deprecated value "Application"
    /opt/Adobe/Reader9/Resource/Support/AdobeReader.desktop: warning: key "InitialPreference" in group "Desktop Entry" is a reserved key for KDE

    We are aware of this, but had to include these keys for legacy reasons: we observed inconsistent behavior on some of the older distributions in the absence of these 'extra' entries.
    Besides, on distributions where these entries are not needed, they did not seem to cause any problem so we decided to include them.
    In case you face any problem whatsoever because of this, please report it here so that it can be addressed appropriately.
    Thanks!

  • Wlcompile - nested javac elements not working with ant 1.6.1

    Hi
    I have a problem with Ant 1.6.1 and wlcompile.
    I get the following error: The <wlcompile> type doesn’t support the nested “javac”
    element.
    Heres the error msg I get in debug mode:
    BUILD FAILED
    C:\P2Development\dev\testing\test.xml:3: The <wlcompile> type doesn't support
    the nested "javac" element.
         at org.apache.tools.ant.IntrospectionHelper.throwNotSupported(IntrospectionHelper.java:573)
         at org.apache.tools.ant.IntrospectionHelper.getNestedCreator(IntrospectionHelper.java:624)
         at org.apache.tools.ant.IntrospectionHelper.getElementCreator(IntrospectionHelper.java:691)
         at org.apache.tools.ant.UnknownElement.handleChild(UnknownElement.java:529)
         at org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:320)
         at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:176)
         at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:152)
         at org.apache.tools.ant.Task.perform(Task.java:363)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
         at org.apache.tools.ant.Main.runBuild(Main.java:632)
         at org.apache.tools.ant.Main.startAnt(Main.java:183)
         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
    I’m using windows 2000. I’ve tried with weblogic.jar from Weblogic Server 8.1
    SP1 and SP2. I’ve tried with JDK 1.4.1_02 and 1.4.2_04. If I’m using Ant 1.5.3
    then everything works perfectly.
    I’ve tried to remove the WLS included Ant version to avoid conflicts with Ant
    1.6.1 and Ant 1.5.3 (that comes with Weblogic server). I’ve tried to uninstall
    Weblogic Server and just keep weblogic.jar, but I still get the same error. I’ve
    tried to put weblogic.jar on the classpath, still not working. I’ve tried to remove
    all jar files from $ANT_HOME/lib except those jar files needed to run my test
    project - ant.jar and ant-launcher.jar, but still doesn’t work. If I change $ANT_HOME
    to Ant 1.5.3 and run Ant 1.5.3 then everything works. So it seems to have something
    to do with Ant 1.6.1.
    Here’s my example code:
    <project name="wlcompile_test" default="test" basedir=".">
         <target name="test" depends="init">
    <wlcompile srcdir="${src.dir}" destdir="${build.dir}">
    <javac debug="${build.debuginfo}" debuglevel="${build.debuglevel}"
    nowarn="${build.nowarn}" deprecation="${build.deprecated}" source="${build.source.version}"/>
    </wlcompile>
         </target>
    <target name="clean" depends="init">
    <delete dir="${build.dir}"/>
    </target>
    <target name="init">
    <taskdef name="wlcompile" classname="weblogic.ant.taskdefs.build.WLCompileTask"
    classpath="C:\P2Development\weblogic.jar"/>
    <property name="src.dir" value="src"/>
    <property name="build.dir" value="classes"/>
    <property name="build.compiler" value="modern"/>
    <property name="build.compiler.pedantic" value="true"/>
    <property name="build.debuginfo" value="true"/>
    <property name="build.debuglevel" value="lines,vars,source"/>
    <property name="build.deprecated" value="false"/>
    <property name="build.nowarn" value="off"/>
    <property name="build.source.version" value="1.4"/>
    <mkdir dir="${build.dir}"/>
    </target>
    </project>
    And I try to run “ant test”
    It doesn’t work with Ant 1.6.1 and weblogic.jar from WLS 8.1 SP1 and SP2. But
    it works perfectly if I change to Ant 1.5.3.
    Here’s a link to the Ant wlcompile task documentation from BEA:
    http://e-docs.bea.com/wls/docs81/programming/environment.html#1098348
    Regards,
    Tobias Wallter

    Yes, this one is fixed in 8.1 SP3. If you need a patch before then,
    contact [email protected] and reference CR136493.
    -- Rob
    Tobias Wallter wrote:
    Hi
    I have a problem with Ant 1.6.1 and wlcompile.
    I get the following error: The <wlcompile> type doesn?t support the nested ?javac?
    element.
    Heres the error msg I get in debug mode:
    BUILD FAILED
    C:\P2Development\dev\testing\test.xml:3: The <wlcompile> type doesn't support
    the nested "javac" element.
         at org.apache.tools.ant.IntrospectionHelper.throwNotSupported(IntrospectionHelper.java:573)
         at org.apache.tools.ant.IntrospectionHelper.getNestedCreator(IntrospectionHelper.java:624)
         at org.apache.tools.ant.IntrospectionHelper.getElementCreator(IntrospectionHelper.java:691)
         at org.apache.tools.ant.UnknownElement.handleChild(UnknownElement.java:529)
         at org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:320)
         at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:176)
         at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:152)
         at org.apache.tools.ant.Task.perform(Task.java:363)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
         at org.apache.tools.ant.Main.runBuild(Main.java:632)
         at org.apache.tools.ant.Main.startAnt(Main.java:183)
         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
    I?m using windows 2000. I?ve tried with weblogic.jar from Weblogic Server 8.1
    SP1 and SP2. I?ve tried with JDK 1.4.1_02 and 1.4.2_04. If I?m using Ant 1.5.3
    then everything works perfectly.
    I?ve tried to remove the WLS included Ant version to avoid conflicts with Ant
    1.6.1 and Ant 1.5.3 (that comes with Weblogic server). I?ve tried to uninstall
    Weblogic Server and just keep weblogic.jar, but I still get the same error. I?ve
    tried to put weblogic.jar on the classpath, still not working. I?ve tried to remove
    all jar files from $ANT_HOME/lib except those jar files needed to run my test
    project - ant.jar and ant-launcher.jar, but still doesn?t work. If I change $ANT_HOME
    to Ant 1.5.3 and run Ant 1.5.3 then everything works. So it seems to have something
    to do with Ant 1.6.1.
    Here?s my example code:
    <project name="wlcompile_test" default="test" basedir=".">
         <target name="test" depends="init">
    <wlcompile srcdir="${src.dir}" destdir="${build.dir}">
    <javac debug="${build.debuginfo}" debuglevel="${build.debuglevel}"
    nowarn="${build.nowarn}" deprecation="${build.deprecated}" source="${build.source.version}"/>
    </wlcompile>
         </target>
    <target name="clean" depends="init">
    <delete dir="${build.dir}"/>
    </target>
    <target name="init">
    <taskdef name="wlcompile" classname="weblogic.ant.taskdefs.build.WLCompileTask"
    classpath="C:\P2Development\weblogic.jar"/>
    <property name="src.dir" value="src"/>
    <property name="build.dir" value="classes"/>
    <property name="build.compiler" value="modern"/>
    <property name="build.compiler.pedantic" value="true"/>
    <property name="build.debuginfo" value="true"/>
    <property name="build.debuglevel" value="lines,vars,source"/>
    <property name="build.deprecated" value="false"/>
    <property name="build.nowarn" value="off"/>
    <property name="build.source.version" value="1.4"/>
    <mkdir dir="${build.dir}"/>
    </target>
    </project>
    And I try to run ?ant test?
    It doesn?t work with Ant 1.6.1 and weblogic.jar from WLS 8.1 SP1 and SP2. But
    it works perfectly if I change to Ant 1.5.3.
    Here?s a link to the Ant wlcompile task documentation from BEA:
    http://e-docs.bea.com/wls/docs81/programming/environment.html#1098348
    Regards,
    Tobias Wallter

  • Best way to modify an existing Term Set in SharePoint 2010

    Hi,
    We have a term set called 'Responsibilities' in our term store which contains less than 100  level 1 values and is currently used by a user profile property. We have requirement to update the existing term set values. The new 'Responsibilities' term
    has over 700 values with some up to level 3.
    By default when a CSV file is used to import a new term set with an existing name, it creates a new term set post fixed by a number 1 but never overwrites the existing term set. After some testing i have come with the following options and wanted to
    know which one is the best way to create new term set:
    Delete an existing term set and create a new term set using a CSV file. I believe it will cause any issue where the existing values have been used. But we are expecting all the user to re-edit their user profiles and change the 'Responsibilities' values
    to the new term set values. I have also tested and can verify after full crawl has run the user profile with old values (where users haven't updated their user profile value) doesn' t appear in the search.
    Use PS script to update an existing term set using the CSV file and deprecate the old values once the new term set values have been imported. This will still require user to re-edit thier user profiles to change deprecated values.
    Rename an existing term set and import the new term set using the same name i.e. Responsibilities_Old and re-import the 'Responsibilities' using the CSV file. Re-configure user profile property to the new term set.
    Can someone please suggest if there is anyother better way to update an existing termset? Thanks
    Regards,
    Kashif

    Hi Kashif24,
    Do you have any updates ?
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Taskdef

    Hi,
    I'm trying to deploying my first ejb with the help of ant but it is giving me below error.
    C:\TempSrc\build.xml:70: Could not create task of type: ear. Common solutions are to use taskdef to declare your task, o
    r, if this is an optional task, to put the optional.jar in the lib directory of your ant installation (ANT_HOME).
    It is creating .jar and .war succesfully ,but which creating .ear it is giving the above error.
    The build.xml which i've written is
    <project name="testing" default="deploy" basedir=".">
    <target name="init">
         <property environment="env"/>
         <property name="app.name" value="HelloServlet"/>
         <property name="app.version" value="2.0"/>          
         <property name="WL_HOME" value="${env.WL_HOME}" />
         <property name="WL_JAR" value="${WL_HOME}/lib/weblogic.jar" />
         <property name="W1NOTDELETE" value="${WL_HOME}/config/mydomain/applications/.wlnotdelete"/>
         <property name="WLSTAGING" value="${WL_HOME}/config/mydomain/.wlstaging"/>
         <property name="DIST.HOME"     value="${WL_HOME}/config/mydomain/applications"/>
    <property name="TESTINGSOURCE" value="${env.TESTINGSOURCE}"/>
         <property name="DELETEOLDCLASSES" value="${TESTINGSOURCE}"/>
         <property name="SOURCEDIR" value="${TESTINGSOURCE}/Src"/>
         <property name="ALLXML" value="${TESTINGSOURCE}/XML"/>
         <property name="OUTPUTDIR" value="${TESTINGSOURCE}/Compiled"/>     
         <property name="ASSEMBLE" value="${TESTINGSOURCE}/Assemble"/>          
         <property name="DIST.JAR" value="MyJar.jar"/>
         <property name="DIST.WAR" value="MyWar.war"/>
         <property name="DIST.EAR" value="MyEar.ear"/>     
         <property name="final" value="final"/>
         <property name="debug" value="on"/>
         <property name="optimize" value="off"/>
    </target>
    <!-- Configure properties to access the Manager application -->
    <property name="url" value="http://localhost:7001/MyWar"/>
    <property name="compile.debug" value="true"/>
    <property name="compile.deprecation" value="false"/>
    <property name="compile.optimize" value="true"/>
    <target name="clean">
    <delete dir="${DELETEOLDCLASSES}" />     
    <delete dir="${w1notdelete}"/>
    <delete dir="${wlstaging}"/>
    <delete dir="${DIST.JAR}"/>
    <delete dir="${DIST.WAR}"/>
    <delete dir="${DIST.EAR}"/>
    <delete dir="${TESTINGSOURCE}/Compiled"/>
    </target>
    <target name="compile" depends="init">
    <mkdir dir="${TESTINGSOURCE}/Compiled"/>
    <javac srcdir="${SOURCEDIR}" destdir="${OUTPUTDIR}"/>     
    </target>
    <target name="ejbjaring" depends="compile">
    <mkdir dir="${ASSEMBLE}"/>
    <jar jarfile="${ASSEMBLE}/${DIST.JAR}">
    <fileset dir="${OUTPUTDIR}" includes="FirstEjb/*.class"/>
    <fileset dir="Xml" includes="ejb-jar.xml,weblogic-ejb-jar.xml" />
    </jar>
    </target>
    <target name="ejbwarring" depends="ejbjaring">
    <war warfile="${ASSEMBLE}/${DIST.WAR}" webxml="${ALLXML}/web.xml">
    <webinf dir="${ALLXML}">
         <include name="weblogic.xml" />          
    </webinf>
    <classes dir="${OUTPUTDIR}">
         <include name="MyServlet/*.*" />
    </classes>
    </war>
    </target>
    <target name="ejbc" depends="makeejbjar">
         <java classname="weblogic.ejbc20" fork="yes" failonerror="yes" output="ErrorEjbc">
              <sysproperty key="weblogic.home" value="${WL_HOME}"/>
              <arg line="${MY_PREEJB} ${MY_EJBJAR}" />
              <classpath>
                   <pathelement path="${WL_JAR}"/>
                   <pathelement path="${SFC_JAR}"/>
                   <pathelement path="${DMS_JAR}"/>
                   <pathelement path="${MEM_JAR}"/>
                   <pathelement path="${MEMEJB_JAR}"/>
                   <pathelement path="${EVT_JAR}"/>
                   <pathelement path="${EVTEJB_JAR}"/>
                   <pathelement path="${COMMS_JAR}"/>
                   <pathelement path="${CFC_JAR}"/>
                   <pathelement path="${MHB_UTIL}"/>
                   <pathelement path="${MHB_JAR}"/>
                   <pathelement path="${MHB_EJB}"/>
                   <pathelement path="${ANAUTIL_JAR}"/>
                   <pathelement path="${MY_UTILJAR}"/>                
              </classpath>
         </java>
    </target>
    <target name="ejbearring" depends="ejbwarring">
    <ear destfile="${ASSEMBLE}/${DIST.EAR}" appxml="${ALLXML}/application.xml">
    <fileset dir="${ASSEMBLE}" includes="*.jar,*.war" />
    </ear>
    </target>
    <target name="deploy" depends="clean,ejbearring">
    <copy file="${ASSEMBLE}/${DIST.EAR}" todir="${DIST.HOME}" overwrite="yes"/>
    </target>
    </project>

    Your build.xml file content next fragment:
    <target name="ejbc" depends="makeejbjar">
    ...but no content target named "makeejbjar."
    I don't have other files and i think then you must to:
    1. Try replace "makeejbjar" to "ejbjaring"
    2. If not helped try comment all target named "ejbc"

  • Why should useful life be given in case of PRC depr type?

    Hi Experts,
    I have no answer for that quation that if i have a depreciation type which is straight line but under calculation tab the type is PRC, then in asset master data why do i have to give a useful life for this asset.
    I cannot add a new asset belonging such an asset class where this type of depreciation is linked, so if the useful life is 0, than the system doesnt let me add the asset!
    Im using SAP 2007A SP01  PL9.
    I thought that when PRC is used then example:Percentage is 14.5%
    Asset acquisition value is 1000.
    Deprecation value/year is 1000*14.5=145. Monthly->145/12 is the deprection val. But then why is useful life asked??
    Is it new sap logic or bug or incorrect setting for my DB?
    Any idea would be appreciated.

    The Fixed assets system will automatically write the balance of the asset off at the end of the useful life, so this feild is required for all calculations.
    If you want to maintain assets then put a useful life of 999 periods as a workaround

  • Windows 7 deployment keeps failing

    I keep getting errors when trying to deploy Windows 7 Pro x64 from the source files that I imported in MDT.  Below is a snippet of my smsts.log file.  It looks like it is having a problem saving the environment and that there may be a program issue.
    Has anyone else had this problem?  If so, what did you do to get around this.  The only thing I can think of is that after importing windows 7 source files and going through the unattend.xml file, there are two deprecated entries in there by default.  I didn't remove them, but I also didn't think they would cause issues like this.  I'm not sure if in fact these deprecated values are the issue or not.
    Failed to save environment to  (80070057)    TSManager    3/25/2010 4:46:15 PM    1404 (0x057C)
    TS::Environment::SharedEnvironment.saveEnvironment(szPath), HRESULT=80070057 (e:\nts_sms_fre\sms\client\tasksequence\executionengine\executionenv.cxx,842)    TSManager    3/25/2010 4:46:15 PM    1404 (0x057C)
    Failed to save the current environment block. This is usually caused by a problem with the program. Please check the Microsoft Knowledge Base to determine if this is a known issue or contact Microsoft Support Services for further assistance.
    The parameter is incorrect. (Error: 80070057; Source: Windows)    TSManager    3/25/2010 4:46:15 PM    1404 (0x057C)
    SaveEnvironment(), HRESULT=80070057 (e:\nts_sms_fre\sms\client\tasksequence\executionengine\executionenv.cxx,420)    TSManager    3/25/2010 4:46:15 PM    1404 (0x057C)
    Failed to persist execution state. Error 0x(80070057)    TSManager    3/25/2010 4:46:15 PM    1404 (0x057C)
    Failed to save execution state and environment to local hard disk    TSManager    3/25/2010 4:46:15 PM    1404 (0x057C)

    Hi
    I Have the same problem using DVD media.
    under the SMStst.log i got:
    Set command line: "OSDApplyOS.exe" /image:Z00001DD,1 "/config:Z00001B7,unattend.xml" /target:%OSPART% ApplyOperatingSystem 05/13/2010 4:45:23 PM 1448 (0x05A8)
    ((g_Target.Disk > 0) || (arg == L"0")) && (g_Target.Partition >= c_MinPartition), HRESULT=80070057 (e:\nts_sms_fre\sms\client\osdeployment\applyos\applyos.cpp,252) ApplyOperatingSystem 05/13/2010 4:45:23 PM 1448 (0x05A8)
    The /target parameter specifies an invalid target location. ApplyOperatingSystem 05/13/2010 4:45:23 PM 1448 (0x05A8)
    ParseCommandLine(), HRESULT=80070057 (e:\nts_sms_fre\sms\client\osdeployment\applyos\applyos.cpp,316) ApplyOperatingSystem 05/13/2010 4:45:23 PM 1448 (0x05A8)
    Process completed with exit code 2147942487 TSManager 05/13/2010 4:45:23 PM 1396 (0x0574)
    !--------------------------------------------------------------------------------------------! TSManager 05/13/2010 4:45:23 PM 1396 (0x0574)
    Failed to run the action: Apply Operating System Image. This is usually caused by a problem with the program. Please check the Microsoft Knowledge Base to determine if this is a known issue or contact Microsoft Support Services for further assistance.
    The parameter is incorrect. (Error: 80070057; Source: Windows) TSManager 05/13/2010 4:45:23 PM 1396 (0x0574)
    at the BDD.log  I got:
    Validating connection to \\smscentralsrv\ACMData\Logs zticopylogs 05/13/2010 4:45:30 PM 0 (0x0000)
    No physical adapters present, cannot deploy over wireless zticopylogs 05/13/2010 4:45:30 PM 0 (0x0000)
    An invalid SLShare value of \\smscentralsrv\ACMData\Logs was specified. zticopylogs 05/13/2010 4:45:30 PM 0 (0x0000)
    zticopylogs processing completed successfully. zticopylogs 05/13/2010 4:45:30 PM 0 (0x0000)
    *smscentral is our server but I would like to use it as
    completely offline.
    Thanks,
    Yair

  • LSMW for Legacy Asset

    HI All,
    I created a recording in LSMW using AS91 for migration of  our legacy assets, But I have a  problem in Fixing deprecation values,like in screen Takeover values, the field for APC value is ANBTR01 and thats the same field is used for accum.dep values also.So is the same case with other tax APC value fileds which is ANBTR04 for tax Area MACRS/ACRS and same field for tax accum dep value its again ANBTR04, so when I am define my souce structure,the system gives the message ANBTR01 used more than once so its changed to F0027,Could anyone please tell me how the system knows which ANBTR01 is APC and which ANBTR01 is accum dep value.
    Regards
    Shaun

    Hi Shaun,
    This is an example from a recording:
    RALT_DYNP_STRUC-ANBTR01(01)   ANBTR01-1            Colum 01 aquasition value
    RALT_DYNP_STRUC-ANBTR01(06)   ANBTR01-6            Colum 01 *** Depreciation
    RALT_DYNP_STRUC-ANBTR02(01)   ANBTR02-1            Colum 02 aquasition value
    RALT_DYNP_STRUC-ANBTR02(06)   ANBTR02-6            Colum 02 *** Depreciation
    RALT_DYNP_STRUC-ANBTR04(01)   ANBTR04-1            Colum 04 aquasition value
    RALT_DYNP_STRUC-ANBTR04(06)   ANBTR04-6            Colum 04 *** Depreciation
    RALT_DYNP_STRUC-ANBTR06(01)   ANBTR06-1            Colum 06 aquasition value
    RALT_DYNP_STRUC-ANBTR06(06)   ANBTR06-6            Colum 06 *** Depreciation
    RALT_DYNP_STRUC-ANBTR07(01)   ANBTR07-1            Colum 07 aquasition value
    RALT_DYNP_STRUC-ANBTR07(06)   ANBTR07-6            Colum 07 *** Depreciation
    It is like cell numbers from an EXCEL File.
    Source fields (from the EXCEL file
    ANBTR01                        C(013)    apc value colum 01
    ANBTR02                        C(013)    apc value colum 02
    ANBTR03                        C(013)    apc value colum 03
    Mapping:
    ANBTR01                      apc value colum 01
                        Source:  ASSET_LEGACY_TRANSFER-ANBTR01 (apc value colum 01)
                        Rule :   Transfer (MOVE)
                        Code:    AS91-ANBTR01 = ASSET_LEGACY_TRANSFER-ANBTR01.
    ANBTR02                      apc value colum 02
    ANBTR03                      apc value colum 03
                        Source:  ASSET_LEGACY_TRANSFER-ANBTR03 (apc value colum 03)
                        Rule :   Transfer (MOVE)
                        Code:    AS91-ANBTR03 = ASSET_LEGACY_TRANSFER-ANBTR03.
    ANBTR05                      apc value colum 05
    ANBTR07                      apc value comum 07

  • Compiling via XML file with Xlint:unchecked, JDK 1.5.0_05

    compiling 1.4.2_04 code with 1.5.0_05 using an Ant/Tomcat environment and get the following Notes:
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    added this to my XML file to try to compile with unchecked:
    <property name="compile.unchecked" value="true"/> <!-- added -->
    <target name="compile">
    <javac srcdir="${source.home}"
    destdir="${deploy.home}"
    debug="${compile.debug}"
    deprecation="${compile.deprecation}"
    unchecked="${compile.unchecked}" ><!-- added-->
    optimize="${compile.optimize}"/>
    </target>
    Now I get this build error:
    BUILD FAILED
    file:C:/.../my_Build.xml:71: The <javac> task doesn't support the "unchecked" attribute.
    This seems strange. Am I using unchecked incorrectly? This same code has <property name="compile.deprecation" value="true"/>, which functions and gives me more info on a few deprecated methods in the code, so I followed the same syntax.
    Any suggestions would be appreciated. Thanks

    Thank you - that did it.
    I am new to Java and am wondering if you can give me any clue as to what an "unchecked call" means? How do I go about making it a "checked call"? If it is a warning and not an error, does it really matter? Can you point me to a good reference (online or book)?
    This is the info I got on the xml file when I compiled with unchecked:
    warning: [unchecked] unchecked call to addElement(E) as a member of the raw type java.util.Vector
    [javac]                searchThreads.addElement(temp);
    This is the code it is looking at (mostly comments, but didn't want to strip them out):
    // Create a vector to hold all of the search threads. 1000 should be more than enough.
    Vector searchThreads = new Vector(1000);
    // Start spawning search threads until the server socket is found, or until 1000 threads have been created.
    while ((searchThreads.size() < 1000) && !found)
    // We need to check to see if we've connected to the right server by reading what the server sent back to us.
    //If it sent back the string "TM Server", then we're in the right place. If we get anything else, or we get nothing, then we need to keep looking.
    // We spawn a thread for each socket to save time, and as soon as one of the threads finds the right socket, it sets a flag telling us to stop looking.
    // Create and start the search thread
    PortFinder temp = new PortFinder(tmHostName, startPort);
    temp.start();
    // Add the search thread to the vector THIS IS THE UNCHECKED CALL
    searchThreads.addElement(temp);
    // Increment to the next port before looping
    startPort++;
    Thanks

Maybe you are looking for

  • Using old iMac Screen on new Mini

    My trusted old iMac G4 700 (dome base) is just too slow these days, but I still love the design. The screen is also very adjustable and can extend to a comfortable working height. Is there any way in which I can couple this with a new mini, ie. just

  • Stock opening balance missing on Trial Balance report

    Hi all, A client is having a problem with their trial balance report. The report does not balance and the problem seems specific to the Stock account in the Assets drawer which does not show the opening balance. They are running a report from the sta

  • Windows 7, 64bit Bluetooth Drivers - E72

    Hi I am trying to connect my E72 to my laptop (Windows 7, 64 bit). I need to troubleshoot the device and get the error message: ' Driver for peripheral device is not installed'. I cannot find any Windows 7 bluetooth drivers for the E72 on the Nokia s

  • CS6 uninstall and reinstall

    I have the Adobe CS6 Design and Web Premium package and want to uninstall and reinstall PS and AI. How do I do this?

  • Moving projects before completion

    I have almost finished importing clips into iMovie for the purposes of my new (and second ever) project. For some reason, I can't import any more clips because the disk is out of space (incredibly frustrating as my disk has very little on it other th