Client can't access Serializable classes on Server

Hi there, i have created a very simple client server model and had it running fine. I then added a new serializable class to the server and return it in a new method. Now when i try to run that method on the client side it complains it cannot find my new serializable class ("no class def found exception: rmi/server/ServerObject.class"). This is how it's setup at the moment:
Server
-ServerFront extends Remote
-Server implements ServerFront
-ServerObject implements Serializable
The server binds itself to the registry as such:
ServerFront engine = new Server();
String name = "Server";
ServerFront stub = (ServerFront)UnicastRemoteObject.exportObject(engine, 0);
Registry registry = LocateRegistry.getRegistry();
registry.rebind(name, stub);The ServerObject class looks like this:
public class ServerObject implements Serializable
    private static final long serialVersionUID = 10L;
    //methods
}The ServerFront interface has a method as such:
ServerObject getServerObject () throws RemoteException;    Client
-Client
The client gets a reference to the server as follows:
String name = "Server";
Registry registry = LocateRegistry.getRegistry("127.0.0.1");
server = (ServerFront)registry.lookup(name);Then tries to run the getServerObject() method:
ServerObject = server.getServerObject();I run the client and server from jar files using the following commands:
start java -Djava.rmi.server.codebase="http://www.xenwars.com/Server.jar" -Djava.security.policy=security.policy -jar Server.jar
java -Djava.security.policy=security.policy -jar Client.jar"security.policy" allows all access, and the codebase URL points to my webserver where i uploaded an identical copy of the Server jar file that i'm trying to run.
So... i've read all the Sun documentation and such and i'm massively confused why my client isn't simply downloading the serializable class as it's supposed to. Any help is massively appreciated, thanks :D
Edited by: Aldarn on Feb 8, 2009 10:03 AM
Edited by: Aldarn on Feb 8, 2009 10:05 AM

By a mirrored interface i mean i just created an interface based off my existing serializable classes, i.e. copied the method constructors into an interface class and made the serializable class implement that interface.
I think that must have been the problem then, that i wasn't giving the client an interface to the serializable classes on the server that it was attempting to download. I thought by using RMI on a serializable class it would just download that class when it needs it and so wouldn't need an interface pre-defining it.
Thanks for the help! I'm now working on a system with 3 servers and one client, where two servers have various methods implemented and the third one acts as a bridge between the other two servers and the client - so the client only has to deal with one server. It's working fine but it's pretty annoying having to mirror all the methods from both servers' interface classes in the server that acts as a bridge's interface class - is there any way that the bridge server can inherit the other two servers interfaces into its own so i don't need to make loads of duplicate "shell" methods like this:
// second server
public ArrayList<Thing> getAllThings ()
    return things;
// bridge server
private SecondServerFront secondServer; // reference loaded in constructor
public ArrayList<Thing> getAllThings () throws RemoteException
    return secondServer.getAllThings();
}  

Similar Messages

  • How can I access another class in a MembershipRule's Expression

    Hello,
    I want to create an InstanceGroup using Module Microsoft.SystemCenter.GroupPopulator.
    I need to collect all Logical Disks which contain an MS SQL DB Log File.
    I would start as follows:
    <DataSource ID="DS" TypeID="SC!Microsoft.SystemCenter.GroupPopulator">
      <RuleId>$MPElement$</RuleId>
      <GroupInstanceId>$Target/Id$</GroupInstanceId>
      <MembershipRules>
        <MembershipRule>
          <MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.LogicalDisk"]$</MonitoringClass>
          <RelationshipClass>$MPElement[Name="MSIL!Microsoft.SystemCenter.InstanceGroupContainsEntities"]$</RelationshipClass>     
    <Expression>
            <And>
      <!--
       First Expression
      -->
              <Expression>
                <SimpleExpression>
                  <ValueExpression>
                    <Property>$MPElement[Name="Windows!Microsoft.Windows.LogicalDevice"]/Name$</Property>
                  </ValueExpression>
                  <Operator>Equal</Operator>
                  <ValueExpression>
      <!--
        How can I access another class's properties ? 
      -->
                    <GenericProperty>$MPElement[Name="SQL!Microsoft.SQLServer.2008.DBLogFile"]/Drive$</GenericProperty>
                  </ValueExpression>
                </SimpleExpression>
              </Expression>
              <Expression>
                <SimpleExpression>
                  <ValueExpression>
                    <HostProperty>
                      <MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.Computer"]</MonitoringClass>
                      <Property>PrincipalName</Property>
                    </HostProperty>
                  </ValueExpression>
                  <Operator>Equal</Operator>
                  <ValueExpression>
                    <GenericProperty>$MPElement[Name="SQL!Microsoft.SQLServer.2008.DBLogFile"]/Drive$</GenericProperty>
                  </ValueExpression>
                </SimpleExpression>
              </Expression>
            </And>
          </Expression>
        </MembershipRule>
      </MembershipRules>
    </DataSource>
    In the first expression you "see" my question:
    I want to compare the LogicalDisk's Name Property with the DB Log File's Drive property.
    But how can I access the DB Log File's Drive property in this MembershipRule ?
    Furthermore LogicalDisk and DB Log File must be hosted on the same Windows Computer.
    Would be great if somebody could help.
    Thanks
    Sebastian

    Hi Niki,
    thanks for the idea, but that will not work. $Target/Id$ refers always to the group to be discovered.
    On last week end I was given following idea, hope it will work:
    Step 1
    Collect all the DB SQL Logfile Objects and write computername (PrincipalName?) and Driveletter into a textfile, line by line. Shouldn't be a problem, PowerShell is your friend.
    Step 2
    Read the file from Step 1, build discovery data for each disk drive as object of class "Logical Disk (Server)",
    and then discover the containment-relationships from those Logical Drive(Server) Objects to the InstanceGroup.
    Perhaps I must do it for the OS-Version related Disks, because I need the target classes  of the Logical Disk Freespace monitors. Some more work. "Risks": I donot know the discovery algorithm for the Logical Disk(Server) Objects, but a "deep
    dive" into the MPs should help.
    Thanks to all, who have read.
    I will inform you about progress and success
    sebastian

  • Using Oracle 8i client, can I  access  oracle server with version 10g ?

    Hi ,
    I am a developer working with C++ and Oracle. In Oracle particularly I am new.
    I have some basic Question related to oracle.
    1. With Oracle 8i client Can I connect to Oracle server with version 10g?
    2. With Oracle 8i client Can I connect to Oracle server with version 9i?
    3. With Oracle 9i client Can I connect to Oracle server with version 10g?
    4. With Oracle 10g client Can I connect to Oracle server with version 8i?
    5. With Oracle 10g client Can I connect to Oracle server with version 9i?
    6. With Oracle 9i client Can I connect to Oracle server with version 8i?
    These are basic yes/no type question.
    Thanks & Reagards
    Ravi Bhushan

    All answers on Metalink Note:207303.1 - Client / Server / Interoperability Support Between Different Oracle Versions

  • Tiger clients having difficulties accessing Snow Leopard update server

    Greetings! I have about 500 Macs in my network, running Tiger, Leopard, and Snow Leopard. I just installed a transparent Snow Leopard (Mac mini, 10.6.7) software update server. The update server sits within my network, with my internal DNS server directing all requests to it. The update server uses an external DNS server, so it is able to access the Apple server without any issues and download the updates. Leopard and Snow Leopard clients are able to access it with no issues and download updates.
    My Tiger clients, however, are not. When a Tiger client tries to access the update server through Software Update, it displays the message "A networking error has occurred: Error NSURLErrorDomain - 1100 (-1100). Make sure you can connect to the Internet, then try again." I tested this on about a half dozen Macs on different VLANs, including one set up on the same VLAN as the server. Several things: 1) the Tiger clients CAN access the network, network resources, and browse to the software update server's index.sucatalog file using a browser; and 2) the update server has no log entry indicating a connection was attempted by the Tiger client. (It does, however, show plenty of activity by Leopard and Snow Leopard clients.)
    If I enter the following command on one of my Tiger clients, it CAN access the update server:
    defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL "http://swscan.apple.com:8088/index.sucatalog"
    And the update server posts a log entry acknowledging the access. However, I get a message on the client that the software is up to date. The software is not. I tried to update a PowerPC G4 with a fresh installation of 10.4, and I KNOW it needs updating! I copied and enabled all update packages to my server, and I have seen the necessary updates in the list. My clients are unmanaged.
    So, after a morning of testing, trial, error, and digging around log files, I've concluded the following:
    1. My software update server is not automatically redirecting Tiger clients appropriately (the network error message)
    2. The server's index.sucatalog either does not contain the updates list for Tiger clients, or the Tiger clients are not processing it correctly.
    So, my questions are, what do I need to do on my server to redirect the Tiger clients appropriately (because it totally defeats the whole purpose of networking to touch every client and change the software updates .plist file), and what file do Tiger clients need to be directed to to get the appropriate updates list? I've looked at the swupd.conf file; it does not have a redirect for Tiger clients, so I added one (directing it to index.sucatalog), but it did not make any difference.
    At this point, I am perplexed. Does anyone have any suggestions? I have read the Mac OS X Server System Imaging & Software Update Administration Version 10.6 Snow Leopard manual, and it was not helpful. I've also searched extensively on Google and found little helpful information.
    Thank you for any assistance you can provide.

    Searching on the net brought me to the same solution that Mr. Hoffman found as well, I was a bit skeptical at first but since he recommended it, and all my other attempts failed, it was a last resort and I have some additional notes of my own for a successful solution. Read the two links below first before doing anything, as they contribute to the solution in tandem.
    http://forums.macrumors.com/showpost.php?p=7221295&postcount=20
    http://forums.macrumors.com/showpost.php?p=9081641&postcount=28
    I should probably just create an entirely new post with all of the steps that worked for me, but it's rather straightforward nonetheless.

  • Can servlet access Serializable Bean ?

    This is my bean below.. My jsp pages can access this bean but my servlet cannot... Do I need to make remove the Serializable interface that I am implementing right now so servlet can access ? Can serlvet access beans ?
    import java.io.*;
    import java.sql.*;
    import javax.sql.*;
    import java.util.*;
    * Re-usable database connection class
    public class ConnectDB implements Serializable{
    // setup connection values to the database
    static final String DB_DRIVER = "";
    static final String myURL = "";
    static final String USERNAME = "";
    static final String PASSWORD = "";
    static Connection con = null;
         public ConnectDB(){}
         /* Returns a connection the file that calls the method*/
         public static Connection getConnection()
              try
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   con = DriverManager.getConnection("......");
              catch (Exception e)
                   e.printStackTrace();
              finally
              return con;
         /*Closes Connections*/     
         public static void closeConnection(Connection con)
              try
                   if (con != null)
                   con.commit();     
                   con.close();
              catch (Exception e)
                   e.printStackTrace();
    }

    A Servlet is just a Java class and so can access beans. Also, a JSP is translated to a servlet before execution so you already have a servlet accessing the bean.
    Can you post relevant code and error message?

  • Can weblogic run serializer classes created by wscompile tool

    Hi,
    I am trying to deploy a webservice on weblogic.
    This webservice implements a given wsdl.
    I have created type mapping classes from 'wscompile' tool and not by 'autotype'
    provided by weblogic as i want my code to follow JAX-RPC standards and it should
    not depend upon weblogic classes.
    when i package the webservice and deploy it on weblogic, i get the following error:
    weblogic.webservice.server.ConfigException: failed to add type mapping to registry:
    - with nested exception:
    [java.lang.InstantiationException: com.egain.adapter.StartMonitoringResponse_LiteralSerializer]
    at weblogic.webservice.server.WebServiceFactory.initTypeMaps(WebServiceFactory.java:228)
    How can we deploy a webservice created with JAX-RPC standard (with either Apache
    Axis or JWSDP) on weblogic?
    I am using WLS 7.0 SP1.
    Thanx for any help in advance.
    Davinder

    JAX-RPC serializer classes are not portable. So you can not use the
    serializer classes
    generated by Sun's RI in weblogic JAX-RPC runtime.
    provided by weblogic as i want my code to follow JAX-RPC standards and itshould
    not depend upon weblogic classes.You dont have to refer any weblogic specific classes to use WLS JAX-RPC
    impl. You
    only need to use the weblogic provied tools. The application code you write
    is portable.
    Check out the edoc for more details:
    http://edocs.bea.com
    -regards,
    manoj
    "davinder" <[email protected]> wrote in message
    news:3e66e03a$[email protected]..
    >
    Hi,
    I am trying to deploy a webservice on weblogic.
    This webservice implements a given wsdl.
    I have created type mapping classes from 'wscompile' tool and not by'autotype'
    provided by weblogic as i want my code to follow JAX-RPC standards and itshould
    not depend upon weblogic classes.
    when i package the webservice and deploy it on weblogic, i get thefollowing error:
    >
    weblogic.webservice.server.ConfigException: failed to add type mapping toregistry:
    - with nested exception:
    [java.lang.InstantiationException:com.egain.adapter.StartMonitoringResponse_LiteralSerializer]
    atweblogic.webservice.server.WebServiceFactory.initTypeMaps(WebServiceFactory.
    java:228)
    >
    How can we deploy a webservice created with JAX-RPC standard (with eitherApache
    Axis or JWSDP) on weblogic?
    I am using WLS 7.0 SP1.
    Thanx for any help in advance.
    Davinder

  • Rmi and classloader: some server instances can not find the class on server

    Hi:
    I want to migrate my rmi applications from JDK 1.1 to JDK1.2.2. It exists in the following environments:
    - there is one authentication server and many application servers, all have binded in the main method
    - dynamic loading of the server stubs and interfaces is not used; they are local on the client.
    - security manager is enabled only on the server site and the policy file is created.
    - all server classes, stubs and interfaces are in the same directory on server site
    - the registry and the server are started as follows:
    unsetenv CLASSPATH
    rmiregistry 1103 &
    setenv CLASSPATH ~usr/serverDir:~oracle/jdbc/lib/classes12.zip
    java -Djava.rmi.server.codebase=file://~usr/serverDir/
    -Djava.rmi.server.hostname=myHost -Djava.security.manager myServer
    After starting the client, the rmi client connects to the server and the authentication request comes back with a list of applications.
    When the user chooses one of them, the rmi sends the request to thatapplication (e.g., OMSRmiServer_Stub). The application could not find the other class on the sever directory: (the authenication server can find the same class)
    java.lang.NoClassDefFoundError: JOMPrepStatement
    at java.lang.Class.getFields0(Native Method)
    at java.lang.Class.getFields0(Compiled Code)
    at java.lang.Class.getDeclaredFields(Compiled Code)
    at java.io.ObjectStreamClass$1.run(Compiled Code)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessController.doPrivileged(Compiled Code)
    at java.io.ObjectStreamClass.<init>(Compiled Code)
    at java.io.ObjectStreamClass.lookupInternal(Compiled Code)
    at java.io.ObjectStreamClass.lookup(Compiled Code)
    at java.io.ObjectStreamClass.lookupInternal(Compiled Code)
    at java.io.ObjectStreamClass.lookup(Compiled Code)
    at java.io.ObjectStreamClass.lookupInternal(Compiled Code)
    at java.io.ObjectStreamClass.lookup(Compiled Code)
    at java.io.ObjectStreamClass.lookupInternal(Compiled Code)
    at java.io.ObjectOutputStream.writeObject(Compiled Code)
    at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:256)
    at sun.rmi.server.UnicastRef.invoke(Compiled Code)
    at OMSRmiServer_Stub.executeStringSetSelect(Unknown Source)
    at OMSDeviceRmiClient.getStatusLOV(OMSDeviceRmiClient.java:196)
    at OMSRmiClient.getStatusLOV(OMSRmiClient.java:76)
    at OMSDevicePane.listenToTree(Compiled Code)
         at OMSDeviceContextPane.initComponents(OMSDeviceContextPane.java:107)
    at OMSFrame.jomInit(Compiled Code)
    at JOMCountFrame.init(JOMCountFrame.java:190)
    at JOMCountFrame.run(JOMCountFrame.java:253)
    at java.lang.Thread.run(Thread.java:485)
    Any help is appreciated.
    - Mahan.

    in jdk1.2.2 no need classes12.zip in class path.
    just set CLASSPATH=.;
    that is enough for solving ur problem
    bye
    raghu

  • VPN Clients can't access internal LAN

    Hello - I have seen a few other threads on this issue, but can't seem to fix mine. I have a PIX 506e. My VPN clients can connect, they get a DHCP address from our internal server no problem. But the clients can not ping me or anything else on the LAN. The clients are connecting ipsec. I know I must be missing something simple here. Here is my config. Any help would be great

    Change the VPN Pool address to something else for example 192.168.10.0/24 etc. Then try and let me know. There could be ip overlap here.

  • How can i access properties from APP server through JNLP with ot using JAR

    Hello
    i want to retrive a Properties file from WL-7 app installed location like :bea/home/externalized.properties
    now i want to use this properties file throgh out the application. if any property is changed in "externalized.properties" that could be reflect dynamically in my code.
    So my requirement is :
    The current implementaion is using the JNLP down load the required code which contains the properties in .jar files, i have around 500 properties which are embedded in differnet .jar files with differnt property name. So i want to make all 500 properties to get out side from the jar files. and keep that consolidated properties in a single location and access it dynamically after deployed my ear file in wl7 app server.
    my application is implemented in SWING and EJB now i want to create an ear file which can be deployed any instance or cluster of WL7 app server.
    My Q:
    1. How can i access properties file through JNLP? (not a single property, want to access all properties in externalized.properties)
    2. is thare any known issue with SUN to load properties file through JNLP?
    your help is highly appreciated.
    -Siva

    Hey Thanks for your response,
    My question is Still not answered,
    see infact i have different type of environments to launch my application.
    infact my weblogic is deployed at remote location whihch is installed in linux,
    code is exist in our local system.
    At the time of code build for my local system i'm not able to get the properties from remote WL server,
    so at the time of code compilation and making the EAR file i'm not having this externalized properties file in newly generated EAR file.
    so once i copied my EAR in to WL7 cluster and i'm running the application using startAdminserver.sh, in this script file i'm defining the
    java -DexternalizedProperty=$WL_HOME/externalizedProperty.properties so now i'm able to get this properties to 'externalizedProperty"
    But when i download my application required jars, at this time i does not having the property file in my downloaded JAR files.
    So i want to access the remote properties file in suh sistuation.
    now i'm runnig the application at my local side to launch and Server side as well.
    So i have 2 runtimes 1 is my local and another is my server. In this case using "-DexternalizedProperty" i'm able to get this in server side,
    once control is come to local system it is not able to find this "-DexternalizedProperty" [externalizedProperty].
    Hope now u get my scenario..
    Thanks,

  • Can't access cluster via SQL Server Mng Studio unless node has ownership

    Hi:
    We have Windows and SQL 2008 R2 in a 2 node cluster. Failover and failback work like a dream. All the 'lights' are green. But we can only access the cluster when we're on the node that has ownership. I've deleted all DNS entries and successfully recreated
    them via ipconfig /registerDns from each node, shutting down, restarting the actual cluster and taking the application and service offline then back on line. All DNS records got recreated perfectly. Cluster error log doesn't show anything when we
    can't connect either. We can also ping all IPs, Hostnames and Clustername.

    Hi g_machuca,
    According to your description, you want to implement failover and failback in SQL Server cluster environment. We need to verify if The cluster group containing SQL Server can be configured for automatic failback to the primary node when it becomes available
    again. By default, this is set to off. First you set a preferred owner for the SQL Server service in a clustered environment; To ensure the service or application automatically moves to the correct node, select “Allow Failback” under the Failover tab. . 
    Auto failback saves you from having to make this change manually; however it will restart the SQL Services when it automatically fails back. Or if you don’t want to configure auto failback you’ll want to make sure that you manually fail the services
    back to the more powerful node after the system has come back online.
    There are details about failover cluster allows automatic failback, you can review the following articles.
    http://www.mssqltips.com/sqlservertip/2672/managing-a-windows-and-sql-server-cluster-using-the-failover-cluster-manager-tool/
    http://blogs.technet.com/b/rob/archive/2008/05/07/failover-clustering.aspx
    For more information about troubleshooting Windows Server 2008 R2 Failover Clusters, you can review the following article.
    http://windowsitpro.com/windows-server-2008/troubleshooting-windows-server-2008-r2-failover-clusters.
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Can't Access A Class

    Hello everyone...i have a program that's composed of a html,jsp and a .java page...i use bean....i have reversed engineer this system i got it is a forum site made of jsp and javabeans...my problem is that it can't reach the class from a .java file...i have put out.write or System.out.print so that i know where the pages stops..but i am unable to figure out why it stops...there's no error it just gives me a blank page...
    here is my add_user.html
    <html>
    <body>
    <form action ="add_user.jsp" method ="POST">
    Name: <input type = "text" name="name" size=5><br>
    Password: <input type = "password" name="password" size=5><br>
    Confirm Password: <input type = "password" name="cpassword" size=5><br>
    User Type:
    <select name="workgroup_id">
    <option value="x" selected="Selected">Select User Type</option>
    <option value="1">Physician</option>
    <option value="2">Scheduler</option>
    <option value="3">Clerk</option>
    <option value="4">Technologist</option>
    <option value="5">Radiologist</option>
    <option value="6">Transcriptionist</option>
    </select><br>
    Default Worklist: <input type = "text" name="dworklist" size=5><br>
    Default Forms: <input type = "text" name="dforms" size=5><br>
    Printer: <input type = "text" name="printer" size=5><br>
    <br>
    <br>
    <input name="create" type = "submit" value="Submit">
    <input type = "reset" value="Clear">
    </form>
    </body>
    </html>and here is my add_user.jsp
    <jsp:useBean id="Users" class="ris.Users"/>
    <%@ page import="java.util.*" %>
    <%
         String name=request.getParameter("name");
         String password=request.getParameter("password");
         String workgroup_id=request.getParameter("workgroup_id");
         String dworklist=request.getParameter("dworklist");
         String dforms=request.getParameter("dforms");
         String printer=request.getParameter("printer");
         if(request.getParameter("create") != null) {            out.write("pasok2");
              if(Users.checkReg(name, workgroup_id)) {
              out.write("pasok");
    %>and here is my Users.java
    package ris;
    import java.sql.*;
    import java.util.*;
    public class Users {
         private int user_id;
         private String name, password, dworklist, dforms, printer, workgroup_id;
         public boolean checkReg(String name, String workgroup_id) {
         System.out.print("pasok1");
                   String query = "SELECT User_ID FROM users WHERE [Name]='" + name + "' AND [Workgroup_ID]='" + workgroup_id + "'";
              try {
                   String driver = "org.gjt.mm.mysql.Driver";
                   Class.forName(driver).newInstance();
                   String url="jdbc:mysql://localhost/ris?user=root&password=restricted";
                   Connection con=DriverManager.getConnection(url);
                   Statement stat = con.createStatement();
                   ResultSet rst = stat.executeQuery(query);
                   if(rst.next() == false) {
                        con.close();
                        return true;
                   else {
                        con.close();
                        return false;
              catch(Exception e) {
                   e.printStackTrace();
                   return false;
    }see that word "pasok" there that's what i use to know up to where my program really goes...
    here is where my program stops...if(Users.checkReg(name, workgroup_id)) {
    please help me...thanks....

    Do you recall what version you had before, i.e., 6.0.1 or 3.6.22?
    There's no easy way to peel off an update. You could reinstall an earlier version over what you have, but it might be faster to run a "portable" version of Firefox from a USB flash drive for those sites that are not compatible on an emergency basis.
    http://portableapps.com/apps/internet/firefox_portable/localization#legacy36

  • HT1277 2012, Sept 11, I can't access the icloud email server since early this morning

    2012 Sept 11; I'm unable to access the iCloud mail server since early this AM. Is there a problem with the mailservers?

    Current
    iCloud: Mail & Notes - Users Affected: <1% - Next Update: 09/11/2012 13:00 PDT
    09/11/2012 10:54 PDTUsers may be unable to access iCloud mail. Normal service will be restored ASAP.

  • How can I access the oracle/sql server jdbc driver class files from my cust

    I have a war file in which I have custom DataSource i.e mypackage.Datasource class. Its basically the need of my application. In this class we connect to datasource and link some of our programming artifacts .
    I have deployed the oracle jdbc driver and deploy my application as ear with datasources.xml in the meta inf file. Inspite of that my code fails to load the jdbc driver classes.
    Here is the extract of the code :
            Class.forName("oracle.jdbc.OracleDriver").newInstance();
             String url = "jdbc:oracle:thin:@dataserver:1521:orcl";
            Connection conn = DriverManager.getConnection(url, "weblims3", "labware");
            if(conn != null){
              out.println("the connection to the database have been achieved");
            out.println("conn object achived= " + conn);
    Class.forname fails in this case. I can see the ojdbc5.jar the driver jar in usr\sap\CE1\J00\j2ee\cluster\bin\ext\ojdbc5  . I even put the ojdbc.jar in web-inf/lib and application lib but does not help at all. Hope I have explained my problem clearly.
    I deployed the jdbc driver in the name of ojdbc5 .
    I am stuck here. It will be great help if anyone can help me in this. Thanks in advance.

    Bent,
    You can access the database from your Java portlet, just like from any other Java/JSP environment. Yes, you can use JDBC, as well as BC4J.
    The Discussion Forum portlet was built using BC4J, take a look at it's source to see how it was done.
    Also, check out Re: BC4J Java portlet anyone?, it contains a lot of useful information too.
    Peter

  • Upgrade server to 10.4.11--mail clients can't access server

    HELP!
    I updated my mail server to 10.4.11 and all the various other updates. Now my mail.app clients will not connect. They keep asking for the password to either send or receive mail.

    Which other updates ? This is a server, you need to keep careful notes.
    What about rolling-back to your clone/backup prior to the updates ?
    Please gather more information (you really must) so that others can try to help you.
    What do the logs on your server say, for the times when users try to send or receive email ?
    Look in the system log, mail.log , DirectoryService logs (use the Console app within Utilities if you need to) ?

  • Lion Server: iOS 5 clients can't connect to Address Card Server

    I have set up shared accounts on the server for Calendar and Address Book (family) sharing. Although I can add and use the Address Book shared account on OS X Lion clients, I can't get this to work on iOS 5 clients (iPhone nor iPad). I keep on getting "CardDAV account verification failed".
    Calendar sharing works just fine on both OS X and iOS5 clients
    Let me briefly describe my setup and observations:
    Server:
    Running Lion Server 10.7.2 on Mac Mini (server)
    Using SSL connections with keys generated during set-up of the server
    Portforwarding in router (ao) for 8008 and 8843 (iCal and Address Book)
    Created  shared accounts on server for Calendar ("sharedcalendar") and Address Book ("sharedcontacts")
    In the DNS server I created services in my primary zone for "_caldavs._tcp." and "_carddavs._tcp." both on port 8443
    OS X Client (Calendar)
    Created additional CalDAV account in preferences (user "sharedcalendar")
    Left the server settings untouched (server path, port "auto" and using SSL but not Kerberos)
    Created in "sharedcalendar" different calendars and reminder lists for the family members which each can access from their OS X client
    This account is now set-up through Profile Manager (tried this with Address Book as well but didn't make any difference)
    iOS 5 Client (Calendar)
    Once tested on standalone and got this working I'm now using the Profile Manager to push the definition of the shared account to all clients
    Hostname with port 8443 (default)
    Left Principal URL blank since it was optional
    User "shared calendar" with the appropriate password
    Ticked "Use SSL"
    OS X client (Address Book)
    Created additional CardDAV account in preferences (user "sharedcontacts").
    Left the server settings untouched (port 443 using SSL)
    iOS 5 client (Address Book)
    In the settings add a CardDAV account (server, user "sharedcontacts", password, description).
    First error message "Cannot connect Using SSL. Do you want to try setting up the account without SSL?". When I press continue I get the error "CardDAV account verification failed"
    If I then save the account details still and edit the account I can access the "advanced settings". When I change to SSL I have tried port 0 (default value), 8443 (the one that's listed in the documentation) and 8843 (which is used by default if you try to set up the
    account in Profile Manager). All to no avail, including Profile Manager
    Observations:
    Lion Server app nicely lists both Calendar and Address Book Server as active (plus Profile Manager, File Server, Web server and Wiki server)
    When I access my server home page, Calendar is listed in addition to other services (Mail | Calendar | Change Password | Profile Manager) but not Address Book. Is this normal behaviour? i.e. can't Address Book entries be changed through a web interface?
    Address Book on OS X client uses 443 for SSL but does not require me to define port 8443 for secure iCal or Address Book server communications
    Lion Server Profile Manager specifies port 8843 as port for SSL communication. I only saw 8443 listed in documentation
    The response "can't connect .." or "account verification failed" happens very quick which make me think either the verification doesn't even leave the iPad or there is something wrong in the SSL connection
    Since iCal set-up works nicely using the same ports I am puzzled why it doesn't work for Address Book
    Your solutions or suggestions how to investigate are most welcome,
    Erik

    Thanks for joining the discussion.
    Although port 8443 is mosten quoted as correct port for CalDAV and CardDAV, port 8843 can be found both on Apple's website and other places:
    see Technical Note 1649 to find port 8443 listed for iCal and port 8843 for Address Book
    Mac OS X Lion Server for Dummies (sic) lists port 8843 on pages 236 and 238 but port 8443 in many other places
    when you want to push iCal and Address Book information with Profile Manager, Profile Manager lists port 8443 for iCal but port 8843 for Address Book as default:
    So I hope you understand I'm somewhat puzzled.
    I did get the Address Book working for my Lion desktops with the all the necessary certificates as far as I know, just not for the iOS devices (iPhone and IpPad). iCal sharing from Lion Server works fine on both Lion and iOS devices.

Maybe you are looking for