Deployment problems when using several ejb-jar files

Hello All,
I am having problems with deployment of my J2EE application. My EAR file has several EJB-JARs, one for each entity bean. However I refer to the other EJBs in one EJB. Hence I included the <ejb-ref> element in the deployment descriptor of the entity bean. But I am getting the deployment error that "the bundle does not contain the bean name". I tried to change the <ejb-name> value (within the <ejb-ref> element) to the JNDI name of the EJB I am referring to, and also added the <ejb-link> tag specifying the location of the JAR file that has the EJB. None of the attempts worked.
Can someone help me out on how I am supposed to go about when I have several ejb-jar files as opposed to a single one? I am deploying my app on Sun ONE AS 7.0.
Thank you,
PS: I am posting this message on several forum topics. Please disregard this message if you have seen/answered this message. Thanks.

Hi ,
It would help if you could post the relevant snippets of your
ejb-jar.xml. In general, you definitely shouldn't use jndi-name
for any of the linking information. jndi-name is not part of the
standard deployment descriptor. The syntax for the ejb-link is
[ejb-jar uri]#ejb-name
K

Similar Messages

  • Deployment error when using several ejb-jar files

    Hello All,
    I am having problems with deployment of my J2EE application. My EAR file has several EJB-JARs, one for each entity bean. However I refer to the other EJBs in one EJB. Hence I included the <ejb-ref> element in the deployment descriptor of the entity bean. But I am getting the deployment error that "the bundle does not contain the bean name". I tried to change the <ejb-name> value (within the <ejb-ref> element) to the JNDI name of the EJB I am referring to, and also added the <ejb-link> tag specifying the location of the JAR file that has the EJB. None of the attempts worked.
    Can someone help me out on how I am supposed to go about when I have several ejb-jar files as opposed to a single one? I am deploying my app on Sun ONE AS 7.0.
    Thank you,
    PS: I am posting this message on several forum topics. Please disregard this message if you have seen/answered this message. Thanks.

    Hello,
    Thanks for the response. I have got both Local and Remote EJB References, but for the JAR (where the ejbc compiler stopped) that I have an error, it is the local reference.

  • Problem when using JPA/EJB in webservice

    I wrote a web service that use JPA/EJB to connect to Sybase (the existing tables), and deployed to OC4J, but it got the following error when the web service is invoked:
    <env:Envelope
      xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:ns0="http://prjtestws_9/types/">
     <env:Body>
      <env:Fault>
       <faultcode>env:Server</faultcode>
       <faultstring>Internal Server Error (Caught exception while handling request: java.lang.NullPointerException)</faultstring>
      </env:Fault>
     </env:Body>
    </env:Envelope>
    I have checked that, the query will return some records, and also it works fine if the program executed as a stand alone application.
    Thanks in advance

    I find that I can only have ONE webservice that using JPA/EJB for an OC4J instance, if more than one then the above error will come out, and I have to restart the OC4J instance to run another webservice that using JPA/EJB.
    Is there any solution for this issue?
    Thanks

  • Problem when using keyfield in sender file content conversion

    Hi all,
    I am using FCC at sender side.
    My recordset structure is as follow::
    <MT_TW_TLOG>
      <Transaction>
       ---<SalesItem> 1...unbounded
           <XF_SOURCESYS>
           <XF_STORECODE>
           <XF_TYPE>
           <XF_VOIDFLAG>
       ---</saleItem>
       ---<SalesReturn> 1...unbounded
           <XF_SOURCESYS>
           <XF_STORECODE>
           <XF_TYPE>
           <XF_VOIDFLAG>
       ---</saleReturn>
       ---<SalesTotal>
           <XF_SOURCESYS>
           <XF_STORECODE>
           <XF_TYPE>
           <XF_VOIDFLAG>
       ---</saleTotal>
       ---<SalesTender> 1...unbounded
           <XF_SOURCESYS>
           <XF_STORECODE>
           <XF_TYPE>
           <XF_VOIDFLAG>
       ---</saleTender>
    </Transaction>
    FCC specification that i have used is::
    Recordset name::       Transaction
    Recordset Structure::  salesItem,,salesReturn,,salesTotal,1,SalesTender,*
    Recordset Sequencee::  
    Variable
    Key field name::XF_TYPE
    key fiel type::String(Case-sensitive)
    then i have given following information::
    salesItem.fieldnames ::all field names
    salesItem.fieldSeparator::,
    salesItem.keyFieldvalue::2
    salesItem.processFiledNames::fromConfiguration
    salesReturn.fieldnames ::all field names
    salesReturn.fieldSeparator::,
    salesReturn.keyFieldvalue::2
    salesReturn.processFiledNames::fromConfiguration
    salesTotal.fieldnames ::all field names
    salesTotal.fieldSeparator::,
    salesTotal.keyFieldvalue::2
    salesTotal.processFiledNames::fromConfiguration
    salesTender.fieldnames ::all field names
    salesTender.fieldSeparator::,
    salesTender.keyFieldvalue::2
    salesTender.processFiledNames::fromConfiguration
    My source file is a text file.
    So when i am transfering following data,
    scenario works fine.
    PCTW,TWS001,2,1
    PCTW,TWS001,2,10
    PCTW,TWS001,3,2
    PCTW,TWS001,1,3
    PCTW,TWS001,4,4
    Third field is my XF_TYPE.
    But if i change the order of records as follows::
    PCTW,TWS001,3,1
    PCTW,TWS001,3,10
    PCTW,TWS001,2,2
    PCTW,TWS001,1,3
    PCTW,TWS001,4,4
    It fails at adaper monitor and throws following error::
    2006-11-01 10:42:00 UTC: Error: Conversion of complete file content of 'try.txt' to XML format failed around position 0: Exception: ERROR consistency check in recordset structure validation (line no. 3: missing structure(s) before type 'SalesItem'
    Please provide some help on it.
    Thanks & Regards,
    Nilima

    Hi Nilima,
    Just go through this Weblog.
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    and specially the hilighted ( circled text ) in this and its description below.
    Hope this will be helpful
    Reward if helpful.
    Regards
    Sachin

  • Problem when using a new class "File" in JSP

    I'm using Weblogic 4.52sp2 under Solaris 2.6 with JDK 1.2.1_04. I've got a problem with a JSP that uses a commercial bean which contains a specific "File" class. This class has its own package: com.jspsmart.upload.File. While compiling, Weblogic raises an exception:
              Fri Mar 09 14:41:38 CET 2001:<I> <ServletContext-Servlets> weblogic.servlet.JSPServlet: Generated java file: /data/html/compiledJSP/_jspsmartupload/_jsp/_sample2.java
              Fri Mar 09 14:41:43 CET 2001:<E> <ServletContext-Servlets> weblogic.servlet.JSPServlet: Compilation of /data/html/compiledJSP/_jspsmartupload/_jsp/_sample2.java failed:
              /data/html/compiledJSP/_jspsmartupload/_jsp/_sample2.java:46: Ambiguous class: java.io.File and com.jspsmart.upload.File
              f = new File("/data/html/jspsmartupload/jsp/sample2.jsp");
              I looked at the .java generated file but it seems that everything is OK: f is a java.io.File
              public class _sample1 extends weblogic.servlet.jsp.JspBase implements weblogic.servlet.jsp.StaleIndicator {
              // StaleIndicator interface
              public boolean _isStale() {
              java.io.File f = null; long lastModWhenBuilt = 0L, lastMod = 0L;
              f = new File("/data/html/jspsmartupload/jsp/sample1.jsp");
              lastModWhenBuilt = 984144952000L;
              lastMod = f.lastModified();
              if (!f.exists() || lastMod > lastModWhenBuilt) return true;
              return false;
              We can't neither change the bean (no sources) nor Weblogic JSP engine (of course). Has anyone a solution ?
              [att1.html]
              

    i think you should try this
              f = new java.io.File("/data/html/jspsmartupload/jsp/sample1.jsp");
              "Laurent PAILLARD" <[email protected]> wrote in message
              news:[email protected]...
              I'm using Weblogic 4.52sp2 under Solaris 2.6 with JDK 1.2.1_04. I've got a
              problem with a JSP that uses a commercial bean which contains a specific
              "File" class. This class has its own package: com.jspsmart.upload.File.
              While compiling, Weblogic raises an exception:
              Fri Mar 09 14:41:38 CET 2001:<I> <ServletContext-Servlets>
              weblogic.servlet.JSPServlet: Generated java file:
              /data/html/compiledJSP/_jspsmartupload/_jsp/_sample2.java
              Fri Mar 09 14:41:43 CET 2001:<E> <ServletContext-Servlets>
              weblogic.servlet.JSPServlet: Compilation of
              /data/html/compiledJSP/_jspsmartupload/_jsp/_sample2.java failed:
              /data/html/compiledJSP/_jspsmartupload/_jsp/_sample2.java:46: Ambiguous
              class: java.io.File and com.jspsmart.upload.File
              f = new File("/data/html/jspsmartupload/jsp/sample2.jsp");
              I looked at the .java generated file but it seems that everything is OK: f
              is a java.io.File
              public class _sample1 extends weblogic.servlet.jsp.JspBase implements
              weblogic.servlet.jsp.StaleIndicator {
              // StaleIndicator interface
              public boolean _isStale() {
              java.io.File f = null; long lastModWhenBuilt = 0L, lastMod = 0L;
              f = new File("/data/html/jspsmartupload/jsp/sample1.jsp");
              lastModWhenBuilt = 984144952000L;
              lastMod = f.lastModified();
              if (!f.exists() || lastMod > lastModWhenBuilt) return true;
              return false;
              We can't neither change the bean (no sources) nor Weblogic JSP engine (of
              course). Has anyone a solution ?
              

  • Problem trying to cataloge a jar file OBPM 10.3.1.0

    Hi,
    I´m having problems when i cataloge a jar file, in OBPM suite 10.3.1.0, it is an itext jar file. I´ve been trying to cataloge older and newer versions of the Itext jar file but there´s no difference in the outcome.
    I create the external resource, but when i try to cataloge the package it doesn´t work
    The message it returns is:
    [Error] Excepción de introspección: Internal Error: java.lang.VerifyError: (class: com/lowagie/text/RectangleReadOnly, method: <init> signature: (Lcom/lowagie/text/Rectangle;)V) Bad access to protected data..
    is there anything i can do to solve this problem?..
    Thanks for your time
    Alfredo Butrón
    Alkimia Consultores

    Hi Dan,
    I´ve done what you told me, i buid a helper class to invoke the iText classes ,and i just cataloge the helper class keeping all the jar files only in the external resource
    When i run my class out of OBPM it works fine, but when i try to invoke my class from OBPM with the same jar classes i use in a external way i get the following message:
         at fuego.component.ExecutionThread.work(ExecutionThread.java:839)
         at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
    Caused by: java.lang.NoSuchMethodError: com.lowagie.text.pdf.PdfWriter.setRgbTransparencyBlending(Z)V
         at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:482)
         at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:381)
    i change the version of iText.jar many times and i get the same message..
    thanks in advance
    ALfredo

  • Problem building EJB jar file using Eclipse

    Hi,
    Here's my file sturcture.
    ejb\x\y\z\test\
    ejb\x\y\z\test1\
    'ejb' is the root directory.
    The java source files under 'test' have a package name x.y.z.test.
    The java source files under 'test1' have a package name x.y.z.test1.
    I want to build a EJB jar file for 'test' and 'test1' separately. In eclipse when I create an EJB project, I specify the root folder as the source in the java build path settings. So the project explorer in Eclipse shows both the packages since they are under the same root folder. When I try to do 'Export - EJB Jar File', it includes both the 'test' and 'test1' in the .jar. Is there a way to build them separately ?
    Thanks,

    As far as I know, there is no way in Eclipse to specify a package prefix for a source folder. Assuming that you are not using an operating system with support for symbolic links at FS-level, the only way I can think of solving your problem is via linked folders and includes/excludes.
    1. Create two ejb projects in your workspace. Specify locations somewhere independent of where the root of your source tree is located.
    2. Right click on proj1 and select Properties / Java Build Path / Source.
    3. Click Link Source and specify the location to your source root on disk. Click Next.
    4. In the inclusion patterns section, add a pattern that captures classes appropriate for that module. Click Finish.
    5. Delete the original source directory that was created during project creation before leaving Build Path configuration dialog.
    6. Repeat steps 2-5 on the second project, except specify a different inclusion pattern.
    This should produce a project structure that Eclipse will be happy with, but you have to be a little bit careful. Even though you filtered out classes from the view of the java compiler for a particular project, you will still see them listed in the various navigational views (such as Package Explorer or Project Explorer). Don't modify these filtered out files. The project that is supposed to be building them will not react to changes in the other project. You will have to manually refresh (right click on project and select refresh) the other project before the java compiler will see changes.
    Hope this will help you out.
    - Konstantin

  • Problems with the ActiveX bridge for Java beans when using third-party .jar

    I encountered the following problem when using the ActiveX bridge for a java bean:
    I am using JDK 1.4.2_09 and MS Visual Basic 6.0 (SP6). I wrote a java bean called ProcessViewer (my class ProcessViewer inherits from JComponent and implements the interfaces Serializable and AdjustmentListener) which I would like to use within a VB 6.0 application. I used the ActiveX bridge (packager.exe) to generate a DLL (ProcessViewer.dll) and registered it successfully. The java bean GUI-control works fine within my VB 6.0 application unless my java bean (ProcessViewer.jar) uses any third-party .jar files.
    But when I tried to add a reference to some third-party class (com.sap.xxx.xxx....) I got some problems. I could solve the problem with packager.exe by setting the correct CLASSPATH. But at runtime my VB 6.0 application does not work. It crashes or it reports an error like this: "The control ... could not be loaded from axbridge.dll" (although I deployed my .jar file correctly to the directory C:\Programme\Java\j2re1.4.2_09\axbridge\bin and lib). Setting the CLASSPATH environment variable before calling my VB 6.0 application (exe) did not solve the problem.
    How can I teach my VB 6.0 application (containing the Java bean ActiveX control) where to find the third-party .jar file? Copying the third-party .jar file to the JRE lib-folder or to the axbridge\lib folder did not solve the problem either.
    I studied the documentation about the ActiveX bridge given at:
    http://java.sun.com/j2se/1.4.2/docs/guide/beans/axbridge/developerguide/index.html
    but I am missing informations on how the third-party .jar files can be found during runtime of the ActiveX container (e. g. a VB 6.0 application).

    See how to solve your problem with JNI:
    http://codeproject.com/cpp/OOJNIUse.asp
    More examples (for SWING) in tools setup:
    http://www.simtel.net/product.php[id]95126[SiteID]simtel.net
    http://www.simtel.net/product.php[id]94368[SiteID]simtel.net
    http://www.simtel.net/product.php[id]93174[SiteID]simtel.net

  • How to deploy EJB jar file in Weblogic 8.1

    Hi,
    I have created the EJB jar file, bearing home,remote,ejb and client class aling with the META-INF folder containing ejb-jar.xml and weblogic-ejb-jar.xml.
    After all this I am confused where to put this EJB jar file so that the container could deploy it.
    I am putting it in application folder of my own created Domain.
    Suggest me...

    Put it anywhere you like. You can always deploy it using the administrator console. There usually is an auto-deployment directory for the domain. You could find all that information in the Weblogic documentation.

  • Problem is when iam exporting the jar file the manifest file  chaning

    LogWriter.java
    MiniBrowser.java
    SendMail.java
    TestMiniBrowser.java
    iam running the site scope program ,program is running fine
    i add the mail.jar and activation.jar
    when iam Exporting the JAR file ,the Manifest files is changing with out classpath
    only showing the like this
    Manifest-Version: 1.0
    Sealed: true
    Main-Class: p1.TestMiniBrowser
    Actually i created the manifest files like this ..
    Manifest-Version: 1.0
    Sealed: true
    Class-Path: mail.jar activation.jar icsops.jar
    Main-Class: p1.TestMiniBrowser
    problem is when iam exporting the jar file the manifest file is changing then iam not able the run the jar file ..

    iam Useing Eclipse sdk3.1
    after exporing the jar the manifewst is canging but iam updating mauvally but when iam runingg the jar file
    D:\pavansitescope>set calsspath=%classpath%C:\j2sdk1.4.1_03\bin;.;
    D:\pavansitescope>set calsspath=%classpath%D:\pavansitescope\mail.jar;.;
    D:\pavansitescope>set calsspath=%classpath%D:\pavansitescope\activation.jar;.;
    D:\pavansitescope>set calsspath=%classpath%D:\pavansitescope\mail-plugin.jar;.;
    D:\pavansitescope>java -jar icsops.jar
    Arguments Usage:
    1. URL link
    2. From Address
    3. To Addresses (seperated by comma)
    4. Mail Server Host Name
    D:\pavansitescope>java -jar icsops.jar [http://69.27.230.104/SiteScope/accounts/l]
    ogin5/htdocs/Progress.html [[email protected]|mailto:[email protected]] [[email protected]|mailto:[email protected]] HYDMA
    IL03
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/MessagingE
    xception
    at p1.TestMiniBrowser.start(TestMiniBrowser.java:42)
    at p1.TestMiniBrowser.main(TestMiniBrowser.java:156)
    D:\pavansitescope>

  • No EJBs found in the ejb-jar file

    Hello all, we are thinking about migrating from JBoss to WebLogic server, so as a proof of concept I am trying to migrate a JBoss Seam web application to WebLogic server.
    I have followed all the instructions here: http://docs.jboss.org/seam/2.0.2.SP1/reference/en-US/html/weblogic.html and I have set up ebvryhting that is needed in order to start the server (JMS queues, datasources, etc) but when the server starts and tries to load the web application I got the following error message
    <29 ═Ύί 2010 4:34:51 ΉΉ EET> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'myapplication-ear' due to error weblogic.application.ModuleException: Exception preparing module
    : EJBModule(MyApplication.jar)
    [EJB:011023]An error occurred while reading the deployment descriptor. The error was:
    No EJBs found in the ejb-jar file 'MyApplication.jar'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at least one class annotated with t
    he @Stateless, @Stateful or @MessageDriven EJB annotation...
    weblogic.application.ModuleException: Exception preparing module: EJBModule(MyApplication.jar)
    [EJB:011023]An error occurred while reading the deployment descriptor. The error was:
    No EJBs found in the ejb-jar file 'MyApplication.jar'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at least one class annotated with t
    he @Stateless, @Stateful or @MessageDriven EJB annotation..
    at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:467)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:507)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:149)
    Truncated. see log file for complete stacktrace
    Caused By: java.io.IOException: No EJBs found in the ejb-jar file 'MyApplication.jar'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at l
    east one class annotated with the @Stateless, @Stateful or @MessageDriven EJB annotation.
    at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyDescriptorFromJarFile(EjbDescriptorReaderImpl.java:219)
    at weblogic.ejb.spi.EjbDescriptorFactory.createReadOnlyDescriptorFromJarFile(EjbDescriptorFactory.java:93)
    at weblogic.ejb.container.deployer.EJBModule.loadEJBDescriptor(EJBModule.java:1242)
    at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:395)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
    Truncated. see log file for complete stacktrace
    The MyApplication.jar is where we keep all the models and we are using an exploded folder for the ear file. We have declared all the classes to be entities by using the @Entity and @Table annotations and we have also defined an interceptor in the ejb-jar.xml file (shown below).
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
    version="3.0">
    <interceptors>
    <interceptor>
    <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
    </interceptor>
    </interceptors>
    <assembly-descriptor>
    <interceptor-binding>
    <ejb-name>*</ejb-name>
    <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
    </interceptor-binding>
    </assembly-descriptor>
    </ejb-jar>
    I have tried to compile everythign from scratch by using weblogic.appc but I am getting the same error: No EJBs found in the ejb-jar file 'ejbModule'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at least one class annotated with the @Stateless, @Stateful or @MessageDriven EJB annotation.
    Any ideas what is going on and how I can resolve the issue?
    Regards
    Panos
    Edited by: 816483 on 29 Νοε 2010 6:53 πμ

    Hi John,
    I am working on development an enterprise application using EJB 3.0 on Weblogic 10.
    While developing, I am keeping all my classes (from ejb's as well as web) into APP-INF/classes directory. It is working fine for Web and ejb 2.0 packages, but ejb 3.0 packages, I get the following error when I keep my ejb 3.0 beans classes in APP-INF/classes directory.
    No EJBs found in the ejb-jar file 'customer'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at least one class annotated with the @Stateless, @Stateful or @MessageDriven EJB annotation.
    One solution is to keep the classes under customer ejb directory, but I wan tto keep all the classes in APP-INF/classes directory so that when using Eclipse IDE I can output all compiled sources into APP-INF/classes directory.
    Has anyone faced this situation? Any suggestions to fix this issue?

  • Cannot build EJB jar file in NWDS

    hello,
    I changed java beans file, and tried to build jar file again, then the "build EJB archive" context menu is disabled so I can not make EJB jar file!
    So frustrated.. NWDS recognizes the changes in the java files , right? How come there 's no Build menu..
    Is there any pre-requisite to enable the menu?
    I have no idea how I can build jar file..
    Please give me a advice.. Thanks~!

    You might check the weblogic.developer.interest.ejb.tools new group.
    Make sure that the tool doesn't leave this ejbcgen directory around. It
    should delete
    that temp dir. When it doesn't it keeps all the old generated stuff around
    and your changes won't be
    reflected in the new jar.
    Rodrigo Ruiz Aguayo <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    I have a problem with the EJBDeployerTool. When I want to update
    a class file (for example, because I corrected any problem), the
    deployer tool doesn't update the file correctly. It keeps the
    old version of the class file.
    In order to update a jar I have to copy the newer version in the
    .ejbdeployer/provider-projects directory by hand. Is it a bug?
    Is there any other way to do this? We are wasting too much time
    in this task, instead of programming :_(
    Thanks in advance,
    José Rodrigo Ruiz Aguayo e-mail : [email protected]
    I.T. en Informática de Sistemas webpage : ---------------------
    "Simulation is perfect, whenever we're not talking about reality"

  • ClassNotFoundException if ejb jar file is not placed in the server's classpath

    Hi,
    My ejb jar file contains some non-weblogic generated files and is placed in
    the applications directory. When client is executed, I get the ClassNotFoundException
    on the server when my bean makes a reference to the generated class. The problem
    gets resolved if I put the ejb jar in the server's classpath.
    This problem happens in weblogic server version 6.1. It was not happening in
    the previous releases of weblogic server(6.0).

    Well
    I follow your instruction
    I am pasting the command prompt operation
    Coding is same above
    My all three files (.java )is resides in javath folder
    command prompt code
    Z:\javath>javac -d . sa.java
    Z:\javath>javac -d . sb.java
    Z:\javath>jar -cvf p1.jar p1/*.class
    added manifest
    adding: p1/sa.class(in = 687) (out= 423)(deflated 38%)
    adding: p1/sb.class(in = 185) (out= 153)(deflated 17%)
    Z:\javath>javac demopack.java
    demopack.java:4: cannot access sb
    bad class file: .\sb.java
    file does not contain class sb
    Please remove or make sure it appears in the correct subdirectory of the classpa
    th.
    public class demopack implements sb
                                     ^
    1 error
    Z:\javath>------------------------------------------------------------
    in demopack.java file i want to access class files which are resides in
    jar files
    Actually when we are writing import java.io.*;
    we can access all the class file from that io package
    Same thing i am trying to implement for user defined package
    I hope you understand my question
    regards

  • TS2570 doesn't work, still the same problem when using Rapidweaver software. NOT with other software.

    i tried everything in this article, but still have the same problem when using Rapidweaver software. NOT with other software. I am converting my iWeb site  to Rapidweaver, whenever there is a calmer period in my office. I have 16 Gb RAM on my NEW iMac and have Parallels desktop, mail, safari, iWeb and Rapidweaver running simultanious.
    I never have the problem if i don't use Rapidweaver, but after i have added several pages to Rapidweaver, the problem begins. my iMac won't start up. the only thing that works is re-installing Macos OS X 10.8. i tried even whiping the completeharddrive, and reinstalling with a complete new user, the same problem.
    I had it on my previous iMac also, and bought a new one because i thought the problem was in the iMac first. i hadn't noticed it only happens with using rapidweaver.
    i sent my complete rapidweaver project to the programmers from rapidweaver at Realmacsoftware, but they couldnt reproduce my problem, there macs started up without any problem.
    i deleted all the rapidweaver addons and extra stacks, and started a complete new project.
    saterday i had the problem again, after adding about 5 new pages to my rapidweaver site.
    i think i have reinstalled Macos OS X 10.8.2 20 or 30 times by now
    does anyone have a sollution?

    Type '''about:support''' in the URL bar and hit Enter.
    Scroll down almost to the bottom of that listing and see if you have '''user.js Preferences''' just above the '''''Graphics''''' category.
    If you do have that, click on '''user.js file''' in this sentence. <br />
    ''Your profile folder contains a user.js file, which includes preferences that were not created by Firefox.''
    Does that "different homepage" appear in that user.js file?

  • Including images in jar executable files. Using images in jar files.

    Does anybody know what is the reason of my problem??
    I created a package called test in my eclipse env. and in that package I placed folder named graph in which there is a file Help.png.
    Here is all the code I run in eclipse and it runs properly. When I create a jar file (using eclipse wizard) to execute without eclipse it can not execute and shows nothing (process starts and I have to kill it by myself in OS). Maybe there is some mistake with making jar... I do not know
    So let someone try tu run my class or build jar file and try to execute and share his observations (solutions) ??
    package test;
    import java.awt.Toolkit;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.UIManager;
    public class TestWindow extends JFrame {
         private JButton jButton1 = new JButton(new JARImage().getImage("Help.png"));
         public TestWindow() {
              this.getContentPane().add(jButton1);
              this.validate();
              this.setVisible(true);
         private class JARImage {
              protected ImageIcon getImage(String imageName) {
                   ImageIcon image = new ImageIcon();
                   try {
                        image.setImage((Toolkit.getDefaultToolkit().getImage(getClass()
                                  .getResource("graph/" + imageName))));
                   } catch (Exception ex) {
                        System.out.println("Image Error: " + ex);
                        ex.printStackTrace();
                   return image;
         public static void main(String[] args) {
              try {
                   UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
              } catch (Exception e) {
                   e.printStackTrace();
              new TestWindow();
    }

    Uncaught error fetching image:
    java.lang.NullPointerException
         at sun.awt.image.URLImageSource.getConnection(Unknown Source)
         at sun.awt.image.URLImageSource.getDecoder(Unknown Source)
         at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
         at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
         at sun.awt.image.ImageFetcher.run(Unknown Source)

Maybe you are looking for

  • I can't get a TV Show manually moved onto my iPod!

    Okay, so my computer's hard drive doesnt' have enough space for me to back up the entirety of what I have on my iPod (I have the 80GB Classic). I just bought a season of a TV Show (accidentally twice but I contacted support about that) but when I try

  • Nokia 6300 - Instant Messaging icon/functionality ...

    Hi everybody, I'm from Canada, and just bought a Nokia 6300 brand new a few days ago. This morning, I went on my phone to change the wallpaper, and for a second, the phone blinked and changed back to the default provider theme. I then changed back th

  • In-Pocket iPod Function Issues

    It's next to impossible to control the iPod function on the iPhone when it's in your pocket for a few reasons: 1. It's very difficult to locate the forward/reverse function on the screen when the iPhone is in your pocket. 2. It eventually locks, in w

  • Want to convert Sap standard report s_alr_87012085  into alvgrid

    i Want to convert Sap standard report s_alr_87012085  into alvgrid please help me.

  • SQLPlus and ISQLPlus Problem

    Hi friends, I am new to Oracle in Windows platform.I want to connect sqlplus in windows gui form not from command prompt.For that from start manu I go to sqlplus option and I put user and password but i am not able to put host string as i am not clea