ERROR: attribute verification of /etc/.java/.systemPrefs/.system.lock fai

Dear all experts, i am trying hard to solve this problem on solaris 10.
i downloaded java package i.e jdk-6u18-solaris-i586.tar.Z and extract it using zcat jdk-6u18-solaris-i586.tar.Z | tar -xf - . it extracted successfully following folders.
SUNWj6cfg
SUNWj6dev
SUNWj6dmo
SUNWj6jmp
SUNWj6man
SUNWj6rt
plus few others
i tried to install all of the above using command pkgadd -d . SUNWj6rt SUNWj6dev SUNWj6cfg SUNWj6man SUNWj6dmo.
all of the package succesfully installed except one i.e SUNWj6cfg
i got following error message
[Do you want to continue with the installation of <SUNWj6cfg> [y,n,?] y
Installing JDK 6.0 Host Config. (1.6.0_18) as <SUNWj6cfg>
## Installing part 1 of 1.
[ verifying class <none> ]
cp: /etc/.java/.systemPrefs/.system.lock not found
cp: /etc/.java/.systemPrefs/.systemRootModFile not found
[ verifying class <preserve> ]
ERROR: attribute verification of </etc/.java/.systemPrefs/.system.lock> failed
pathname does not exist
ERROR: attribute verification of </etc/.java/.systemPrefs/.systemRootModFile> fa
iled
pathname does not exist
## Executing postinstall script.
Installation of <SUNWj6cfg> partially failed.]
i am trying hard to find out what is the problem.
thanks in advance
Mr parkar
UAE

These are innocuous errors that you may safely ignore. However the disk error is a problem. Do the following:
Repairing the Hard Drive
Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger and Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors, then quit DU and return to the installer. Now restart normally.
If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.

Similar Messages

  • /etc/.java/.systemPrefs/.system.lock not found java package error

    Dear all experts, i am trying hard to solve this problem on solaris 10.
    i downloaded java package i.e jdk-6u18-solaris-i586.tar.Z and extract it using zcat jdk-6u18-solaris-i586.tar.Z | tar -xf - . it extracted successfully following folders.
    SUNWj6cfg
    SUNWj6dev
    SUNWj6dmo
    SUNWj6jmp
    SUNWj6man
    SUNWj6rt
    plus few others
    i tried to install all of the above using command pkgadd -d . SUNWj6rt SUNWj6dev SUNWj6cfg SUNWj6man SUNWj6dmo.
    all of the package succesfully installed except one i.e SUNWj6cfg
    i got following error message
    [Do you want to continue with the installation of <SUNWj6cfg> [y,n,?] y
    Installing JDK 6.0 Host Config. (1.6.0_18) as <SUNWj6cfg>
    ## Installing part 1 of 1.
    [ verifying class <none> ]
    cp: /etc/.java/.systemPrefs/.system.lock not found
    cp: /etc/.java/.systemPrefs/.systemRootModFile not found
    [ verifying class <preserve> ]
    ERROR: attribute verification of </etc/.java/.systemPrefs/.system.lock> failed
    pathname does not exist
    ERROR: attribute verification of </etc/.java/.systemPrefs/.systemRootModFile> fa
    iled
    pathname does not exist
    ## Executing postinstall script.
    Installation of <SUNWj6cfg> partially failed.]
    i am trying hard to find out what is the problem.
    thanks in advance
    Mr parkar
    UAE

    make sure your package is in WEB-INF\classes\ directory
    or if it is in a jar file, make sure it is in WEB-INF\lib\ directory

  • ERROR: attribute verification of failed pathname does not exist

    I tried creating a sample package with classes in it.
    I am getting the below error after i tried installing my installer on SunOS.
    Please help to fix this issue.
    The following packages are available:
    1 Appap Application Package
    (sparc) 2.0
    Select package(s) you wish to process (or 'all' to process
    all packages). (default: all) [?,??,q]: 1
    Processing package instance <APPap> from </ap>
    Application Package(sparc) 2.0
    ## Processing package information.
    ## Processing system information.
    2 package pathnames are already properly installed.
    ## Verifying disk space requirements.
    ## Checking for conflicts with packages already installed.
    ## Checking for setuid/setgid programs.
    This package contains scripts which will be executed with super-user
    permission during the process of installing this package.
    Do you want to continue with the installation of <APPap> [y,n,?] y
    Installing Application Package as <APPap>
    ## Installing part 1 of 1.
    [ verifying class <none> ]
    Installing app ...
    [ verifying class <app> ]
    ERROR: attribute verification of </opt/app/a.txt> failed
    pathname does not exist
    Installing hlp ...
    [ verifying class <hlp> ]
    ERROR: attribute verification of </opt/app/b.txt> failed
    pathname does not exist
    Installation of <APPap> partially failed.
    My pkginfo and prototype file contents are as follows. Please let me know the solution for ERROR: attribute verification of </opt/app/b.txt> failed pathname does not exist
    # cat prototype
    i pkginfo
    i request
    i ./i.none
    i ./r.none
    i ./i.app
    i ./r.app
    i ./i.hlp
    i ./r.hlp
    d none /opt 0755 root root
    d none /opt/app 0755 root root
    f app /opt/app/a.txt 0644 root root
    f hlp /opt/app/b.txt 0644 root root
    # cat pkginfo
    PKG=APPse
    ARCH=sparc
    NAME=Application Package
    TZ=$TZ
    VERSION=2.0
    CATEGORY=application
    CLASSES=none app hlp
    Edited by: VinayVM on Jan 20, 2010 8:49 AM

    This packages(*libgcc-3.4.6* or gcc-3.4.6) is installed on your zone? You will need to install either libgcc-3.4.6 or gcc-3.4.6 before install SMCgmp.
    HTH
    Michele

  • Error in Export of ABAP+JAVA  Distributed system

    Hi
    I am exporting an ABAP(ECC 6.0)+JAVA Add-in system .
    I have started the database instance export from the database instance host .
    I am geting the following error :
    An error occurred while processing service SAP ERP 6.0 Support Release 3 > Software Life-Cycle Options > System Copy > MS SQL Server > Source System Export > Distributed System > Based on AS ABAP and AS Java > Database Instance Export( Last error reported by the step :uncaught exception: nw.usageTypes.utlError: Execution of UTL tool 'D:\j2sdk1.4.2_13-x64\bin\java.exe -classpath D:\usr\sap\ERS\SYS\global\sltools\sharedlib\launcher.jar -showversion -Xmx256m com.sap.engine.offline.OfflineToolStart com.sap.sl.ut.manager.UtlMain
    sdsapdbsbx1/sapmnt/ERS/SYS/global/security/lib/tools;D:/usr/sap/ERS/SYS/global/sltools/sharedlib/sap.comsl.ut.infoprovider_lib.jar;D:/usr/sap/ERS/SYS/global/sltools/sharedlib/sap.comsl.ut.manager.offline.jar;D:/usr/sap/ERS/SYS/global/sltools/sharedlib/antlr.jar;D:/usr/sap/ERS/SYS/global/sltools/sharedlib/exception.jar;D:/usr/sap/ERS/SYS/global/sltools/sharedlib/jddi.jar;D:/usr/sap/ERS/SYS/global/sltools/sharedlib/logging.jar;D:/usr/sap/ERS/SYS/global/sltools/sharedlib/offlineconfiguration.jar;D:/usr/sap/ERS/SYS/global/sltools/sharedlib/opensqlsta.jar;D:/usr/sap/ERS/SYS/global/sltools/sharedlib/tc_sec_secstorefs.jar;D:/usr/sap/ERS/SYS/global/sltools/sharedlib/sap.comtcsdtcvlimpl.jar;D:/usr/sap/ERS/SYS/global/sltools/sharedlib/SDMutil.jar;D:/usr/sap/ERS/SYS/global/sltools/sharedlib/SLUtil.jar;D:/usr/sap/ERS/SYS/exe/nuc/NTAMD64/mssjdbc/sqljdbc.jar -export -type=keydb "-expfile=C:/Program Files/sapinst_instdir/ERP/LM/COPY/MSS/EXP/DISTRIBUTED/AS/EXPDB/usages_data.xml" -log=UTL_load_usages.log -sid=ERS -dsn=jdbc/pool/ERS -ssprops=D:/usr/sap/ERS/SYS/global/security/data/SecStore.properties -ssk=D:/usr/sap/ERS/SYS/global/security/data/SecStore.key' aborts with return code 1. Check 'UTL_load_usages.log' and 'C:/Program Files/sapinst_instdir/ERP/LM/COPY/MSS/EXP/DISTRIBUTED/AS/EXPDB/UTL.java.log' for more information. (in script unknown, line 0: ???)).
    The file UTL.java.log is as follows:
    java version "1.4.2_19-rev"
    Java(TM) Platform, Standard Edition for Business (build 1.4.2_19-rev-b07)
    Java HotSpot(TM) 64-Bit Server VM (build 1.4.2_19-rev-b07, mixed mode)
    java.lang.NoClassDefFoundError: com/sap/engine/offline/OfflineToolStart
    Please help.
    Regards
    Ratnajit

    Hi
    with 1.4.2_18 and 1.4.2_19 we are currently having massive stack overflow check the below link for more clarifications
    X64 java 1.4.2_18 for SAP
    Regards
    Uday

  • 8i on RH7.1 with java.lang.System error

    Hi all,
    Please excuse me if this is the incorrect forum for this message.
    I've installed 8i on redhat 7.1 quite a few times, but have never experienced this problem. When I try to start dbassist, netca or any GUI driven app that requires a JVM, I get the following error:
    Can't not find java.lang.System
    Can't not create JVM
    I've installed blackdown 1.1.8_v3, and have changed the JRE symlink in $ORACLE_HOME to point ot where blackdown is located.
    I've already tried unset LANG and unset NLS_LANG. Any suggestions will be greatly appreciated!! Thanks in advance.
    Ed

    Hi
    I'll say that you have to post this message to the "Installation" forum, i.e. Database Installation
    Chris

  • Java Desktop System, Release 2 - Error activating XKB configuration

    Hi,
    There is know problem with Java Desktop System, Release 2:
    If you log in using accessibility features on the Java
    Desktop System for the Solaris platform, the following
    error dialog might appear: Error activating XKB configuration.
    How can I solve this problem? Can I disable accessibility features (especially when I log in using NoMachine NX Client)?
    Thanks,
    Rafal

    I have been trying to install Oracle version 10g on Sun Java Desktop System Release 2 (Linux) but unable to do so.Some error message?
    Can I install Oracle on Sun Java Desktop System Release 2 (Linux)? How to do that?As far I know Sun JDS release 2 is based on SuSE so check Suse related installation papers.
    You can find them on http://www.oracle.com/technology/tech/linux/install/index.html
    What version of Oracle ver 10g Release 1 should I download?Depends on architecture (CPU) and installed OS version (32bit, 64bit).

  • Java/lang/system.gc() error

    Hi there, i have a problem with java.
    When i enter a webpage that uses a java menu script i get this message: " The applet is trying to invoke the java/lang/system.gc() operation " then i get 3 choises Allow, Disallow and Stop applet.
    I have tryed them all :( but it still popping up
    http://img246.imageshack.us/img246/3773/errorow3.jpg <-- image of the problem (The menu to the left contains alot of submenues)
    and the message appears when i just click at one of them, its quite annoying :s
    Its not the internet page, i have tryed it on another computer and there it works fine
    I am using J2SE(TM) Runtime Environment 5.0 Update 8 and have tryed some older versions to
    can someone help me :) ?
    Best regards
    Kristoffer
    Ps. sorry for bad english

    Can you export the log messages from the java console to a file, the export should contain a detailed exception stack for the issue which may give some hints of the issue. The Unsupported Features and APIs (Release 13.2) does not explicitly mention garbage collection as restricted, however it does mention:
        Setting of operating system environment variables, Java system properties, or JVM/Server command-line parameters.
    Since the issue seems to come from the gc call you could try disabling it from your by calling the WorkbookSettings.setGCDisabled(true) to see if that makes any difference. Note that if GC is disabled there will be impact on performance and / or resource consumption.
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

  • Problem with JDK 6 update 5 - Error Message says cant find java compiler

    Hi i am a complete beginner to programming and i am having trouble with the latest java development kit. jdk 6 update 5.
    The problem is i have set the path and the program cant find my compiler.
    I have installed the latest java development kit 6 update 5 on my windows xp machine.
    I have created a simple program as shown below:
    class Hello
         public static void main(String[] args)
                   System.out.println("Hello from java");
    saved the file to my desktop as Hello.java
    I have set the path variable like so:
    Go to control panel then click system icon then click advanced tab then click environmental variables.
    Now in system variables the path is shown as this - %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Java\jdk1.6.0_05\bin;C:\Program Files\QuickTime\QTSystem\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\
    I then add this to the end;C:\Program Files\Java\jdk1.6.0_05\bin
    This is the location to the things like compiler, applet viewer etc.
    No in the command prompt i type javac Hello.java and i get this error message:
    C:\> javac Hello.java
    javac: file not found: Hello.java
    Usage: javac <options> <source files>
    use -help for a list of possible options
    The jdk is installed properly im sure but it can find my compiler.
    What mistake have i made in setting the path because im guessing that is related to the problem?
    Could someone out there please help me?
    Thank You
    Rafeeq

    saved the file to my desktop as Hello.java
    C:\> javac Hello.javaC:\ is not the desktop!
    The jdk is installed properly im sure but it can find my compiler.Of course it can! It just can't find the file you are trying to compile, because that's not in the root directory.
    I suggest you make a directory C:\java and save your source file there rather than on the desktop. In the command prompt, enter cd \java to make it the current working directory and then enter javac Hello.java.
    @Pravin: The question is about compiling, not running. CLASSPATH has nothing to do with this problem.
    db

  • Can't login BPM workspace - Internal error in Verification Service

    I've gone through "Building Your First Process with Oracle BPM 11g" in JDeveloper and was able to deploy "Hello World" successfully. My problem is that when I tried to sign in bpm workspace, I get "Invalid username and password" error. This is what I found in the soa log,
    <Apr 25, 2012 9:02:49 AM EDT> <Error> <oracle.soa.services.workflow.verification> <BEA-000000> <<.> hasPermission: error: access denied (oracle.security.jps.service.policystore.PolicyStoreAccessPermission Context:APPLICATION Context Name:soa-infra Actions:getApplicationPolicy)>
    <Apr 25, 2012 9:02:49 AM EDT> <Error> <oracle.soa.services.workflow.query> <BEA-000000> <<.> Internal error in Verification Service.
    Internal error in Verification Service for user jcooper. hasPermission.
    Check the underlying exception and correct the error. If the error persists, contact Oracle Support Services.
    ORABPEL-30504
    Internal error in Verification Service.
    Internal error in Verification Service for user jcooper. hasPermission.
    Check the underlying exception and correct the error. If the error persists, contact Oracle Support Services.
    I can't sign in workspace with anyone - weblogic, jcooper, etc. For weblogic user, I don't have any problem of login other applications. I find jcooper and bpm access in system-jazn-data.xml under $DOMAIN_HOME/config/fmwconfig directory.
    I'm running out of options to try. PLEASE HELP!!!!
    soa - 11.1.1.4
    weblogic - 10.3.4
    installed demo community users and it is installed in linux server.
    Currently we are using "DefaultAuthenticator - WebLogic Authentication Provider" that has a sufficient in the control flag.

    Well, I'm not total sure on whether we are using LDAP or not since I'm a new to weblogic. Perhaps you can tell me. We installed webLogic 10.3.4. My understanding is that this has embedded LDAP. All I did was to install demo users and groups. So currently we have defaultAuthenticator under myrealm. so are we using LDAP in this case?
    What's the exact path of Admin server?
    weblogic, soa_server1, bam_server1, osb_server1 are running on one linux box.

  • Error: Preset not found: '/etc/mkinitcpio.d/linux.preset' [Solved]

    Hi
    I tried to initial RAM disk with and got error message
    [root@archiso /]# mkinitcpio -p linux
    ==> ERROR; Preset not found: '/etc/mkinitcpio.d/linux.preset'
    And I found some answers but one said
    ALARM doesn't use an uInitrd.
    and another said I have to be install kernel26.
    How I can solve this?
    Last edited by rob111 (2013-08-31 17:41:46)

    rob111 wrote:I can switch between [root@archiso /] and root@archiso ~ #.
    This is confusing given this report. Could you confirm exactly the prompt you have when you try to run the configuration commands such as mkinitcpio -p linux.
    Because, as Trilby says, if you really have successfully installed base and base-devel and chrooted into the system, you should not be seeing these errors. Also, I am pretty sure that you should not have needed to verify the master key manually. When Arch first introduced signing, manual verification of keys was required but I am almost certain that is no longer the case. So something is almost certainly wrong at an earlier stage and you need to fix that, as Trilby says, before moving onto the next stage.
    EDIT: "As Trilby says" should now read "as Trilby says again" - I'm too slow.
    Last edited by cfr (2013-08-25 22:57:40)

  • NW ABAP - Error Message: Signal c00 received by operating system

    Hi,
    I have a problem starting the NSP instance. I have installed JAVA trial and then ABAP Trial.
    The SAP Management Console form the JAVA Installation recognizes the ABAP Installation and adds an Application Server entry.
    Starting the JAVA instance is no problem and obviously has to be done before starting ABAP.
    But when I start the ABAP instance named NSP I received the first time two error messages:
    - SAP-Basis System: Operating system call getservbyname_ failed (error no.   0  ) and
    - SAP-Basis System: Signal c00 received by operating system
    I got rid of the first one by prociding according to SAP Note Number: 39227:
    - I added the entry "sapmsNSP 3600/tcp " to my service file (%windir%/system32/drivers/etc/services)
    after that at least the process msg_server.exe started properly
    the disp+work.exe remains unstartable throwing still the second error message at me. Another message can be seen in the Syslog which is not marked as an error:
    "SAP-Basis System: > 3 possible network problems detected - check tracefile and adjus"
    Anybody an idea how I can get the ABAP instance running ( I hope I don't have to uninstall the JAVA instance )?
    Thanks for your help
    Torsten

    Hi,
    What's the instance numbers of your two SAP systems?
    If you first installed the Java system it's normally 00 and 01 for SCS and Java Instance. The ABAP system has to have an higher number (I always use a number +10 as the other instance e.g. 10 for the ABAP system to be on the save side).
    Seems your ABAP system now use the message Server of the J2EE Engine (sapmsNSP 3600/tcp) Check the profile of your ABAP system, there you will find the right entry for the message server to connect too.
    Hope this helps a little bit.
    Regards,
    Daniel

  • Java.exe error - Exception in thread "main" java.lang.NoClassDefFoundError:

    I've just started to take on java, and some examples from my learning source
    show the
    javac.exe fileincluded.java
    to
    java.exe fileincluded
    method. Although I can compile fine, when I go to run I get a java.exe error - Exception in thread "main" java.lang.NoClassDefFoundError:.
    I thought it was an environment variable problem as I'm running win xp.
    I've gotten the bin directory included, and I've previously had visual studio .net installed
    so the INCLUDE and LIB variables are set to those directories. I've tried to attach the java /lib and /bin directories by ";C:\PROGRAM FILES\JAVA\JDK1.5.0_02\LIB" etc,
    and that didn't work. What can I do to fix this problem?

    I get the I/O exception while reading: D:\Java\HelloApplet (The system cannot find the file specified). I have previously compiled HelloApplet.java into HelloApplet.class using javac.exe
    the two include statements in the sample HelloApplet I'm using are
    import java.applet.*;
    import java.awt.*;
    I also have a ComponentEventTest.java file which I've made into a class with these two
    include statements:
    import java.awt.*;
    import java.awt.event.*;
    I can however compile .java files which have no include statements.
    I take it that my classpath is not set correctly. Like I said earlier, I'm using winxp
    and trying to set the classpath variable under system. I have tried under user too. The path names I've tried setting are C:\Program Files\Java\jdk1.5.0_02\, C:\Program Files\Java\jdk1.5.0_02\lib, C:\Program Files\Java\jdk1.5.0_02\include, and C:\Program Files\Java\jdk1.5.0_02\;C:\Program Files\Java\jdk1.5.0_02\lib;C:\Program Files\Java\jdk1.5.0_02\include.
    How can I correct this? If it's possible, I would like to set a variable in windows
    versus having to type extra commands at the command prompt everytime I try
    to run a java class with java.exe. Any help would be much appreciated

  • Linux: /etc/pam.d/system-auth config w/ Sun Directory Server 6.2

    I have a RHEL 4.3 WS system authenticating againd a Sun Directory Server 6.2 ldap server. I've configured my linux as an ldap client according to Redhat and Sun docs:
    http://kbase.redhat.com/faq/FAQ_79_6031.shtm
    http://www.sun.com/bigadmin/features/articles/nis_ldap_part3.jsp#P3
    My problem is with the /etc/pam.d/system-auth file. I've configured it according to the above sun doc but receive an error in /var/logs/ messages with this one line:
    account    [default=bad   success=ok user_unknown=ignore err=ignore
    authinfo_unavail=ignore] /lib/security/$ISA/pam_ldap.soThe error returned is:
    Mar  5 22:54:29 hostname sshd: PAM pam_parse: expecting return value;
    [...err=ignore authinfo_unavail=ignore]Login works fine if I comment that line, but I'd like to correct the error in that statement. Any help would be appreciated.
    Here is my entire /etc/pam.d/system-auth file:
    #%PAM-1.0
    # This file is auto-generated.
    # User changes will be destroyed the next time authconfig is run.
    auth        required      /lib/security/$ISA/pam_env.so
    auth        sufficient    /lib/security/$ISA/pam_unix.so likeauth
    nullok
    auth        sufficient    /lib/security/$ISA/pam_ldap.so
    use_first_pass
    auth        required      /lib/security/$ISA/pam_deny.so
    account     required      /lib/security/$ISA/pam_unix.so
    account     sufficient    /lib/security/$ISA/pam_succeed_if.so uid <
    100 quiet
    account    [default=bad   success=ok user_unknown=ignore err=ignore
    authinfo_unavail=ignore] /lib/security/$ISA/pam_ldap.so
    account    [default=bad   success=ok user_unknown=ignore err=ignore
    authinfo_unavail=ignore] /lib/security/$ISA/pam_ldap.so
    account     required      /lib/security/$ISA/pam_permit.so
    password    requisite     /lib/security/$ISA/pam_cracklib.so retry=3
    password    sufficient    /lib/security/$ISA/pam_unix.so nullok
    use_authtok md5 shadow nis remember=12
    password    sufficient    /lib/security/$ISA/pam_ldap.so use_authtok
    password    sufficient    /lib/security/$ISA/pam_unix.so nullok
    use_authtok md5 shadow
    password    required      /lib/security/$ISA/pam_deny.so
    session     required      /lib/security/$ISA/pam_limits.so
    session     required      /lib/security/$ISA/pam_unix.soThanks.
    keywords:
    linux ldap sun directory server pam.d system-auth

    You do realize there is a decdicated Directory Server forum?
    It can be readily found on the Enterprise System forum page.
    http://forum.java.sun.com/index.jspa?tab=es

  • HELP Needed with this error:   Exception in thread "main" java.lang.NoClass

    Folks,
    I am having a problem connecting to my MSDE SQL 2000 DB on a WindowsXP pro. environment. I am learning Java and writing a small test prgm to connect the the database. The code compiles ok, but when I try to execute it i keep getting this error:
    "Exception in thread "main" java.lang.NoClassDefFoundError: Test1"
    I am using the Microsoft jdbc driver and my CLASSPATH is setup correctly, I've also noticed that several people have complained about this error, but have not seen any solutions....can someone help ?
    Here is the one of the test programs that I am using:
    import java.sql.*;
    * Microsoft SQL Server JDBC test program
    public class Test1 {
    public Test1() throws Exception {
    // Get connection
    DriverManager.registerDriver(new
    com.microsoft.jdbc.sqlserver.SQLServerDriver());
    Connection connection = DriverManager.getConnection(
    "jdbc:microsoft:sqlserver://LAPTOP01:1433","sa","sqladmin");
    if (connection != null) {
    System.out.println();
    System.out.println("Successfully connected");
    System.out.println();
    // Meta data
    DatabaseMetaData meta = connection.getMetaData();
    System.out.println("\nDriver Information");
    System.out.println("Driver Name: "
    + meta.getDriverName());
    System.out.println("Driver Version: "
    + meta.getDriverVersion());
    System.out.println("\nDatabase Information ");
    System.out.println("Database Name: "
    + meta.getDatabaseProductName());
    System.out.println("Database Version: "+
    meta.getDatabaseProductVersion());
    } // Test
    public static void main (String args[]) throws Exception {
    Test1 test = new Test1();

    I want to say that there was nothing wrong
    with my classpath config., I am still not sure why
    that didn't work, there is what I did to resolved
    this issue.You can say that all you like but if you are getting NoClassDefFound errors, that's because the class associated with the error is not in your classpath.
    (For future reference: you will find it easier to solve problems if you assume that the problem is your fault, instead of trying to blame something else. It almost always is your fault -- at least that's been my experience.)
    1. I had to set my DB connection protocol to TCP/IP
    (this was not the default), this was done by running
    the
    file "svrnetcn.exe" and then in the SQL Server Network
    Utility window, enable TCP/IP and set the port to
    1433.Irrelevant to the classpath problem.
    2. I then copied all three of the Microsoft JDBC
    driver files to the ..\jre\lib\ext dir of my jdk
    installed dir.The classpath always includes all jar files in this directory. That's why doing that fixed your problem. My bet is that you didn't have the jar file containing the driver in your classpath before, you just had the directory containing that jar file.
    3. Updated my OS path to located these files
    and....BINGO! (that simple)Unnecessary for solving classpath problems.
    4. Took a crash course on JDBC & basic Java and now I
    have created my database, all tables, scripts,
    stored procedures and can read/write and do all kinds
    of neat stuff.All's well that ends well. After a few months you'll wonder what all the fuss was about.

  • Error while performing SSO with java application

    hi ALL ,
    I got rhe following error when i call a java application in portal  using ticket logon sso
    Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    com.sap.test.TicketVerifierException: Request does not contain cookies
         at com.sap.test.TicketVerifierServlet.getSSOCookie(TicketVerifierServlet.java:149)
         at com.sap.test.TicketVerifierServlet.getUserFromRequest(TicketVerifierServlet.java:94)
         at com.sap.test.TicketVerifierServlet.doPost(TicketVerifierServlet.java:80)
         at com.sap.test.TicketVerifierServlet.doGet(TicketVerifierServlet.java:68)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:484)

    Hi Sarang,
    It seems you are following the two basic pre-req.
    It may be now possible that your browser might be not allowing cookies. Which browser are u using? Version etc?
    Right now u can try two things:
    1) When you have logged into portal, type the following command in the adress bar "javascript:alert(document.cookie)". This will give u a popup displaying the cookies formed when logged into portal
    2) Use some software like HTTPWatch or ieHeaders and find out the details. It will give you all the cookie details etc.
    You should be able to see the JSESSIONID, MYSAPSSO2 cookies...Let me know the result of above..
    Regards
    Gaurav

Maybe you are looking for