Netscape library in eclipse

how can i add netscape.jar to eclipse there is no archive file such that on linux version i have eclipse 3.3. and also i could not find where to download it.
i wanna import netscape.javascript.* btw:)
THX for YOUR REPLIES

thx i have found it on the web it is in the jar file plugins.jar where at /jre/lib/plugins.jar. i added it to classpath then it is ok:)

Similar Messages

  • How to import netbeans midp component library into eclipse?

    Hi,
    I want the steps to import the netbeans midp library for example i want to use tableitem provided by netbeans midp library into eclipseME.
    import org.netbeans.microedition.lcdui.SimpleTableModel;
    import org.netbeans.microedition.lcdui.TableItem;
    i want to import these tableitem.
    Thank you

    To move an iPhoto Library to a new machine:
    Link the two Macs together: there are several ways to do this: Wireless Network, Firewire Target Disk Mode, Ethernet, or even just copy the Library to an external HD and then on to the new machine...
    But however you do choose to link the two machines...
    Simply copy the iPhoto Library from the Pictures Folder on the old Machine to the Pictures Folder on the new Machine.
    Then launch iPhoto. That's it.
    This moves photos, events, albums, books, keywords, slideshows and everything else.
    Regards
    TD

  • Problem :  Native Library already loaded in another classloader

    I created a shared library HaspKeyAPI.dll by using JNI and add path to Java class library. I need to call native functions in my servletAction class to check some information in a key. Sometimes not always, I met �java.lang.UnsatisfiedLinkError: Native Library C:\eclipse\workspace\HaspKey\SharedLib\HaspKeyAPI.dll already loaded in another classloader� problem. I have to restart tomcat server then to restart my web app.
    Does anyone know how to fix it?
    Thank you in advance!
    ////////////////////////////////////my native function class, a singleton class////////////////////////////////
    package haspkey.api;
    import java.util.Collection;
    import java.util.Vector;
    import haspkey.HardwareSecurityKey;
    Public class HaspKeyAPI {
    Public static final int KEYEXIST = 1;
    //A Singleton Class
    private static HaspKeyAPI haspKeyAPI;
    private HaspKeyAPI()
    public static HaspKeyAPI getSingletonObject()
    if ( haspKeyAPI== null)
    haspKeyAPI = new HaspKeyAPI();          
    return haspKeyAPI;
    public Object clone()
         throws CloneNotSupportedException
    throw new CloneNotSupportedException();
    /**********use native functions to call hasp C API***********/
    public native int keyPresent(int password1, int password2);
    public native int getId(int password1, int password2);
    public native void readBlock(int startMemoryLocation, int size,
    byte[] block, int password1, int password2);
    public native void writeBlock(int startMemoryLocation,int size, byte[] block, int password1,
    int password2);
    public native boolean decodeData(int size, byte[] block, int password1,
    int password2);
    public native boolean encodeData(int size, byte[] block, int password1,
    int password2);
    static {
    System.loadLibrary("HaspKeyAPI");
    private int getPrivMachineSpeed(boolean decrypt, int pass1, int pass2, String MLOCRTypeCode){
    byte[] block = new byte[8];
    int privMachineSpeed = 0;
    boolean isNumeric = true;;
    readKeyMemory(40,8,block, decrypt, pass1, pass2);
    if(block.length!=8){
    return -1;
    }else{
    String s = new String(block);
    for(int n=0; n<3; n++){
    if(s.charAt(n)<48 || s.charAt(n)>57){
    isNumeric = false;
    if(isNumeric){
    privMachineSpeed = Integer.parseInt(s.substring(0,3));
    return privMachineSpeed;
    public HardwareSecurityKey getHardwareSecurityKey(boolean decrypt, int pass1, int pass2, String AuthorizationCodes,String MLOCRTypeCode){
    HardwareSecurityKey key = new HardwareSecurityKey();
    if(keyPresent(pass1,pass2)==KEYEXIST){
    key.setPrivKeyID(getId(pass1, pass2));
    key.setPrivMachineSpeed(getPrivMachineSpeed(true, pass1,pass2, MLOCRTypeCode));
    }else{
    return null;
    /////////////////////////////// a class include some static final information to call the native function///////////////
    import com.bowebellhowell.haspkey.api.HaspKeyAPI;
    import com.bowebellhowell.winsort.vo.haspkey.HardwareSecurityKey;
    public class HaspKey{
    public static final String MLOCRTypeCode ="mmmmmmmmmmmmmmm";
    public static final String AuthorizationCodes = "bbbbbbbbbbbbbbbb";
    public static final int p1 = 0;
    public static final int p2 = 0;
    public static HardwareSecurityKey getHardwareSecurityKey(){
    HaspKeyAPI key = HaspKeyAPI.getSingletonObject();
    return key.getHardwareSecurityKey(true,p1,p2,AuthorizationCodes,MLOCRTypeCode);
    /////////////////////////////////// a servlet to call native function///////////////////////////////////
    public class LogonAction extends Action {
         public ActionForward execute(
              ActionMapping mapping,
              ActionForm form,
              HttpServletRequest request,
              HttpServletResponse response)
              throws Exception {
              int n = HaspKey.isKeyPresent();
              if(n!=1){
              if(n==2){
              message = "KeyDriverNotMatch";          
              }else if(n==3){
              message = "KeyOldModel";
              }else if(n==4){
              message = "KeyPasswordNotMatch";
              }else if(n==-1){
              message = "keyNotExist";
              request.getSession().setAttribute("message",message);
    java.lang.UnsatisfiedLinkError: Native Library C:\eclipse\workspace\HaspKey\SharedLib\HaspKeyAPI.dll already loaded in another classloader
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1551)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1511)
    at java.lang.Runtime.loadLibrary0(Runtime.java:788)
    at java.lang.System.loadLibrary(System.java:834)
    at haspkey.api.HaspKeyAPI.<clinit>(HaspKeyAPI.java:76)
    at util.HaspKey.isKeyPresent(HaspKey.java:35)
    at LogonAction (LogonAction .java:65)

    Hi EveryBody:
    i working in 2 servlets, these servlets import a login.jar library and login.jar call to Login.dll (a native Library)
    then. when i start second servlet i have this message
    java.lang.UnsatisfiedLinkError: Native Library dllLogin.dll already loaded in another classloader
    i read about class loader and i know about a only one load for native library but i don't know how resolve this exception because both servlets need dllLogin.dll to validate the user
    please anybody knows how or have any idea?
    Kind Regards
    Edson
    --sorry i know. my english is very bad                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Eclipse - adding libraries

    kk ive just copied my old workspace in (had to reformat my computer) and i get the error that i need the mysql connector. Ive never got that error b4. ne way, i download teh connector, add it into the jars in the projects build path, but the error wont go away. any ideas?
    Project Elcire is missing required library: C:\eclipse\mysql-connector-java-3.1.14\mysql-connector-java-3.1.14\mysql-connector-java-3.1.14-bin.jar'

    It sounds like it is looking for this file but it no longer exists in this location. If you have it on your computer then right-click and select add external jars so Eclipse knows where to look for this file.

  • Different behavior when running in Eclipse and on Tomcat

    I am having a problem because the program that I wrote, tested, and work fine on Eclipse doesn't have the same behavior when I convert it to a Web Service and called by a client.
    I have not this strange behavior. See this code:
    NamedNodeMap attrs = node.getAttributes();
    System.out.println(attrs.getNamedItem("performance"));When I run it on exist I got something like this:
    org.apache.crimson.tree.AttributeNode1@11bed71which should be correct since attrs.getNamedItem() return a Node.
    But! When I run it as a web service on Axis hosted on Tomcat I got
    performance="3758.0"???!!!
    Also, when I do something like
    System.out.println(node)In Eclipse I got the whole XML file like this:
    <root><sequence name="main" performance="3591.5" cost="63.5" reliability="4144965.2" availability="0.9863115" integrity="1.0" security="128.0">
              <switch name="switch-1" performance="3591.5" cost="63.5" reliability="4144965.2" availability="0.9863115" integrity="1.0" security="128.0">
                   <case condition="bpws:getVariableData('i') = 0" performance="3425.0" cost="77.0" reliability="1.0" availability="1.0" integrity="1.0" security="128.0">
                        <invoke name="invoke-2" partnerLink="HotelBooking" portType="nsxml2:HotelBooking" operation="searchHotel" inputVariable="searchHotelParam" outputVariable="searchHotelResult" serviceKey="95EDCDE0-46F6-11DA-BEB0-90CACF0DCD6A" />
                   </case>
                   <otherwise performance="3758.0" cost="50.0" reliability="8289929.5" availability="0.972623" integrity="1.0" security="128.0">
                        <while name="while-1" condition="bpws:getVariableData('i') > 0" performance="3758.0" cost="50.0" reliability="8289929.5" availability="0.972623" integrity="1.0" security="128.0">
                             <sequence performance="3758.0" cost="50.0" reliability="8289929.5" availability="0.972623" integrity="1.0" security="128.0">
                                  <invoke name="invoke-1" partnerLink="FlightBooking" portType="nsxml0:FlightBooking" operation="searchFlight" inputVariable="searchFlightParam" outputVariable="searchFlightResult" serviceKey="AD5A1880-46EC-11DA-B399-97115D85E15E" />
                             </sequence>
                        </while>
                   </otherwise>
              </switch>
         </sequence></root>but on Axis I got:
    [root: null]I'm confused. I think it might be because of the different version of the library between eclipse environment and axis environment. But the problem is, I can't figure out what JAR should I change. Can you give me a clue??

    DOM doesn't specify what the toString() method of Node etc. should return. So each implementation of DOM chooses something that seems reasonable to the implementers. If this isn't suitable for you then don't use the toString() method. (That's what System.out.println calls when you pass it an Object, in case you didn't know.)

  • See source code in Eclipse

    Hi,
    I'd like to see the source code of standard java library in Eclipse without downloading source code. Is that possible and how to do that?
    Thank you very much.
    Ran

    Normally, when you download a Java SDK, and you install it, it automatically installs a src.zip with it inside the JDK (for ex. C:\Java\sdk1.5_013) .
    If you then right click your project, take properties, select java build path and go to the libraries tab, you can see your JRE unsed by eclipse.
    When you open thatone, you have rt.jar, and several other jar files.
    You can edit the source attachment of every jar file (i don't know which one is needed) to point to this src.zip, and then you can open the sources.

  • Native LDAP Auth in PT 5.0.3

    I am attempting to use Native LDAP Authentication with version 5.0.3. In 5.0.2 it worked just fine, but with 5.03., log in fails. The LDAP settings are correct as confirmed by the provider validation. What do these errors mean and how do I fix them? Thanks.
    Validate ProviderSuccessfully connected to the Authentication Source.
    Here are the errors from PTSpy:
    Error Auth Source Providers LDAPProviderAuth.cpp(285) *** ERROR *** CLDAPAuthSourceProvider::LDAPGetHandle: ldap_bind_s failed with error 0x31.
    Warn Auth Source Providers LDAPProviderAuth.cpp(1030) LDAP error 0x31 (#49) description: Invalid credentials
    Warn Plumtree.dll PTSession.cpp(378) *** COM exception caught *** Error info: IDispatch error #16898 (0x80044402): [Invalid password.] (378,PTSession.cpp)
    Warn Portal UI - Infrastructure com.plumtree.uiinfrastructure.login.LoginHelper.InternalAttemptLogin() Unable to log in user Intranet/bottt: The user name, password, or authentication source entered is not recognized. Re-enter your login information below. Passwords are case sensitive._com.plumtree.openfoundation.util.XPException_ at com.plumtree.server.CIPTSession.Connect(String UserNameOrID, String Password, Object SecurityProviderInfo) at com.plumtree.portaluiinfrastructure.login.PTLoginHelper.internalLogin(String sUserName, String sPassword, String sLoginToken, Object token, Boolean bUseNumericConnect, Boolean bGuestLogin, ISessionManager subSession, IApplication application, String sRequestURL) at System.Environment.GetStackTrace(Exception e) at System.Environment.GetStackTrace(Exception e) at System.Environment.get_StackTrace() at com.plumtree.openfoundation.util.XPException.GetInstance(Exception e) at com.plumtree.portaluiinfrastructure.login.PTLoginHelper.internalLogin(String sUserName, String sPassword, String sLoginToken, Object token, Boolean bUseNumericConnect, Boolean bGuestLogin, ISessionManager subSession, IApplication application, String sRequestURL) at com.plumtree.portaluiinfrastructure.login.PTLoginHelper.AttemptLogin(String sUserName, String sPassword, Object token, Boolean bUseNumericConnect, ISessionManager subSession, IApplication application, String sRequestURL) at com.plumtree.uiinfrastructure.login.LoginHelper.InternalAttemptLogin(String strUserName, String strPassword, Object token, Boolean bUseNumericConnect, Boolean bGuestLogin, ISessionManager subSession, IApplication application, String strRequestURL, IXPRequest request, IWebData webData) at com.plumtree.uiinfrastructure.login.LoginHelper.AttemptLogin(String strUserName, String strPassword, Object token, Boolean bUseNumericConnect, ISessionManager subSession, IApplication application, String strRequestURL, IXPRequest request, IWebData webData) at com.plumtree.uiinfrastructure.login.LoginHelper.AttemptLogin(String strUserName, String strPassword, Object token, Boolean bUseNumericConnect, AActivitySpace asOwner, IXPRequest request, IWebData webData) at com.plumtree.portalpages.browsing.login.LoginModel.attemptLogin(IXPRequest request, IWebData webData) at com.plumtree.portalpages.browsing.login.LoginControl.CheckActionSecurityAndExecute(XPHashtable arguments) at com.plumtree.uiinfrastructure.activityspace.Interpreter.HandleRequest(IXPRequest request, IXPResponse response, ISessionManager session, IApplication application) at com.plumtree.uiinfrastructure.activityspace.Interpreter.DoService(IXPRequest request, IXPResponse response, ISessionManager session, IApplication application) at com.plumtree.uiinfrastructure.web.XPPage.Service(HttpRequest httpRequest, HttpResponse httpResponse, HttpSessionState httpSession, HttpApplicationState httpApplication) at com.plumtree.portaluiinfrastructure.activityspace.PlumHandler.ProcessRequest(HttpContext context) at System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at System.Web.HttpApplication.ResumeSteps(Exception error) at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) at System.Web.HttpRuntime.ProcessRequest(HttpWorkerRequest wr) at System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)

    Hey Jennifer,To clarify - there are two different security modes settings being discussed:
    Portal Security Mode - set in x_config.xml in your portal home directory, looks like this:<Security> <SecurityMode value="0"/></Security>This setting allows you to put your portal into HTTP, HTTPS, or SSL Accelerator modes.LDAP Authentication Source security mode - set in the LDAP Authentication Source Editor in the administrative hierarchy. This setting defines how the portal talks to your remote LDAP Server. If it is set to mode 1, we use the LDAP protocol. If set to 2, we use the LDAPS protocol, which uses TLS/SSL to encrypt communication between your LDAP Server and portal. This is a security measure that some customedrs require, while most don't use.The later setting is no longer supported in 5.0.2 and on, we suggest that users that need SSL between their portal and LDAP server use the new LDAP AWS product that was released around the time of 5.0.3. The LDAP AWS uses Java and JNDI technology to interact with remote LDAP servers, where as our native LDAP Authentication Source uses a Netscape library for communication with the remote LDAP server. This netscape library has been found to be unstable and detrimental to Portal performance, hence it was de-supported when the LDAP AWS became available.
    Based on your message, I'm guessing you thought I meant the Netscape browser could not use portalsecurity mode 2. There is no such bug, all portal security modes are supported as far as I know. Your project should work just fine, drop us a line if you have any problems.
    -Akash

  • Are the WLS 9.1 Web Service Ant Tasks ready for prime time?

    I am trying to create a Proof of Concept (POC) for Enterprise and B2B Services at Wendy's Int'l, Inc.
    As part of this POC, I created a WSDL for an in-house service and then used the wsdlc and jwsc Ant Tasks to translate this WSDL to Java classes and ultimately (I hoped) a deployable services.
    In this document, I describe the issues I encountered setting up what I consider to be a simple POC.
    I'll try to attach my WSDL file and build.xml so you can follow along.
    I'll also try to attach my CSS file so you can compare how the generated WSDL appears in the Browser to the way I want it to appear.
    If attachments are not allowed on these forums, then I will wait and see if there is interest in those documents before I paste them under this topic.
    Some preliminary information about my environment.
    Environment:
         Windows XP Pro SP2
         WebLogic 9.1
         Java 1.5.0_04
    Service Name:
         AppRelease
    Note: If I modify my WSDL (perhaps to add a new Operation or to change the definition of an element) and run wsdlc again, the AppReleaseSOAPPortImpl.java file is overwritten For this reason, I implemented my service logic in a class called AppReleaseServiceImple.java.
    Now, for the issues.
    1.     Bug:
    In the WSDL generated by wsdlc, the wsdl:part child of the wsdl:message tag is erroneously prefixed with a colon.
    This occurs whether or not I specify a prefix for the http://schemas.xmlsoap.org/wsdl/ namespace.
    Work around: Extract the wsdl from the jar file, fix it and add it back into the jar.
    2.     Bug:
    In the WSDL generated by wsdlc, the wsdl:input and wsdl:output children of the wsdl:operation child of wsdl:portType tag are erroneously prefixed with a colon. Like 1 above, this occurs whether or not I specify a prefix for the http://schemas.xmlsoap.org/wsdl/ namespace.
    Work around: Extract the wsdl from the jar file, fix it and add it back into the jar.
    The error message generated by Bugs 1 and 2 is not helpful in diagnosing the problem:
    [jwsc] Error at line:46 col:7 ':' expected [?! -- [CDATA[ ]
    3.     Bug:
    In the WSDL generated by wsdlc, the documentation elements have all of my html elements stripped out, as well as my xhtml and wsdl namespace references. This completely negates one of the best features of the documentation tag, being able to present the WSDL in a browser as a nicely formatted, human friendly document which is also the underlying WSDL that can be viewed when the person views the source document.
    I label this as a bug because it greatly reduces the functionality of the resulting WSDL.
    4.     Annoyance:
    The WSDL generated by wsdlc has all of my comments stripped out, except the comments in the xsd:schema section of the wsdl:types element. I would prefer that all my comments be left in the WSDL, but if comments must be stripped out then I think all of the comments should be stripped out.
    5.     Annoyance:
    The WSDL generated by wsdlc has my CSS specification stripped.
    Work around: I don’t know if adding the CSS back will do any good because I have not yet created a deployable service (see the last issue below).
    6.     Annoyance:
    The WSDL generated by wsdlc has different namespace prefixes than the ones I specified for my application's namespace and for the http://schemas.xmlsoap.org/wsdl/soap/ namespace.
    Work around: Perform a find/replace on namespace prefixes "s0" and "s1" to return them to my prefered values.
    Another thing I can do at this point is simply replace the generated WSDL in the jar file with my original WSDL. This would address issues 1 thru 6 above.
    7.     Annoyance:
    The java source files created by wsdlc are put into a jar file. This makes it annoying when working within a traditional IDE like Eclipse because there is no way to reference the source files within the jar as working source.
    Work around: Extract the source files from the jar and identify the resulting directory structure as part of the source structure of the project.
    8.     Bug:
    The jwsc task complains if the same parameter name is used in multiple operations. I received the following Errors from jwsc:
    [jwsc] C:\IDE\workspace\Acre-WL9.1\AppReleaseSOAPPort.java 0:0
    [jwsc] [ERROR] - Parameter element "{http://acre.services.wendys.com/AppRelease/}garRequest" is not unique across document/literal bare WebService.
    Since the operation names are unique, I see no reason to also require uniqueness in the parameter names used by those operations.
    Work around: Use unique element names for the input parameters of the services operations.
    9.     Bug:
    Once items 1, 2 and 8 above are taken care of, jwsc fails with the following error:
    java.lang.AssertionError: java.lang.ClassNotFoundException: weblogic.j2ee.descriptor.ApplicationBeanImpl
    This seems to be due to the weblogic.jar file not being in the System Classpath.
    However, I should note that when I set verbose="on" and debug="on" in the jwsc ant task, there was a message from the task which stated "[jwsc] [search path for class files: [big freakin’ jar list]". In the big freakin’ jar list, I did find weblogic.jar and weblogic.jar has the required ApplicationBeanImpl. This indicates to me that the jwsc task does not fully honor either its classpathref attribute, nor an embedded classpath element.
    Work around: Make sure the weblogic.jar is in the System Classpath.
    10.     Bug:
    I fixed bug #9 by running a setDomainEnv script and then ran my ant task. This time I received the following output:
    ant build-serviceBuildfile: build.xml
    build-service:
    [jwsc] 1 JWS files will be processed.
    [jwsc] Processing JWS: C:\IDE\workspace\Acre-WL9.1\src\com\wendys\services\acre\AppReleaseServiceImpl.java
    [jwsc] JWS: C:\IDE\workspace\Acre-WL9.1\src\com\wendys\services\acre\AppReleaseServiceImpl.java Validated.
    [AntUtil.deleteDir] Deleting directory <some temporary directory>
    BUILD FAILED
    java.lang.ExceptionInInitializerError
    At this point, I am completely stymied about how to proceed.
    I wonder what new issues await once this 10th issue is addressed.
    Really, is this tool set ready for prime time?

    <i>Sorry to hear you are having so many issues with using the WLS 9.1 web service Ant tasks, inside of Eclipse.
    I generally create a User Library for the couple weblogic jars needed, and use it (the User Library) in my Eclipse projects that I create JWSes in.</i><br>
    I also have a separate WebLogic Library in Eclipse (actually 2 libraries since I work with WL 8.1 and now WL 9.1). As you may know, one of the long-standing issues with the Ant integration within Eclipse is the fact that Ant, being an External Tool, does not receive the Project-specific Paths/Libraries. However, since most Java-relevant Ant tasks can take classpath and classpathref attributes, this is usually not an issue. In the case of the BEA-supplied wsdlc Ant task, it is apparent from the verbose/debug console output that wsdlc can see the jars in its classpathref, but it ignores those references when resolving class references and instead only uses the system classpath.
    <p>
    <i>I've only needed the weblogic.jar and xbean.jar, not all the ones you mentioned in an earlier thread of this post.</i><br>
    I have not tried to winnow down exactly which jars are required. I simply included all the jars that exist and were added to the system classpath by the setDomainEnv.bat file created by WebLogic 9.1.
    <p>
    <i>Afterwards, I create an Ant Builder to build the JWS Web Service EAR, as opposed to fiddlin' with Eclipse.</i><br>
    I too use Ant to build my deployable archives. Eclipse is simply my IDE of choice. I validated that all the issues I listed occurred when running Ant from the command line.
    <p>
    <i>If you are interested in how I do it, send me an e-mail (to [email protected]), and I'll send you a zip of one of these JWS projects. The build.xml script for the project, takes care of a lot of the "annoyances" you mentioned, one of which I think is not accurate. I have never had a situation where the wsdlc Ant task "overwrote" my XXXImpl.java file..</i><br>
    Since I'm doing a POC to determine how we want to proceed with developing Web Services and an SOA in general, I tried to perform the same tasks using Axis 2 1.0, the WebLogic 9.1 tools, and XFire 1.1. Overwriting the Impl class is a common failing in the tools which take a WSDL and create Java source files for all three frameworks.
    <p>
    Try my scenario. Add another operation to an existing WSDL, and run the wsdlc Ant Task. The old IMPL class will be over-written.
    <p>
    Because of this, I have a separate Impl class and I make sure that all its methods and annotations match the methods and annotations in the Skeleton Impl class created by wsdlc.
    <p>
    <i>Maybe that's because I use the <exec> Ant task with jar.exe (the xvf options) in my build.xml, to only get what I need out of the .jar/.zip the wsdlc generates. I'm typically only interest in the interface class that my XXXImpl.java file needs to implements, because I use XMLBeans for the input args (and return values) of my web service operations.</i><br>
    Perhaps. I am not using XMLBeans in any of the three frameworks because the resulting service seems to be lighter-weight in all three frameworks if XMLBeans is not used. I'm sure there will be scenarios where XMLBeans is preferred, but I have not encountered that case in this POC.
    <p>
    <i>Regards,
    Mike Wooten</i>
    Thanks for the follow-up.
    Mike McAngus

  • Need help compiling an EJB with Apache Tomcat 5.5

    Hi everyone, I need some help. I�m writing an EJB that has to run on Apache Tomcat 5.5.
    I�m importing the javax.ejb.* library, but Eclipse can�t find the JAR it needs. Where can I find this JAR? Do I have to download or what?
    Thanks a lot.

    Thanks, I�ve already downloaded the javaee.jar from the Sun webpage. As you can see I�m quite new to EJB developing. I want to create an EJB that will get some information from a database and send it back to a servlet, and then a web page. I've been browsing the JBoss page, and I see there are LOTS of versions. Any suggestion, regarding which version I shoud use for this? Thanks a lot again.

  • How to add or modify an entry using the JNDI

    Hi all,
    Usually I have used the netscape library to write directory application, now I have to use the JNDI ...
    Could I have some examples about the add modify and delete entry on the directory?
    Thanks a lot!
    M@x

    Download the LDAP Service provider at http://java.sun.com/products/jndi/index.html#download_ldap
    It has some example code too

  • Accesing COM port from an applet

    Hello:
    I am trying to develop an application that retrieves data from a VR glove and then use it to simulate the movement of it in an applet using VRML, anyway, as you can imagine, the applet is giving me problems when I try to access the serial port, it throws this particular exception :
    java.lang.ExceptionInInitializerError: com/ms/security/SecurityExceptionEx
         at HandAdapter.<init>
         at HandManager.init
         at com/ms/applet/AppletPanel.securedCall0
         at com/ms/applet/AppletPanel.securedCall
         at com/ms/applet/AppletPanel.processSentEvent
         at com/ms/applet/AppletPanel.processSentEvent
         at com/ms/applet/AppletPanel.run
         at java/lang/Thread.run
    I saw a solution to this problem using a netscape library, namely netscape.security.PrivilegeManager which fixes the problem, however, I haven�t found its counterpart for Internet Explorer.
    I hope you guys know of a solution to this issue given that programmers are used to fix this kind of troubles all of the time when developing in applet technology. Thanks in advance.

    By default applets do not have access to the system... you can set your vm to, allow applets to have access completly to the system, not very secure. Also any one who is visiting your site will have to have this set in there VM... Unless it's for your own personal purposes...
    Edit the java.policy so it contains only the following:
    grant
    permission java.security.AllPermission;

  • Trobule in saving log in file which is in my context path

    Hello all, i am facing problem while saving log into Log file from servlet. I am using Log4j library and eclipse as IDE. When i push any log information to log file, it make log file default to eclipse path not in my servlet context path. I am using log4j.properties file for configuration. Which has following contents :
    log4j.rootLogger=DEBUG, FA
    log4j.appender.FA=org.apache.log4j.FileAppender
    log4j.appender.FA.File=log.txt
    log4j.appender.FA.layout=org.apache.log4j.PatternLayout
    log4j.appender.FA.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
    and servlet code for configuring properties file is : PropertyConfigurator.configure(context.getResource("/log4j.properties"));
    what when i push content to log.txt it create file in my eclipse path. How can i set the file path as my context path for log.txt?
    thanks in advance.
    sanjeev

    I don't know such way. But maybe You can read the file when application starts (in ServletContextListener) and change this property when it's already running. Don't know if this helps, but may try.

  • Develop iPhone Web applications

    This is regarding the article “Develop iPhone Web applications with Eclipse” article posted on "http://www.ibm.com/developerworks/library/os-eclipse-iphone/".
    I have refer the article. It would be great if somebody will advise on the below :
    Problem - 1: I am trying to develop an iPhone Web Application –(client ) using eclipse IDE( version - 3.3 Europa)
    as mentioned in the article :
    Setp 3 : Add Aptana to this list by clicking New Remote Site and defining it with a URL of http://update.aptana.com/update/3.2/.
    It is not working getting error “Network connection error”. Even when I tried to download the same from the Browser (Safari and FireFox) it is not working .
    Is there any other way to download the same from Network – Please Guide .
    Problem – 2 :
    I also want to use iUI kit for iPhone web application Development .
    But I am not able to understand how to proceed for the same .
    Does iUI kit work only with Eclipse . If yes is there any specific version which we need to download ?
    Please forward the link which gives me details about “How develop web apps for iPhone using iUI kit”
    Looking forward for your valuable inputs .
    Best Regards,

    This is the incorrect forum for that type of information.
    I would suggest you direct your questions towards the forums for developers.
    These can be found at developer.apple.com/iphone and http://developer.apple.com/devforums/

  • JAVA ME SDK 3.2

    Hi,
    I need Java ME SDK 3.2 for a project. I don't see on the downloads page, where can I still get it?
    Thanks.
    Guy

    Hi,
    Sorry for the late answer.
    Java ME SDK 3.2 is needed to build Eclipse PAHO MQTT library (org.eclipse.paho.mqtt.java.git - MQTT Client Package - Java Language).
    From the README file:
    Paho Java ME client for MQTT
    The Java ME client requires the Oracle J2ME SDK 3.2 (which is only available for windows) and assumes it will be installed in c:/Java_ME_platform_SDK_3.2/
    The client jar is built using ant and the build.xml file in org.eclipse.paho.jmeclient.mqttv3/

  • Parser to solve XHTML errors?

    Hi,
    I have a fairly complex problem to describe with Xerces-J 2.5.0. I'll try to make it simple.
    My goal is to parse XHTML files. I parse them ok but my issues are with not compliant XHTML files such as the ones with <input ...> instead of <input .../>.
    I have rebuilt the Xerces library in eclipse.
    I have made a small test in a test environment, and it looks like Xerces is able to correct such xml errors. I was surprised. However, some features are failing to be set such as http://apache.org/xml/features/validation/schema/augment-psvi, http://xml.org/sax/features/external-general-entities...
    But the parse process is running ok. And it solves my XHTML mistakes...
    Now, when I use this Xerces jar in Tomcat (I have removed all other reference to any XML parser), the features are set correctly but the document fails to be parsed.
    I simply do not understand why it is different in the command line and in tomcat. I use an explicit call to create a new org.apache.xerces.parsers.DOMParser:
          parser = new org.apache.xerces.parsers.DOMParser();When I use a library from the binary distribution (2.4.0, 2.5.0 and 2.6.1) it fails in both cases.
    Is there some Sun XML parser that is overriding my use of Xerces (like the built-in version of Xalan)?
    Is there a way to know the location of the JAR files the program is using? I am pretty sure that I am using the right classpath (otherwise it fails) but who knows...
    Any help / hint will be really appreciated...
    TIA

    Pete,
    There is a misunderstanding here. I am not rewriting Xerces. I just rebuilt it, but there were no special goals in rebuilding it. I want to use a standard one.
    The "fun" thing is that after a simple rebuilt of Xerces, without modifying the source, it does not behave as i expect it to behave. You would say that i did not rebuild it correctly and that was also my initial thoughts.
    However, the strange thing is that it behaves as expected when used in Tomcat and it does not when used in commad line.
    I was thinking that another xerces was used, but it was not the case as i removed all xerces i could find and check that it fails (normal). After that, i put mine inside and it behaves as the one you can download from the binary distribution.
    The issue is with the command line that still "solve XHTML errors" and i do not understand why! I also fail to set some features on this parser (when used in c.l.), this makes me think that the parser i am using in CL is not the same than the one i used within Tomcat.
    I have twisted the classpath in all sorts of ways, checked the endorsed paths, etc.
    My goal is to be able to parse both HTML and XHTML, so i first try to parse XHTML, if it fails, i switch to the HTML parser (i use NekoHTML). But in my CL test environment, it corrects the XHTML errors, so Neko is never used...
    I was thinking of a similar problem i had with Xalan, but it does not look like it either...

Maybe you are looking for

  • Adapter Exchange Phone Number

    I used the web service to exchange my iPhone adapter. I now have a package and the old adapter that I need to send back. I don't know what phone number to call to schedual a pickup. Please help. Thanks!

  • Extending Bluetooth Range

    On my MacPro, I am using a Bluetooth Keyboard and mouse, but the range is only about 4 or 5 feet.  I want to sit on my couch and work (about 10 feet away) but the mouse and keyboard is slow or disconnects..  Is there a way to extend the range?  Would

  • Z10 does not fully charge

    hi guys i just got a z10, less than a month ago but it doesnt fully charge. it ends on 95%, can any1 help.

  • Failover cluster storage pool cannot be added

    Hi. Environment: Windows Server 2012 R2 with Update. Storage: Dell MD3600F I created an LUN with 5GB space and map it to both node of this cluster. It can be seen on both side on Disk Management. I installed it as GPT based disk without any partition

  • Where are my "open file" tabs?

    Maybe these two things are not related, but my working page in DreamWeaver was suddenly spread out across the whole screen.  I fixed it by playing in the upper right-hand corner of the window and reducing its size, but now my "open file" tabs on top