Error deploying EJBs on Sun App Server

Someone please help, I am getting a strange problem when deploying an EJB jar.
I have had this code working before (before Xmas), but now I am getting the following error:
java.lang.NoSuchMethodException: com.enterprise.entity.ContentBean.getId();Remote;public abstract java.lang.Integer com.enterprise.entity.ContentRemote.getId() throws java.rmi.RemoteException;_RequestID=e1c03c30-18d9-4f08-b57f-58d97180c1d9;|EJB5111:Bean class for ejb [content:java.lang.NoSuchMethodException: com.enterprise.entity.ContentBean.getId()] does not define a method corresponding to [Remote] interface method [public abstract java.lang.Integer com.enterprise.entity.ContentRemote.getId() throws java.rmi.RemoteException]
Code snippets of offending classes:
In remote interface:
public interface ContentRemote extends EJBObject {
    public Integer getId() throws RemoteException;
}In bean class:
public Integer getId() throws RemoteException {
        return new Integer(this.id);
}I think the code is right, please could someone suggest where I am going wrong, this is driving me up the wall.....
Thanks.....
null

Hello,
the build runs a verifier on your EJBs and makes sure everything is in proper order. The ear file holds everything, including the jsps which are inside the war file that gets created.
Regards jP

Similar Messages

  • Opensso.war deployment fails in Sun App server 8.2 windows vissta business

    I tried deploying opensso.war in Sun App server 8.2 on windows vista business machine. Am getting following error.
    Deploying application in domain failed; C:\Program Files\Sun\JavaES5\appserver\domains\domain1\applications\j2ee-modules\opensso\assets\js\AjaxUtils.js (Access is denied) ; requested operation cannot be completed C:\Program Files\Sun\JavaES5\appserver\domains\domain1\applications\j2ee-modules\opensso\assets\js\AjaxUtils.js (Access is denied)
    Am I missing something

    This is windows permission to the folder issue

  • Error deploying to standalone OC4J app server

    Hey all,
    I created a web app with jdeveloper 10.1.3.3 using OC4J 10.1.3.3 as well. I'm using EJB and session beans to communicate with a database. nothing particularly fancy about it, i just read tables from the db. however, when i try and deploy through jdev to the standalone OC4J i get an error. here's the last part of the deployment log when it fails:
    Deployment Log:
    Binding ibmswauth web-module for application ibmswauth to site default-web-site under context root ibmswauth
    Operation failed with error:
    [ibmswauth:ibmswauth] - Exception creating EntityManagerFactory using PersistenceProvider class oracle.toplink.essentials.PersistenceProvider for persistence unit WD_WORK.
    The only thing in my Persistence.xml file is the <persistence-unit> tag with name "WD_WORK", and in that a <jta-data-source> tag.
    Also, it runs fine on the local embedded server, it's only when i try and deploy that it gives this error. I even deployed my app to an EAR file and tried uploading it manually to the app server, still same error.
    any ideas?

    If you have a model project that has objects referenced by the view controller/UI project then you need to explicitly include them in the deployment. Unlike in embedded OC4J they wont be automatically included.
    Create an ADF library deployment profile in the model project and include the generated library in your UI project war file. You can add this jar to the project Libraries/Classpath then make sure it is included in the WEB-INF/lib Contributors list.

  • Deploying ejb with Sun Application Server 8

    I'm deploying a container-managed entity, my status & my problem is listed below:
    Deploytool:
    When I verify my entity, I see this error:
    Error: Exception [ JDO74033: Cannot deploy application 'LibrarianApp' module 'ejb-jar-ic' with CMP beans: cmp-resource is not defined for this module. The minimum requirement for a cmp-resource is to specify the jndi-name of a jdbc-resource or a persistence-manager-factory-resource to be used with the beans. ] while initializing JDOCodeGenerator. Please check your descriptors and mapping files for consistency
    Deploying has not any error but running the application has :
    Caught an exception:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException
    at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:170)
    at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
    in CMP Database of my entity, JNDI Name = jndi/MySQL
    Sun Java System Application Server Platform Edition 8 Admin Console:
    in JDBC Resource JNDI Name: jdbc/MySQL & Pool Name MySQL2
    in Connection Pools > MYSQL2 > Data Source Class Name: com.mysql.jdbc.jdbc2.optional.MysqlDataSource
    Please Help Me. thx

    hi
    I am working with Sun java application Server 8.
    I can able to create application(*.ear),
    (Enterprise Java Bean) bean component,
    client application
    Problem is, i am unable to provide JNDI name for client application
    advice needed to provide JNDI name for the client applications
    i dont know whats the use of pointbase/cloudscape
    (As i am new to this sjaServer 8, i need your advice)
    Response to the following mail id
    [email protected]
    Please do the favour
    thank you

  • Error deploying IDM on SUN AP SERVER 8.0

    Any idea what could be causing this. Thanks in advance!
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:218)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    root cause
    java.lang.NoClassDefFoundError
         sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         java.lang.Class.newInstance0(Class.java:308)
         java.lang.Class.newInstance(Class.java:261)
         org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1217)
         org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1120)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2167)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2217)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2223)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:460)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2167)
         org.apache.jasper.compiler.Generator.generate(Generator.java:3251)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:240)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:419)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:402)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:512)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:262)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:263)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:210)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    note

    Please stop
    The migration guide has step by step instructions, including command line examples, are you using that as your reference?
    Your upgrade should be to (at a minimum) DSEE 6.3.1.1.1. Upgrading to 6.0 is upgrading to a release level that has no patches or fixes to the product. There are significant fixes to the migration command line tools. There is a good chance you will run into issues.
    You should install and review migration to ODSEE 11.1.1.7.0 (which would effectively be the 7.2 release of the DS).
    There is a specific guide for migration and upgrade, which includes migration from DS 5.2 to 11.x
    The full documentation collection for 11.1.1.7.0 is here
    http://docs.oracle.com/cd/E29127_01/index.htm
    The specific migration guide is here
    http://docs.oracle.com/cd/E29127_01/doc.111170/e28971/toc.htm
    See: Part II Migrating from ODSEE 5.2 to ODSEE 11g Release 1 (11.1.1.7.0)
    ODSEE 11.1.1.7.0 can be downloaded from here.
    http://www.oracle.com/technetwork/middleware/downloads/oid-11g-161194.html

  • Deployed webservices is not compatible on sun app server 9

    I build my webservices in automated form provided by excelent wizards of jdev.
    I was not changed any name, and let all default descriptors generated to after I try to run it, and it run perfectly on oc4j, who is compatible with j2ee specification....
    But when I deploy it on Sun App Server 9(stable), the follow error is throwed
    "Invalid url pattern" like my screenshot: http://img115.imageshack.us/img115/4673/errojf1.gif
    I have tried to replace this url, but without sucess to run my web services. Someone with more experience can help me?
    I need to run it on SunAppServer.
    Thanks all

    You probably need to add the Sun specific deployment descriptor files to your WAR.
    JDeveloper doesn't have a utility to do that automatically for Sun.

  • Deploying a WAR file to Sun App Server 8.1 PE

    So I thought that if I downloaded Sun App Server PE 8.1 and put it on my soon-to-be production machine, it should be pretty easy right?
    Nope. So I have JSC update 6 (which includes Sun Application Server 8.0) (God how I wish there was a catchy name like Tomcat or something)
    And I have a machine running a good copy, installed and everything, of Sun Application Server 8.1 Platform Edition (another catchy name) up on the production target.
    I create a WAR file in JSC, scp it up.
    Then try to deploy it - so I get bit by the no DB connection thing.
    Ok, but when I copy each of my connection's attributes (the driver (which I did copy up to the lib directory) is MySQL's Connector/J)
    I copy the username, password, URL and DriverClass attributes to the connection pool.
    I still get a
    "Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Class name is wrong or classpath is not set for : com.sun.sql.datasource.DriverAdapter"
    when I try to Ping the ConnectionPool
    I have javax.sql.DataSource as the resource type... (same as 8.0 uses)
    what JAR file is DriverAdapter in? anyone know?
    cheers,
    Kris

    Okay. mysql folks - this works......
    here's what happened, on the production server, different from the dev machine....
    mysql 4.1.9
    sun application server platform edition PE 8.1
    connector/j - latest
    and on the dev machine: JSC Update 6 and the app works fine on the dev machine.
    first, there is a JAR file in ~whatever/Create/SunAppServer/lib/ named
    driveradaptor.jar
    and it it comtains
    com.sun.sql.datasource.DriverAdapter
    which 8.1 ain't got
    and should be copied up to
    /installdir/SunAppServer/domains/domain1/lib/ext/driveradapter.jar
    (domain1 is your app svr domain that runs your app.)
    your Connector/J JAR needs to go here too. I used:
    mysql-connector-java-3.2.0-alpha-bin.jar
    downloaded from mysql.com.
    and then there is the whole thing about Added Properties in the Connection Pool page inside the 8.1 Admin Console (which is nice work guys). Gawd, I added a bunch of properties and am, frankly, not sure which ones actually work (for the Ping, for the initial connection creation and the eventual successful connection all seem to use different combinations...)
    and I found this in the domain's domain.xml once all the admin console page filling was done - but you'll need to add each one as a Property in the connection pool:
    <jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="com.sun.sql.datasource.DriverAdapter" fail-all-connections="false" [blah...]
    <property name="Username" value="root"/>
    <property name="Password" value="secret"/>
    <property name="ValidationQuery" value="SELECT 1"/>
    <property name="DriverClassName" value="com.mysql.jdbc.Driver"/>
    <property name="LoginTimeout" value="0"/>
    <property name="Url" value="jdbc:mysql://localhost/databasename?autoReconnect=true"/>
    <property name="User" value="root"/>
    <property name="password" value="secret"/>
    <property name="PasswordCredential" value="secret"/>
    </jdbc-connection-pool>
    (and you see how User and Username and username are all the same thing? well, different parts of 8.1 seem to use different attributes...)
    Just keep Adding Properties in the connection pool until you get them all....
    Oh and, the two key class references for the pool are:
    datasource class: com.sun.sql.datasource.DriverAdapter
    resource type: javax.sql.ConnectionPoolDataSource
    Finally: in the /installdir/SunAppServer/domains/domain1/applications/j2ee-modules/YourAppName/WEB-INF/
    your 'sun-web.xml' (don't delete it, like some have advocated, I think that wrong) needs to look like:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet 2.4//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd">
    <sun-web-app xmlns="http://java.sun.com/xml/ns/j2ee">
    <context-root>/yourcontext</context-root>
    <resource-ref>
    <res-ref-name>jdbc/Yourname</res-ref-name>
    <jndi-name>jdbc/Yourname</jndi-name>
    <default-resource-principal>
    <name>root</name>
    <password>secret</password>
    </default-resource-principal>
    </resource-ref>
    </sun-web-app>
    and I think that's all of it. the only Bug I would I would say is that the sun-web.xml should have the right res-ref-name, but then I think the Creator Team knows this and will fix it sometime soon.
    cheers,
    and Roger Federer lost in the Aussie Open. (I think he lost tomorrow too, that whole time zone thing being so damn Einsteinian...)
    -Kristofer

  • To Create a EJB Client program to access the Bean deployed in the Sun app

    Hi
    I am new to the EJB.I need to write a Client ,to access the bean deployed in the Sun application Server 9.0. The Client Program will be running in a Different machine on the Network.
    1)What all things i need to consider along with writing the client program?
    2)Is there any link which provides the Sample client programs/Documents for the Sun Application Server.
    Please help me
    Regards
    Raju

    Probably the simplest way is to replace the MessageServerThread with a synchronized method. The method should be in the MessageServer class.

  • "Message Driven Bean" doesn't work with Sun App Server

    Hello all,
    i have a little bit problems, running a simple "Message Driven Bean" under the Sun App Server. The deployment of it works fine, but after starting the SUN App Server i get the following error message:
    An error occurred during the message-driven beancontainer initialization at runtime. The most common cause for this is that the physical resource(e.g. Queue) from which the message-driven bean is consuming either does not exist or has been configured incorrectly. Another common error is that the message-driven bean implementation class does not correctly implement the required javax.ejb.MessageBean or MessageListener interfaces.
    Has anybody a workaround for this problem?
    The queue seems to be correctly installed. A simple client programm from the Sun Tutorial (Consumer & Producer) works fine without any Errors or Exceptions.
    I am a little bit confused, because the queue seems to work with the client programms but not with a MDB running on the SUN App Server.
    Thanks for you help!
    Greetings
    Manuel

    Hello Mr Manuel!
    could you plz help me with the steps for creating a message driven bean using netbeans ver 5.0(with Sun Java� System Application Server Platform Edition 8.2 )
    I just know how to work with Session beans & Entity Bean, and am try to learn to work on Message Driven Beans too. there are no proper tutorials where i can find steps for creating these..
    I need the steps from the scratch.,like creating QueueConnection Factory & Destination etc..
    It will be gr8 if you can help me with this at the earliest .
    Thank you
    Bye

  • Error deploying EJB on WL 6.0

    Hi,
    I'm trying to deploy an EJB jar file on WL6.0 in a Solaris environment, but I'm
    encoutering the following error. The EJB jar deployed fine on a Windows system,
    but I keep on getting this error on a Solaris machine. Any help/info would be
    appreciated.
    Thanks in advance,
    - Jerome
    <Dec 10, 2001 5:45:09 PM PST> <Info> <Logging> <Only log messages of severity
    "Error" or worse will be displayed in this window. This can be changed at Admin
    Console> hats> Servers> myserver> Logging> General> Stdout severity threshold>
    java.io.IOException: javac: not found
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:54)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:551)
    at java.lang.Runtime.exec(Runtime.java:477)
    at java.lang.Runtime.exec(Runtime.java:443)
    at weblogic.utils.Executable.exec(Executable.java:144)
    at weblogic.utils.Executable.exec(Executable.java:108)
    at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:555)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:372)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:228)
    at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:799)
    at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:31)
    at weblogic.j2ee.Application.addComponent(Application.java:133)
    at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:327)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:277)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:232)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:192)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
    at $Proxy30.updateDeployments(Unknown Source)
    at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2299)
    at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:240)
    at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:122)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
    at $Proxy24.start(Unknown Source)
    at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:435)
    at weblogic.management.Admin.startApplicationManager(Admin.java:1033)
    at weblogic.management.Admin.finish(Admin.java:493)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
    at weblogic.Server.main(Server.java:35)
    <Dec 10, 2001 5:45:32 PM PST> <Error> <J2EE> <Error deploying EJB Component :
    Shared.jar
    weblogic.ejb20.EJBDeploymentException: EJB Deployment errors:; nested exception
    is:
    Compiler failed executable.exec(java.lang.String[javac, -nowarn, -classpath,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared:/opt/weblogic6.0/wlserver6.0:/opt/weblogic6.0/wlserver6.0/lib/weblogic_sp.jar:/opt/weblogic6.0/wlserver6.0/lib/weblogic.jar:/usr/java/bin/javac:/opt/weblogic6.0:/home/adserver/current/Library/jce1_2-do.jar:/home/adserver/current/JavaSource:/home/adserver/current/EJBSource:/opt/weblogic6.0/wlserver6.0/./config/hats/applications/.wl_temp_do_not_delete/wl_local_comp12301.jar:/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared,
    -d, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanHomeImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanEOImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanImpl.java])
    Compiler failed executable.exec(java.lang.String[javac, -nowarn, -classpath,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared:/opt/weblogic6.0/wlserver6.0:/opt/weblogic6.0/wlserver6.0/lib/weblogic_sp.jar:/opt/weblogic6.0/wlserver6.0/lib/weblogic.jar:/usr/java/bin/javac:/opt/weblogic6.0:/home/adserver/current/Library/jce1_2-do.jar:/home/adserver/current/JavaSource:/home/adserver/current/EJBSource:/opt/weblogic6.0/wlserver6.0/./config/hats/applications/.wl_temp_do_not_delete/wl_local_comp12301.jar:/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared,
    -d, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanHomeImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanEOImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanImpl.java])
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:228)
    at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:228)
    at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:799)
    at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:31)
    at weblogic.j2ee.Application.addComponent(Application.java:133)
    at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:327)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:277)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:232)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:192)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
    at $Proxy30.updateDeployments(Unknown Source)
    at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2299)
    at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:240)
    at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:122)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
    at $Proxy24.start(Unknown Source)
    at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:435)
    at weblogic.management.Admin.startApplicationManager(Admin.java:1033)
    at weblogic.management.Admin.finish(Admin.java:493)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
    at weblogic.Server.main(Server.java:35)
    >
    <Dec 10, 2001 5:45:32 PM PST> <Error> <J2EE> <Error deploying application Shared.jar:
    Could not deploy: 'Shared.jar':
    Compiler failed executable.exec(java.lang.String[javac, -nowarn, -classpath,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared:/opt/weblogic6.0/wlserver6.0:/opt/weblogic6.0/wlserver6.0/lib/weblogic_sp.jar:/opt/weblogic6.0/wlserver6.0/lib/weblogic.jar:/usr/java/bin/javac:/opt/weblogic6.0:/home/adserver/current/Library/jce1_2-do.jar:/home/adserver/current/JavaSource:/home/adserver/current/EJBSource:/opt/weblogic6.0/wlserver6.0/./config/hats/applications/.wl_temp_do_not_delete/wl_local_comp12301.jar:/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared,
    -d, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanHomeImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanEOImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanImpl.java])>

    I removed the EJB classes from my classpath, but I am now getting the following
    error. If I remove the EJB classes from the classpath, how does ejbc know where
    to look for the classes when making the jar files?
    ERROR: Error from ejbc: java.lang.NoClassDefFoundError: Lcom/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLHome;
    at java.lang.Class.getFields0(Native Method)
    at java.lang.Class.getDeclaredFields(Class.java:998)
    at weblogic.ejb20.compliance.SessionBeanClassChecker.checkEJBContextIsNotTransient(SessionBeanClassChecker.java:61)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:230)
    at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:185)
    at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:309)
    at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:266)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:136)
    at weblogic.ejbc20.runBody(ejbc20.java:707)
    at weblogic.utils.compiler.Tool.run(Tool.java:81)
    at weblogic.ejbc.main(ejbc.java:20)
    ERROR: ejbc found errors
    Rob Woollen <[email protected]> wrote:
    It looks like you still don't have javac in your $PATH.
    You also should remove the EJB classes from your classpath. They should
    only be in your jar file.
    -- Rob
    Jerome Sieng wrote:
    Rob,
    I am now trying to run weblogic.ejbc(wl6.0) on the jar before deployingit, but
    I'm getting the following error. Any ideas?
    Thanks
    - Jerome
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: Adminhas a class
    com.hiwire.ejb.spotmanager.admin.AdminSessionSFBean which is in theclasspath.
    This class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: Adminhas a class
    com.hiwire.ejb.spotmanager.admin.AdminSessionSFHome which is in theclasspath.
    This class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: Adminhas a class
    com.hiwire.ejb.spotmanager.admin.AdminSessionSF which is in the classpath.This
    class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: GroupEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.GroupEntityBean which is inthe classpath.
    This class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: GroupEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.GroupEntityHome which is inthe classpath.
    This class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: GroupEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.GroupEntity which is in theclasspath.
    This class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: GroupEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.GroupPK which is in the classpath.This
    class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: TunerEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.TunerEntityBean which is inthe classpath.
    This class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: TunerEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.TunerEntityHome which is inthe classpath.
    This class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: TunerEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.TunerEntity which is in theclasspath.
    This class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: TunerEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.TunerPK which is in the classpath.This
    class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: UserEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.UserEntityBean which is inthe classpath.
    This class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: UserEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.UserEntityHome which is inthe classpath.
    This class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: UserEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.UserEntity which is in theclasspath.
    This class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: UserEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.UserPK which is in the classpath.This
    class should only be located in the ejb-jar file.>
    java.io.IOException: javac: not found
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:54)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:551)
    at java.lang.Runtime.exec(Runtime.java:477)
    at java.lang.Runtime.exec(Runtime.java:443)
    at weblogic.utils.Executable.exec(Executable.java:144)
    at weblogic.utils.Executable.exec(Executable.java:108)
    at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:555)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:372)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejbc20.runBody(ejbc20.java:707)
    at weblogic.utils.compiler.Tool.run(Tool.java:81)
    at weblogic.ejbc.main(ejbc.java:20)
    Exec failed .. exiting
    Rob Woollen <[email protected]> wrote:
    It looks like you don't have javac in the solaris path.
    FWIW, you might consider just running weblogic.ejbc on the jar before
    deploying it.
    -- Rob
    Jerome Sieng wrote:
    Hi,
    I'm trying to deploy an EJB jar file on WL6.0 in a Solaris environment,but I'm
    encoutering the following error. The EJB jar deployed fine on a
    Windows
    system,
    but I keep on getting this error on a Solaris machine. Any help/infowould be
    appreciated.
    Thanks in advance,
    - Jerome
    <Dec 10, 2001 5:45:09 PM PST> <Info> <Logging> <Only log messages
    of
    severity
    "Error" or worse will be displayed in this window. This can be changedat Admin
    Console> hats> Servers> myserver> Logging> General> Stdout severitythreshold>
    java.io.IOException: javac: not found
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:54)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:551)
    at java.lang.Runtime.exec(Runtime.java:477)
    at java.lang.Runtime.exec(Runtime.java:443)
    at weblogic.utils.Executable.exec(Executable.java:144)
    at weblogic.utils.Executable.exec(Executable.java:108)
    at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:555)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:372)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:228)
    at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:799)
    at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:31)
    at weblogic.j2ee.Application.addComponent(Application.java:133)
    at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:327)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:277)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:232)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:192)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
    at $Proxy30.updateDeployments(Unknown Source)
    at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2299)
    at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:240)
    at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:122)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
    at $Proxy24.start(Unknown Source)
    at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:435)
    at weblogic.management.Admin.startApplicationManager(Admin.java:1033)
    at weblogic.management.Admin.finish(Admin.java:493)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
    at weblogic.Server.main(Server.java:35)
    <Dec 10, 2001 5:45:32 PM PST> <Error> <J2EE> <Error deploying EJB
    Component
    Shared.jar
    weblogic.ejb20.EJBDeploymentException: EJB Deployment errors:; nestedexception
    is:
    Compiler failed executable.exec(java.lang.String[javac,
    -nowarn,
    -classpath,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared:/opt/weblogic6.0/wlserver6.0:/opt/weblogic6.0/wlserver6.0/lib/weblogic_sp.jar:/opt/weblogic6.0/wlserver6.0/lib/weblogic.jar:/usr/java/bin/javac:/opt/weblogic6.0:/home/adserver/current/Library/jce1_2-do.jar:/home/adserver/current/JavaSource:/home/adserver/current/EJBSource:/opt/weblogic6.0/wlserver6.0/./config/hats/applications/.wl_temp_do_not_delete/wl_local_comp12301.jar:/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared,
    -d, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanHomeImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanEOImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanImpl.java])
    Compiler failed executable.exec(java.lang.String[javac,
    -nowarn,
    -classpath,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared:/opt/weblogic6.0/wlserver6.0:/opt/weblogic6.0/wlserver6.0/lib/weblogic_sp.jar:/opt/weblogic6.0/wlserver6.0/lib/weblogic.jar:/usr/java/bin/javac:/opt/weblogic6.0:/home/adserver/current/Library/jce1_2-do.jar:/home/adserver/current/JavaSource:/home/adserver/current/EJBSource:/opt/weblogic6.0/wlserver6.0/./config/hats/applications/.wl_temp_do_not_delete/wl_local_comp12301.jar:/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared,
    -d, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanHomeImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanEOImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanImpl.java])
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:228)
    at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:228)
    at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:799)
    at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:31)
    at weblogic.j2ee.Application.addComponent(Application.java:133)
    at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:327)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:277)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:232)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:192)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
    at $Proxy30.updateDeployments(Unknown Source)
    at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2299)
    at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:240)
    at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:122)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
    at $Proxy24.start(Unknown Source)
    at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:435)
    at weblogic.management.Admin.startApplicationManager(Admin.java:1033)
    at weblogic.management.Admin.finish(Admin.java:493)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
    at weblogic.Server.main(Server.java:35)
    >
    <Dec 10, 2001 5:45:32 PM PST> <Error> <J2EE> <Error deploying applicationShared.jar:
    Could not deploy: 'Shared.jar':
    Compiler failed executable.exec(java.lang.String[javac,
    -nowarn,
    -classpath,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared:/opt/weblogic6.0/wlserver6.0:/opt/weblogic6.0/wlserver6.0/lib/weblogic_sp.jar:/opt/weblogic6.0/wlserver6.0/lib/weblogic.jar:/usr/java/bin/javac:/opt/weblogic6.0:/home/adserver/current/Library/jce1_2-do.jar:/home/adserver/current/JavaSource:/home/adserver/current/EJBSource:/opt/weblogic6.0/wlserver6.0/./config/hats/applications/.wl_temp_do_not_delete/wl_local_comp12301.jar:/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared,
    -d, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanHomeImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanEOImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanImpl.java])>

  • Connecting to EJ bean in Sun App Server 8

    I am working my way through the j2eetutorial14, and have successfully built the Converter app. However, I need to run the stand-alone client, connecting to the bean, in a server-independent way. So, as part of my exercise, I copied the client code in Eclipse, and made the following changes to the code:
    from the original example:
    Context initial = new InitialContext();
    Context myEnv = (Context) initial.lookup("java:comp/env");
    Object objref = myEnv.lookup("ejb/SimpleConverter");
    ConverterHome home = (ConverterHome) PortableRemoteObject.narrow(objref, ConverterHome.class);to this:
    Properties properties = new Properties();
    properties.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
    properties.put(Context.PROVIDER_URL, "corbaloc:iiop:localhost:3700");
    Context initial = new InitialContext(properties);
    Object objref = initial.lookup("ConverterBean");
    ConverterHome home = (ConverterHome) PortableRemoteObject.narrow(objref, ConverterHome.class);Now I am getting this exception in the narrow() method:
    java.lang.ClassCastException
         at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293)
         at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
         at ConverterClient.main(ConverterClient.java:27)When I run the client from the script:
    appclient -client ConverterAppClient.jarit works as expected. I am obviously missing something in my Eclipse runtime environment, but the manual was of no help so far. (But j2ee.jar library from C:\Sun\AppServer\lib is in the classpath.)
    If anyone successfully connected to the Sun App Server 8 EJB from a stand-alone client and can share their wisdom, I will appreciate it.
    On a more general note, what are the pitfalls to watch for when writing, packaging and distributing an EJB app (bean and stand-alone client) in a server-independent way? Any pointers?
    Thanks for any help.
    Alex.

    Did you have the EJB client JAR in your classpath? Yes, and I spent all day searching the Forums for the clues. I found the answer, and was going to post it here. The client JAR was missing the RMI stubs. The process of generating the stubs is quite cumbersome - at least, the one that I discovered. It involves deploying the EAR first, then going to the Admin Console and manually setting a number of options, then collecting the sought-for JAR from the Sun App Server's applications directory. The generated file will contain the stubs, and also the Home and Remote interface files, as well as the bean class (something that the client will never need). So, I may have to write a script to strip off the needless baggage from the client JAR.
    I have been working with JBoss and its plugin for Eclipse for some time now, and grew spoiled by the ease of deployment there, including the fact that the JBoss/Eclipse combo took care of the RMI stubs and many other things that Sun's server exposes to the developer.
    Anyway, here is my cookbook that I made as I was working through the process of generating the stubs:
    ====================================
    Creating a stand-alone Client:
    The stand-alone client need RMI stubs to communicate with the EJ bean on the server side. To create the stubs:
    1. Start the Admin Console web page (Start > All Programs > Sun Microsystems > Application Server PE > Admin Console). In the left-hand frame select: Applications > Enterprise Applications.
    2 In the right-hand frame, press Deploy button.
    3 Select file to upoad (navigate to the application EAR). Press Next.
    4. Set Application Name field (it should be preset), and check the Generate: RMIStubs checkbox. If this procedure was done before, check the Redeploy box to force generation of the file.
    5. Press OK button.
    The JAR file with stubs will be placed into C:\Sun\AppServer\domains\domain1\applications\j2ee-apps directory.
    The stubs have format _name_Stub.class and _nameHome_Stub.class (e.g. for Converter app the files are ConverterStub.class and ConverterHomeStub.class). These files must be extracted and placed into the client's classpath. Alternatively, the entire JAR file can be made part of the client's classpath.
    ====================================
    Thank you for the quick reply.
    Alex.

  • Unable to Register Sun App Server 9 in Netbeans 5.5

    Hi,
    I used to work on netbeans 5.5 and bundled sun app server 9. Everything was going fine. Today in the middle of a deployment in app server through netbeans, my system got hanged. So I killed the java.exe process.
    Now when I again attempted to open netbeans it showed me an error that some modules in sun app server could not be found and so sun app server could not be loaded. I tried registering sun app server again in netbeans but the server name was not even coming in the drop down list of app servers.
    Impatiently I uninstalled the bundled app server + netbeans through the uninstaller, and again installed the server and netbeans in a different directory. But again the same problem is coming and it is not showing the sun app server. Netbeans is opening and Sun App Server 9 is also working in isolated mode but I cant seem to find the sun app server still in the server list of netbeans.
    Kindly help. I am just too frustrated.

    Hi,
    I have installed J2EE 5 SDK on windows XP. When I installed NetBeans 5.5.1 and tried to register it with Application Server, it got registered automatically. I had to uninstall both due to some reasons, now when I installed both j2ee and netbeans again, i see D:/Sun/AppServer folder empty and not able to register NetBeans 5.5.1 with application server. I tried again and again by reintalling but AppServer folder remains empty and not able to register. Any help for this issue??????????

  • Deployment problem on 10g App server and 8.1.6 Oracle Db

    Hello
    I have a problem. I have an application which were developed on Jdeveloper by using ADF Classes. Apllication has consist of 2 project 1st project run on 10g DB. Second one connected to 8.1.6. Apllication run well on Embedded OC4j of J Developer. But While ı have deployed the application to App Server 10g, Part of the Application which uses 10 g is working but part of the application which uses 8.1.6 not working. When I Try to connect the application i get the following error.
    I thought that this may be caused because of security setting.
    Application which uses 8.1.7 cannot be open JDBC connection. Authentication may cause this problem.
    But i couldnt resolve
    Any Idea?
    ERROR MESSAGE :
    at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
    at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:56)
    at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:856)
    at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1095)
    at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:5724)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:6843)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:3886)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:1886)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1711)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2576)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:441)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:411)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:406)
    at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1370)
    at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1328)
    at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1300)
    at pasttel.view.MindBalanceAction.<init>(MindBalanceAction.java:33)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at java.lang.Class.newInstance0(Class.java:308)
    at java.lang.Class.newInstance(Class.java:261)
    at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:231)
    at org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:326)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:268)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:228)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher
    .java:649)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
    at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:220)
    at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:135)
    at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:523)
    at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:318)
    at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:87)
    at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
    at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:56)
    at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:856)
    at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1095)
    at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:5724)
    at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:116)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolConnect(ApplicationModuleImpl.java:7073)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:6843)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:3886)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:1886)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1711)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2576)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:441)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:411)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:406)
    at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1370)
    at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1328)
    at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1300)
    at pasttel.view.MindBalanceAction.<init>(MindBalanceAction.java:33)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at java.lang.Class.newInstance0(Class.java:308)
    at java.lang.Class.newInstance(Class.java:261)
    at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:231)
    at org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:326)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:268)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:228)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:116)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolConnect(ApplicationModuleImpl.java:7073)

    From the App Server oracle home, and with the same connection information as app is using, can you connect to 8.1.6 db with sqlplus?
    You said it works from JDeveloper - which version?
    From AS 10.1.2 (which means net/client libraries 10.1.0.3) I get
    "ORA-03134: Connections to this server version are no longer supported."
    To 8.1.7.4 database connection succeeds. (hint: 8.1.6 is not supported!)
    Maybe this could be the culprit?

  • How to install j2ee sun app server 8.0 in debain linux

    hi guys
    i am new to linux and i have downloaded the j2ee sun app server 8.0(linuxversion) from sun.java
    in sun.java documentation says first we have to change the mode to excecutable
    then he is saying to do this
    1. To run the installation program that uses a graphical interface, at the command prompt type the name of the bundle file at the command prompt.
    2.To run the installation program that uses the command-line interface, at the command prompt type the name of the bundle file followed by the -console option.
    after chmod + x <bundle name >
    the next step i am not able to do it
    what to do next
    any suggestions
    regards
    sandeep

    Hi rlubke
    Thanks for the suggestion
    1.Change the permission of the bundle file so that you have execute access:
    chmod +x <bundle-file-name>
    2. To run the installation program that uses a graphical interface, at the command prompt type the name of the bundle file at the command prompt.
    3.To run the installation program that uses the command-line interface, at the command prompt type the name of the bundle file followed by the -console option.
    Step 1. After chmod + x <bundle name >
    Step 2. sun/appserver/# <bundle name>
    bash: <bundle name>: command not found
    Step 3. sun/appserver# <bundle name>
    bash: <bundle name#>: command not found
    any suggestions
    i have done what u have said now
    Step 1. After chmod + x <bundle name >
    Step 2. sun/appserver/#./ <bundle name>
    Checking available disk space....
    Checking Java(TM) 2 Runtime Environment...
    Extracting Java(TM) 2 Runtime Environment files...
    Extracting installation files...
    Launching Java(TM) 2 Runtime Environment....
    Error: There are no files requiring installation.
    Deleting Temporary files...
    Step 3. sun/appserver# <bundle name>
    Checking available disk space....
    Checking Java(TM) 2 Runtime Environment...
    Extracting Java(TM) 2 Runtime Environment files...
    Extracting installation files...
    Launching Java(TM) 2 Runtime Environment....
    Error: There are no files requiring installation.
    Deleting Temporary files...
    this is what happening excatly

  • Sun app server problem using asadmin tool

    I have installed sun app server and trying to do the simplemessage tutorial. When I run the
    ant create-cfcommand I get the following
    [exec] Invalid user or password
    [exec] CLI137 Command create-jms-resource failed.I have put an echo line in app-server-ant.xml to see what the command is and it is.
    [echo] c:/Sun2/SDK/bin/asadmin.bat create-jms-resource --user admin  --passwordfile C:/Sun2/SDK/javaee-5-doc-tutorial-1.0_03/javaeetutorial5/examples/common/admin-password.txt --host localhost --port 4850 --restype javax.jms.ConnectionFactory --enabled=true jms/ConnectionFactoryI have checked the password file and it is
    AS_ADMIN_PASSWORD=adminadminAny ideas?
    I have checked around about using parameter password but when running this I get an error saying this is not valid and that I should use passwordfile
    Kelvin

    You haven;t specified the exceptions you r getting ........while starting your default server.
    if u r getting exception about InetClass then connect your system with LAN/Internet then your problem will be solved becoz i m using same location address as you specified, space doesn't matter at all - i think so, it is running fine........

Maybe you are looking for