How to use jcifs to access SMB share via webdynpro app ?

Hello All,
I am trying to access a protected intranet share via my webdynpro application. I have uses jcifs api to access the jcifs functions. However, I am stuck with running the application on webAS as it gives a runtime exception  java.lang.NoClassDefFoundError: jcifs/smb/SmbFile .
I included the jcifs jar into a lib project and also deployed it onto the j2ee engine. Compilation works fine now, but it fails it runtime. Can someone please tell me what is the best way to use external libraries i.e jars in one's application so that it has no runtime errors on j2ee engine ?

thkx Mahesh for the info, i had been trying the destination service method for some time now
but there is a portal runtime exception when i try
destinationService.getDestinationNames("RFC") or for WebService or HTTP
i check the default trace and this is the error stated there
Caused by: com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: /usr/sap/<>/<>/j2ee/cluster/server0/bin/ext/security.class/tc_sec_saml_util.jar(com/sap/security/core/server/util0/IDException.java):20: class IDException is public, should be declared in a file named IDException.java
(source unavailable)
/usr/sap/<>/<>/j2ee/cluster/server0/bin/ext/security.class/tc_sec_saml_util.jar(com/sap/security/core/server/util0/IDMessage.java):48: class IDMessage is public, should be declared in a file named IDMessage.java
(source unavailable)
/usr/sap/<>/<>/j2ee/cluster/server0/bin/ext/security.class/tc_sec_saml_util.jar(com/sap/security/core/server/util0/IDExceptionMessage.java):10: class IDExceptionMessage is public, should be declared in a file named IDExceptionMessage.java
(source unavailable)
/usr/sap/<>/<>/j2ee/cluster/server0/bin/ext/security.class/tc_sec_saml_util.jar(com/sap/security/core/server/util0/ExternalizableException.java):19: class ExternalizableException is public, should be declared in a file named ExternalizableException.java
(source unavailable)
/usr/sap/<>/<>/j2ee/cluster/server0/bin/ext/security.class/tc_sec_saml_util.jar(com/sap/security/core/server/util0/LogUtil.java):26: class LogUtil is public, should be declared in a file named LogUtil.java
(source unavailable)
5 errors
Please help regarding this.

Similar Messages

  • How to use Find option not Filter in my webdynpro app

    Hi,
         I have a table which displays data extracted from R/3 System.
    Now if i want to see a particular number record how to do that with out using Right and Left arrows of table.
    Here i tried by using filters..but i want to enter the record Number not the data of the record.
    Can anyone please let me know how to do this...
    Thanks and regards,
    Chandrashekar.

    Hi,
    Add a search button to your table toolbar. Onclick of that you can take the user to the specified record entered in the input field. Add this inputField also to your toolbar.
    Add the following lines of code to your search button event:
    if(wdContext.nodeSearchRec().currentSearchRecElement().getSearch() == null){
              wdComponentAPI.getMessageManager().reportException("Please enter a record Id",false);
    else { 
    int leadSelect = wdContext.nodeSearchRec().currentSearchRecElement().getSearch();
    wdContext.nodeEmployee.setLeadSelection(leadSelect);
    where node SearchRec.Search is the attribute bound to your search inputField.
    And nodeEmployee is the datasource of your table.
    If you have any further queries, you can come back to me.
    thanks & regrads,
    Manoj
    Message was edited by:
    Manoj
            Manoj Kumar

  • How to use JAPI to Access Essbase 6.5

    Do anyone knows How to use JAPI to Access Essbase 6.5?
    I was told to install Enterprise Services 7.3.1.10.
    But when I test eds samples, I can connect Essbase but can not get data from Essbase.
    Need to change another Enterprise Services(I was told 7.3.1.10 is the latest version), or do some config in 7.3.1.10.
    Thanks a lot in advance

    Gee is correct. You will need to use EAS 7.x to add an analytic server. You will also have to do a few other tasks such as synch'ing security, etc.
    Further, as you are not accessing the exact same version of Essbase as your version of EDS, there is a property setting you will have to change to be successful. In eds\7.1.3\bin, open essbase.properties and modify the server.olap.direct setting to set it to false. What this setting does is forces EDS to use it's own private set of C API files and to use them for all calls to Essbase. Otherwise, EDS will attempt to use pure Java calls to the server. Unfortunately, the pure Java calls were implemented in an 'evolutionary' manner so every Essbase version got more calls until sometime in the System 9 timeframe. By the time 9.3 shipped (and maybe before, I would have to check), all calls the server are pure Java and that property setting is no longer available.
    Tim Tow
    Oracle ACE
    Applied OLAP, Inc

  • How can a file be accessed by more than one app?

    Hi,
    I am new to iOS4 and the whole iPhone, iPod technology. I am really a windows user.
    How can a file be accessed by more than one app. In my case I want to transfer a midi file from my PC to my iPod Touch and be able to open it from a couple of Midi Players which I am evaluating - or does each Midi Player have to import the file seperately for its own use?
    Thanks,
    Sam

    It seems to me that what you want is exactly a session bean will do. The EJB container is responsible to maintain a certain number instances (configurable) of your session bean and serve multiple clients at the same time. Session beans are not necessarily destroyed after serving a client. If you configure your ejb server to have a pool size of 2 to 100, then you will always have at least 2 instances (no more than 100 even there are a lot of client access) of this ejb ready to serve. The only thing not clear to me is that do you want to use only ONE instance of this bean or you don't care as long as multiple clients can access this bean's service? Since you mentioned that there is not a real database access, you can certainly use a Singleton but a 'regular' session bean with static fields should do it also if these fields will not be modified by clients.
    PC

  • Hi all, My Old Laptop that had my Itunes, has died a death and cannot be saved. How can I save or access all my music and apps now? Can I set up a new Itunes account? Also I am getting an upgrade to Iphone 4 can I transfer all my music and apps on to it?

    Hi all, My Old Laptop that had my Itunes, has died a death and cannot be saved.
    How can I save or access all my music and apps now?
    Can I set up a new Itunes account?
    Also I am getting an upgrade to Iphone 4 ,can I transfer all my music and apps on to it?

    roaminggnome wrote:
    Why would you set up a new account?
    Copy everything from your backup copy of your old computer to your new one.
    Its wrong to assume that everyone has a backup copy.
    are you PC or Mac?

  • How to use traffic lights concept in alv in webdynpro abap

    Hai ,
              How to use traffic lights concept for alv in webdynpro abap. If possible give me some code.

    Hi Ravi,
    You can create ICON  to get traffic light.
    Go through this step by step.. in this example
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1190424a-0801-0010-84b5-ef03fd2d33d9?quicklink=index&overridelayout=true
    Please go through this...
    Re: Display ICON in the ALV table column
    Re: Image in ALV
    cheers,
    Kris.

  • HT1382 How to use the i-tunes to backup my iphone apps, thanks

    How to use the i-tunes to backup my iphone apps, thanks

    Plug the iPhone into the computer.
    From the Summary tab, select the option to backup to iTunes on the computer.
    Sync.

  • Trying to access SMB share, can read but not write, I use the domain account to autenticate and domain account has access to the share. its a samba domain and im a Windows Admin by trade.

    I have two  I Mac's Intel i7 models.
    I have some problems getting them to write files to SMB shares.
    The domain user account I use when requested to enter when i first try to connect to the share seems to go though without a problem and it presents me with a list of mounts (shares) I select one and the folder opens, I can read files and copy them but I cant write to any of the folders.
    I have also mounted the network locatiosn to a folder from the terminal while also specifying a user name and password to use but this also doesnt allow the specified user account to write data to the share.
    I have confirmed the user account can write to the share by having the user do so from a windows box.
    any help from any of you mac guys would be great!!!!
    Im a windows fan boy / Windows Server based Network Administrator and am slowly becomming a fan of your macs (mainly due to the Unix terminal access letting me realise there is more control to be had than most haters would lead you to believe).
    Peace Out

    I should add that I originally formatted the problematic drive for FAT32 from the Mac, but then the WinXP computer couldn't see the drive when I plugged it in directly via USB. That's why I went with Seagate's utility to format it.

  • Problem accessing smb share since change to Windows 8

    Hy,
    I have a smb share folder on my router (I connect a pen and is shared in the network), with no password.
    I am able to access from Windows 7 and Linux, but not from Windows 8.
    The reported error is:
    The device or resource (SERVER) is not set up to accept connections on port "The File and printer sharing (SMB)".
    Which is obviously wrong, since I can access it from other OS.
    How can I solve this or get more information on the underlying issue.
    I've read several threads in here about similar problems, but nothing worked in my case (services are running, smb-cifs is active and there's no error about IPRStackSize and I turned off firewall and antivirus).
    Thanks in advance

    is your network public or private? in order to access shares you need to be on a private network in windows 8.
    Change Network Status Using Settings Charm
    1. Press Windows Key + I combination on the keyboard to reveal the
    Settings charm. Now in the bottom, click on the Network icon there. Alternatively, you can click on the
    Network icon in the notification area on the
    taskbar.
    2. Now in the Networks section, right-click over the network whose status you’re looking for to change, select
    Turn sharing on or off.
    3. Finally, you have the options to select between Private and
    Public status for your network. If you select Yes, turn on sharing or connect to devices, the network will be switched to Private status.
    <ins class="adsbygoogle" data-ad-client="ca-pub-5950002284129980" data-ad-slot="6708462760" style="width:336px;height:280px;display:inline-block;"></ins>

  • Windows machines unable to access smb shares

    I know many people are having problems with smb on osx server, but my issues seems very basic, so I will try to ask for help here.
    Basically, I have set up a single folder for sharing on a Mac Mini running OSX Mountain Lion Server. Directory services are provided by a WIndows 2003 server, and I have joined OSX Server to that, and am able to see all AD users and groups correctly. I have checked the boxes specifying I wish to share as afp, smb and webdav and also made shares accessible to guests.
    Now, if I use a mac client, I can correctly browse the afp and smb shares, and the latter work via finder and smbutil as expected, including access via AD users, connection and file transfer.
    If, instead, I use a windows client (I tried both Win7Pro and WinXP), while being able to ping the osx server machine, if I try to "explore" (entering \\hostname in explorer) the shares I get a "Network error: impossible to access ..." (approximate translation, sorry ). I tried both using the hostname and the ip address, always getting the same result.
    If I try via prompt with "net view \\hostname" I get a System Error 53 (Unable to find network path).
    Does anyone know if I am doing anything wrong?
    Thanks
    Christian

    I have done some further testing, and I can report that occasionally, I am able to connect from a windows 7 professional machine by issuing the following command:
    net use z:\\hostname\share /user:DOMAIN\username
    mostly this command returns a 53 system error, but sometimes I am asked for the user's password and am then able to access the shared folder for a brief time.

  • All of the sudden our Mac OS X 10.7.4 operating systems are very slow to access SMB shares on our MS2008 file server

    Monday all of our OS X Lion Macs can access SMB file shares on our file server and we come in Tuesday morning and now they take at least 1 minute to pull up the file share and sometimes longer.   Windows PC's are immediate when connecting to the same shares.  I've seen where others with different versions of OS Xhave this issue but what gets me is it happend all at once to machines that were working perfectly the day before.
    I've also looked into changes on our servers and as far as I can tell there have been none. 
    Does anyone have any ideas?     Thanks....

    This solution worked for me!
    I had a MobileMe account with iDisk configured on my MBP even though I never actually used it.  The night they officially shutdown MobileMe the next morning I could no longer connect to my work's SMB file shares (Windows server shares).  I found a work around based on some other support threads.  If in the "Connect to Server" address field in Finder I specified my crendentials (i.e. smb://username:password@server/) then it worked perfectly fine.  This told me it was a crendential issue.  Simply deleting the saved server crendentials in KeyChain Access did not resolve the issue.  No matter what I would did it would not prompt for login crendentials.  Since my Mac login is different than my work domain login I was dead in the water without manually specifiying (not a permenant solution).
    After finding this thread I did the following steps and it resolved the issue 100%.
    1. Open Terminal
    2. cd ~/Library/Preferences
    3. ls .GlobalPreferences.plist to verify file exists in that directory
    4. rm .GlobalPreferences.plist to delete file
    5. ls .GlobalPreferences.plist to verify file no longer exists
    4. Go to Force quit to relaunch Finder
    5. Lauch "Connect to Server" within Finder and all was good, server connects perfectly
    Thank you very much DavidRSewell!!!!

  • Can't access smb shares after 10.9.5 upgrade

    After the upgrade to 10.9.5 (from 10.9.4) I can not anymore access my smb shares on a NAS server (Thecus N3200PRO) dispite the upgrade says that it "improves the reliability of accessing files located on an SMB server". It had the exact opposite effect with my system.
    The NAS server is visible, but after I log in no files or folders are shown (finder window is empy). Also to disconnect the smb share it takes much longer than usual.
    To access it with cifs protocol does not help, neither.
    Also the workaround by Reinfire (Michael Larson in Can't connect to SMB share after upgrade, to use smb1 instead of the upgrade) does not help at all.
    Any solution out there?
    -- thanks

    hi there,
    just a wild guess, but have you tried to connect via Terminal?
    /sbin/mount_smbfs //userid:password@ip-of-server/name-of-share
    or
    /sbin/mount_smbfs //userid:password@dns_name-of-server/name-of-share
    You need to have administrative privileges on your Mac to execute said command successfully.
    For additional information you can enter (while in Terminal):
    man mount_smbfs
    and
    man nsmb.conf
    Glad to hear the problem is solved

  • Mac Pro accessing SMB shares on a windows server. After being left on all night, the MP gets "file unavailable" messages when opening files on the share.

    Windows Server 2003 accessed by several PCs and Macs without previous incident.  This one Mac Pro after it's been left on all night (running jobs, or just left idle), and a user tries to reconnect to an SMB share, can go to Finder, Go, Connect to Server, enter the Server info as normal, login as normal, view the directories and files as normal, but as soon as they try to open anything they are given one of the following messages:
    "Word cannot open this document. The document might be in use, the document might not be a valid Word document, or the file name might contain invalid characters (for example, \ /). (<filename>)" - when opening a word document
    "<filename> could not be found.  Check the spelling of the file name and verify that the file location is correct.  If you are trying to open the file from your list of most recently used files on the File menu, make sure that the file has not been renamed, moved, or deleted." - when opening an excel spreadsheet
    Note that these messages are popping up AFTER the user has double-clicked on them to open them.  So the files are certainly there and correctly named (and contain only letters, numbers and underscores).  After restarting the Mac Pro, the error messages are gone and the files can be accessed without problem. Would like it so that they can connect to the server without having to restart every day.

    Windows Server 2003 accessed by several PCs and Macs without previous incident.  This one Mac Pro after it's been left on all night (running jobs, or just left idle), and a user tries to reconnect to an SMB share, can go to Finder, Go, Connect to Server, enter the Server info as normal, login as normal, view the directories and files as normal, but as soon as they try to open anything they are given one of the following messages:
    "Word cannot open this document. The document might be in use, the document might not be a valid Word document, or the file name might contain invalid characters (for example, \ /). (<filename>)" - when opening a word document
    "<filename> could not be found.  Check the spelling of the file name and verify that the file location is correct.  If you are trying to open the file from your list of most recently used files on the File menu, make sure that the file has not been renamed, moved, or deleted." - when opening an excel spreadsheet
    Note that these messages are popping up AFTER the user has double-clicked on them to open them.  So the files are certainly there and correctly named (and contain only letters, numbers and underscores).  After restarting the Mac Pro, the error messages are gone and the files can be accessed without problem. Would like it so that they can connect to the server without having to restart every day.

  • How to use same credentials in third party web page/app/system as in Office 365 and Share Point?

    I want my users to be able to login with same username/password in my reporting system as in they use for their email, office 365 and share point.
    Since the web is in PHP i found some ideas that use CURL to get the cookie but i['m wondering if there is another way to do that?
    All API show cases and docs that i looked are so confusing that i can't even figure out if it is possible at all and how. It would be great to be able to reset passwords through my system and also to create new users. So that i have all centralized in one
    place.

    Hi,
    Here is an article which describes how to create and configure a single tenant PHP application that uses the single sign-on capabilities of Azure Active Directory.
    http://azure.microsoft.com/en-us/documentation/articles/active-directory-php-web-single-sign-on/
    A sample that shows how to use Azure Active Directory and single sign-on for PHP web sites is available at
    https://github.com/WindowsAzure/azure-sdk-for-php-samples/tree/master/WAAD.WebSSO.PHP 
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How to use Javamail for accessing additional mailboxes -IMAP, Exchange 2010

    hi,
    I want to access a shared mailbox (NOT FOLDER) via Javamail API (1.4.5) using IMAP(s) with plain logon. The mailserver is a Exchange Server 2010.
    User: user1 ([email protected])
    pwd: xxxx
    shared mailbox: [email protected]
    Properties:
    mail.imaps.socketFactory.port = 993
    mail.imaps.starttls.enable = true
    mail.imaps.socketFactory.class = javax.net.ssl.SSLSocketFactory
    mail.imaps.socketFactory.fallback = false
    username = [email protected]
    password = xxxx
    I´ve managed to get access to the user1 - mailbox:
    Session session = Session.getInstance(properties, new ExchangeAuthenticator(username, password));
    session.setDebug(true);
    Store store = session.getStore("imaps");
    store.connect(imapHost, username, password);
    --> this works just fine! But now i want to access the additional mailbox by changing the login-String:
    [email protected]/shared_MB (user@domain/additional_MB)
    --> unfortunately I´m getting an "NO AUTHENTICATE" message:
    DEBUG: setDebug: JavaMail version 1.4.5
    DEBUG: getProvider() returning javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc]
    DEBUG: mail.imap.fetchsize: 16384
    DEBUG: mail.imap.statuscachetimeout: 1000
    DEBUG: mail.imap.appendbuffersize: -1
    DEBUG: mail.imap.minidletime: 10
    DEBUG: trying to connect to host "host.domain.com", port 993, isSSL true
    * OK The Microsoft Exchange IMAP4 service is ready.
    A0 CAPABILITY
    * CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN UIDPLUS CHILDREN IDLE NAMESPACE LITERAL+
    A0 OK CAPABILITY completed.
    DEBUG IMAP: AUTH: NTLM
    DEBUG IMAP: AUTH: GSSAPI
    DEBUG IMAP: AUTH: PLAIN
    DEBUG: protocolConnect login, host=host.domain.com, [email protected]/shared_MB, password=<non-null>
    DEBUG IMAP: AUTHENTICATE PLAIN command trace suppressed
    DEBUG IMAP: AUTHENTICATE PLAIN command result: A1 NO AUTHENTICATE failed.
    javax.mail.AuthenticationFailedException: AUTHENTICATE failed.
    I was able to get access with Thunderbird and also with the Exchange OWA-Client, so I think there is something missing in my code...
    or is it just impossible to get access to a different mailbox using javamail and plain-auth?
    Thank you in advance.

    Thanks bshannon, that was a great idea!
    I haven´t found an solution yet, but I have maybe identified the real problem:
    Here is some interessting Thunderbird - Logging stuff:
    744[7161040]: try to log in
    744[7161040]: IMAP auth: server caps 0x1187235, pref 0x1006, failed 0x0, avail caps 0x1004
    744[7161040]: (GSSAPI = 0x1000000, CRAM = 0x20000, NTLM = 0x100000, MSN = 0x200000, PLAIN = 0x1000, LOGIN = 0x2, old-style IMAP login = 0x4)auth external IMAP login = 0x20000000
    744[7161040]: trying auth method 0x1000
    744[7161040]: got new password
    744[7161040]: IMAP: trying auth method 0x1000
    744[7161040]: PLAIN auth
    744[7161040]: 7082000:xmail.domain.com:NA:SendData: 2 authenticate plain
    744[7161040]: ReadNextLine [stream=7ec9e88 nb=3 needmore=0]
    744[7161040]: 7082000:xmail.domain.com:NA:CreateNewLineFromSocket: +
    744[7161040]: 7082000:xmail.domain.com:NA:SendData: Logging suppressed for this command (it probably contained authentication information)
    744[7161040]: ReadNextLine [stream=7ec9e88 nb=27 needmore=0]
    744[7161040]: 7082000:xmail.domain.com:NA:CreateNewLineFromSocket: 2 NO AUTHENTICATE failed.
    744[7161040]: authlogin failed
    744[7161040]: marking auth method 0x1000 failed
    ---> okay, so PLAIN AUTH is failing.....
    744[7161040]: IMAP auth: server caps 0x1187235, pref 0x1006, failed 0x1000, avail caps 0x4
    744[7161040]: (GSSAPI = 0x1000000, CRAM = 0x20000, NTLM = 0x100000, MSN = 0x200000, PLAIN = 0x1000, LOGIN = 0x2, old-style IMAP login = 0x4)auth external IMAP login = 0x20000000
    744[7161040]: trying auth method 0x4
    744[7161040]: got new password
    744[7161040]: IMAP: trying auth method 0x4
    744[7161040]: old-style auth
    744[7161040]: 7082000:xmail.xmail.domain.com:NA:SendData: Logging suppressed for this command (it probably contained authentication information)
    744[7161040]: ReadNextLine [stream=7ec9e88 nb=23 needmore=0]
    744[7161040]: 7082000:xmail.domain.com:NA:CreateNewLineFromSocket: 4 OK LOGIN completed.
    744[7161040]: login succeeded
    --> okay, so Thunderbird is using "old-style IMAP login" and is successful.
    Unfortunately I have no idea what that actually means or how to use it in Javamail (is it even supported?). Any suggestions?

Maybe you are looking for

  • How to give grant permission on packaged procedure

    Hi , This is Ramesh  what is my requirement is i want give permission packaged procedure that means i given permission  only procedure not entire package it is possible or  not? if yes then why given example

  • What's this tiny icon for?

    I have a "folder" called "games" on my iPod Touch. In it are three games. Today inside the FOLDER icon, where the teeny-tiny icons of the three games icons are, there is a fourth icon. It doesn't appear if I open the folder; then the three standard g

  • How to Import an Editable Sequence?

    In Premiere 6.5 to add an existing project to the timeline I just went to File-Import-Project-(select the .ppj project)-choose Beg/Edit Line/or End-OK and the project's timeline would appear on my timeline. I cannot figure out how to do this in Premi

  • Converting 1.23E5 to 0.0000123

    dear sir, when i print a double value it is printing as 1.23E5. but i want it to be 0.0000123. how to do it? thanks in advance Simon Moses.

  • Smart Folders: filtering file labels by the NAME of the label

    I am using Smart Folders to organize some files. Spotlight searches are quite powerful, but I'd like to know if there's more I can do with file labels. I am using kMDItemFSLabel values to filter my smart folders, but this presents a small inconvenien