Creating a JAR using JDIC PROBLEMS in creating a JAR!!!
Hi
I am trying to work with JDIC APIs in my Java application. I wish to open a browser on clicking a button in my application which uses Java Swing.
I included the location of the JDIC.jar in my class_path under environmental variables in Windows.
However, despite that I am having to compile using the classpath option with javac.
After compiling using javac, I again have to run it using java and the classpath option.
I am now trying to create a jar of my application including the JDIC.jar as well.
However I am unable to do this successfully.
Since this is my first time working with a 3rd party API orher than the standard Java API, I am stumbling about and would GREATLY appreciate some guidance
Hi
Thanks a lot!
I got SOME response!!!
Well okie..
I have the JDIC library at C:\jdic-0.9.1-bin-cross-platform
with the jar at C:\jdic-0.9.1-bin-cross-platform\jdic.jar
My application is at
C:\VDApp
The packagename is GeneViewer
So I am doing the following
C:\VDApp> javac -classpath DOT; C:\jdic-.....\jdic.jar GeneViewer\MainClass.java
C:\VDApp>java -classpath DOT;c:\jdic.....\jdic.jar GeneViewer.MainClass
I am trying to create a jar as follows
C:VDApp> jar cmf manifest.mf GeneViewer.jar GeneViewer C:\jdic...\jdic.jar
The manifest.mf file contains 1 line
Main-Class: GeneViewer.MainClass
Although the jar file is created successfully, when I try to run it, it doesnt run properly. It throws that error message. cannot find /org/etc etc...
All those hierarchy exist only in C:\jdic-0.9.1-crossplatform....
Please guide me further
Thanks
Similar Messages
-
TO CREATE SALES ORDER USING BAPI PROBLEM
I am trying to create Sales Order using bapi function, this is giving me error as mentioned below
*Please enter SHIP-TO-PARTY OR SOLD TO PARTY
*SALES DOCUMENT WAS NOT CHANGED.
it does not GIVE ME THE SALES DOCUMENT NO .
The BAPI I am using is BAPI_SALESORDER_CREATEFROMDAT2.
Would someone know which parameters I have to papulate,or have any other suggestion
THE INTERNAL TABLES I AM PASSING TO BAPI FUNCTION ARE
DATA: IT_BAPI_HEADER LIKE BAPISDHD1.
DATA: IT_BAPI_SOLD_TO_PARTY LIKE BAPIPARNR occurs 0 with header line.
DATA: SO_NO LIKE BAPIVBELN-VBELN.
DATA: IT_BAPI_ITEMS_IN LIKE BAPISDITM occurs 0 with header line.
DATA: IT_BAPI_RETURN LIKE BAPIRET2 occurs 0 with header line.
IS THERE ANYTHING ELSE TO POPULATE OTHER THAN THIS STRUCTURES
HEADER
Sales-Document type:
* Sales-Organization
* Distrubution-Channel:
* Division
PARTNER
Partner Function
Customer Number
ITEM DETAIL
Material Number
how to accomplish my task?Nandan,
Please go through the documentation of the BAPI. It gives you details of what needs to be filled in in which structure/parmater. Also, read the documentation associated with each structure, that will tell what to fill.
It is really hard to explain it in simple terms as to what are required. But, you need the header, items and partners at the minimum. Also, with some of these structures there are also 'X' structures(like ORDER_ITEMS_INX for ORDER_ITEMS_IN) which should also be filled based on what fields you filled in the original structure. For example, if you filled 'MATERIAL' field on the ORDER_ITEMS_IN structure, you should also fill in the same field on the ORDER_ITEMS_INX structure with an 'X' in it.
All this is well documented in the BAPI.
Srinivas -
After Creating a RecordSet using Wizard, Unable to Create RecordSet Paging - Error Occurs
I created a record set using the wizard and it tested just fine using the test button. So my next step was to create the "RecordSet Paging" "Move to First Record", whe I select this I get the error "Before using this Server Behavior, please create a record set"
The record set is there, it is even checked off in the binding list as being there, yet I can not do anything, I even went in and deleted it and tried again with the same result, this is getting very annoying and is causing me a lot of extra work.
Is this a BUG!!!
I have seen this issue several times now.
Running Version 11.0 build 4993
Signed
Frustrated!!!!!Hi,
For questions regarding dynamic site development, hop over to the following forum. You'll get better answers there.
Dreamweaver Application Development Forum
http://forums.adobe.com/community/dreamweaver/dreamweaver_development?view=discussions
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
Creation of invoicing plan while creating the PO using BAPI_PO_CREATE1
Hi, basically I'm creating a PO using BAPI_PO_CREATE1 and then creating Invoicing plan thru ME22 using BDC.
Could anyone please help me if there is any possibility of creation of invoicing plan while creating the PO itself using BAPI_PO_CREATE1.
thanks in advance.Hi,
Have you tried filling up the invoicing plan related tables of the bapi ?
*" INVPLANHEADER STRUCTURE BAPI_INVOICE_PLAN_HEADER OPTIONAL
*" INVPLANHEADERX STRUCTURE BAPI_INVOICE_PLAN_HEADERX OPTIONAL
*" INVPLANITEM STRUCTURE BAPI_INVOICE_PLAN_ITEM OPTIONAL
*" INVPLANITEMX STRUCTURE BAPI_INVOICE_PLAN_ITEMX OPTIONAL
Regards. -
Dear Experts,
My scenario is:
We have batch split scenario, where the parent line item of billing document has 0 quantity and its subsequent item (item with batch number) holds actual quantity data.
When we create billing document using VF01 against delivery document, system creates billing document along with excise invoice document (J1IIN Document). And in excise document contain same number of line items that of billing document. Please see the below attachment:
Biiling document screen shot:
While creating billing document, the J1IIN Document created automatically. Below is the screen-shot for the same.
Now the issue is:
When we create billing document using BAPI: BAPI_BILLINGDOC_CREATEMULTIPLE system creating only billing document and not creating excise invoice document.
When we create excise document manually using J1IIN the zero quantity line items are excluded in excise invoice document.
Please see the below screen-shot for the same; The z quantity line items are missing.
We want excise document to be created while creating billing document using BAPI BAPI_BILLINGDOC_CREATEMULTIPLE. Or is there any other BAPI for the same purpose.
Customization is also maintained for creating excise invoice document automatically.
Regards,
Rajesh Sadula.HI
Pricing will be carried basing on the pricing
procedure.
Case1: Prices will be carried out automatically if
necessary condition records are maintained for the
condition type.
For this you can go to Sales Order-> Item Conditions
In the screen you can click on command button Analysis,
which gives you the list of condition types associated
to the pricing procedure. By clicking on the condition
type you can know the action that has taken place.
Case2: Manually forcing prices for Items.
To do this, you have to populate ORDER_CONDITIONS_IN &
ORDER_CONDITIONS_INX. Also note to identify the item
numbers, you manually pass the item number for each item
in the sales order, use the same item number for
populating conditions.
Parameters required:
ORDER_CONDITIONS_IN:
ITM_NUMBER, COND_TYPE, COND_VALUE, CURRENCY
ORDER_CONDITIONS_INX:
ITM_NUMBER, COND_TYPE, UPDATEFLAG, COND_VALUE,CURRENCY.
Hope the above info helps you. Do revert back if you
need more info.
Kind Regards
Eswar -
Create quality notification using bapis
Hi all
i want to create quality notification(QM01) using bapi. I know bapi - BAPI_QNOTIFICAT_CREATE can be used to create that. Using this i can create basic quality notifcation.But if you go to transaction QM1, there are two more tabs - validity datetask and materialquantitydelivery date. How to populate these two tabs. Is any other bapi need for the same?I had to create a notification and fill Material , batch , product cat,Disposition , Reference , priority ,department , coding, description
I had a reference notification and i used the foll code to create new noti.
SELECT SINGLE zzprdcat zzdispos zzdivisn qwrnum refnum
priok qmcod qmkat qmtxt qmgrp objnr INTO
(gs_qmel-zzprdcat, gs_qmel-zzdispos, gs_qmel-zzdivisn,
gs_qmel-qwrnum, gs_qmel-refnum, gs_qmel-priok,
gs_qmel-qmcod, gs_qmel-qmkat, gs_qmel-qmtxt,
gs_qmel-qmgrp, gs_qmel-objnr)
FROM qmel WHERE qmnum = gs_qmel1-qmnum.
SELECT SINGLE parnr INTO (ihpa-parnr) FROM ihpa
WHERE objnr = gs_qmel-objnr
AND parvw = 'AB'.
PERFORM bdc_dynpro USING 'SAPLIQS0' '0200'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RIWO00-QMART'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'RIWO00-QMART'
c_qmart.
PERFORM bdc_dynpro USING 'SAPLIQS0' '7200'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=10\TAB02'.
PERFORM bdc_field USING 'VIQMEL-MATNR'
gs_mseg-ummat.
PERFORM bdc_field USING 'VIQMEL-CHARG'
gs_mseg-umcha.
PERFORM bdc_field USING 'VIQMEL-ZZPRDCAT'
gs_qmel-zzprdcat.
PERFORM bdc_field USING 'VIQMEL-ZZDIVISN'
gs_qmel-zzdivisn.
PERFORM bdc_field USING 'VIQMEL-ZZDISPOS'
gs_qmel-zzdispos.
PERFORM bdc_field USING 'VIQMEL-QWRNUM'
gs_qmel-qwrnum.
PERFORM bdc_field USING 'VIQMEL-REFNUM'
gs_qmel-refnum.
PERFORM bdc_field USING 'VIQMEL-PRIOK'
gs_qmel-priok.
PERFORM bdc_field USING 'BDC_CURSOR'
'DIIHPA-I_PARNR'.
PERFORM bdc_field USING 'DIIHPA-I_PARNR'
ihpa-parnr.
PERFORM bdc_field USING 'RQM02-PARNR_VERA'
sy-uname.
PERFORM bdc_dynpro USING 'SAPLIQS0' '7200'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BDC_CURSOR'
'VIQMEL-QMCOD'.
PERFORM bdc_field USING 'VIQMEL-QMGRP'
gs_qmel-qmgrp.
PERFORM bdc_field USING 'VIQMEL-QMCOD'
gs_qmel-qmcod.
PERFORM bdc_field USING 'RIWO00-HEADKTXT'
gs_qmel-qmtxt.
PERFORM bdc_dynpro USING 'SAPLIQS0' '7200'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BUCH'.
PERFORM bdc_field USING 'BDC_CURSOR'
'VIQMEL-QMCOD'.
PERFORM bdc_field USING 'VIQMEL-QMGRP'
gs_qmel-qmgrp.
PERFORM bdc_field USING 'VIQMEL-QMCOD'
gs_qmel-qmcod.
PERFORM bdc_field USING 'RIWO00-HEADKTXT'
gs_qmel-qmtxt.
CALL TRANSACTION 'QM01' USING bdcdata
MODE gc_mode
MESSAGES INTO messtab .
Thanks -
Problem in Creating a jar file using java.util.jar and deploying in jboss 4
Dear Techies,
I am facing this peculiar problem. I am creating a jar file programmatically using java.util.jar api. The jar file is created but Jboss AS is unable to deploy this jar file. I have also tested that my created jar file contains the same files. When I create a jar file from the command using jar -cvf command, Jboss is able to deploy. I am sending the code , please review it and let me know the problem. I badly require your help. I am unable to proceeed in this regard. Please help me.
package com.rrs.corona.solutionsacceleratorstudio.solutionadapter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.jar.JarEntry;
import java.util.jar.JarOutputStream;
import java.util.jar.Manifest;
import com.rrs.corona.solutionsacceleratorstudio.SASConstants;
* @author Piku Mishra
public class JarCreation
* File object
File file;
* JarOutputStream object to create a jar file
JarOutputStream jarOutput ;
* File of the generated jar file
String jarFileName = "rrs.jar";
*To create a Manifest.mf file
Manifest manifest = null;
//Attributes atr = null;
* Default Constructor to specify the path and
* name of the jar file
* @param destnPath of type String denoting the path of the generated jar file
public JarCreation(String destnPath)
{//This constructor initializes the destination path and file name of the jar file
try
manifest = new Manifest();
jarOutput = new JarOutputStream(new FileOutputStream(destnPath+"/"+jarFileName),manifest);
catch(Exception e)
e.printStackTrace();
public JarCreation()
* This method is used to obtain the list of files present in a
* directory
* @param path of type String specifying the path of directory containing the files
* @return the list of files from a particular directory
public File[] getFiles(String path)
{//This method is used to obtain the list of files in a directory
try
file = new File(path);
catch(Exception e)
e.printStackTrace();
return file.listFiles();
* This method is used to create a jar file from a directory
* @param path of type String specifying the directory to make jar
public void createJar(String path)
{//This method is used to create a jar file from
// a directory. If the directory contains several nested directory
//it will work.
try
byte[] buff = new byte[2048];
File[] fileList = getFiles(path);
for(int i=0;i<fileList.length;i++)
if(fileList.isDirectory())
createJar(fileList[i].getAbsolutePath());//Recusive method to get the files
else
FileInputStream fin = new FileInputStream(fileList[i]);
String temp = fileList[i].getAbsolutePath();
String subTemp = temp.substring(temp.indexOf("bin")+4,temp.length());
// System.out.println( subTemp+":"+fin.getChannel().size());
jarOutput.putNextEntry(new JarEntry(subTemp));
int len ;
while((len=fin.read(buff))>0)
jarOutput.write(buff,0,len);
fin.close();
catch( Exception e )
e.printStackTrace();
* Method used to close the object for JarOutputStream
public void close()
{//This method is used to close the
//JarOutputStream
try
jarOutput.flush();
jarOutput.close();
catch(Exception e)
e.printStackTrace();
public static void main( String[] args )
JarCreation jarCreate = new JarCreation("destnation path where jar file will be created /");
jarCreate.createJar("put your source directory");
jarCreate.close();Hi,
I have gone through your code and the problem is that when you create jar it takes a complete path address (which is called using getAbsolutePath ) (when you extract you see the path; C:\..\...\..\ )
You need to truncate this complete path and take only the path address where your files are stored and the problem must be solved. -
Problem creating jar using JDeveloper
I'm creating jar using JDeveloper..I need to keep two dll files in the jar. But if I create the jar in JDeveloper, it can't include the dll files. If the jar is created from command prompt, it can include the dll files. Can anyone tell me how can I include these dlls in my jar?
Putting DLLs in your classes directory is dangerous (eg. Run->Clean Project.jpr will remove it). I use a different way to achieve that:
When you double click on the deployment profile you'll see a dialog window containing a list of items. The one of interest is the one called File Groups. Select this item, click on the New button and add a new file group just for your DLLs.
--olaf -
Problem in Creating WebService Client using 9.0.3 JD...
Hi All,
Thru JDev 9.0.3 webservice,
1. I try to create proxy class and a sample client to access ASP.NET webservice also i get the following error.
<HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD><BODY><H1>500 Internal Server
Error</H1><PRE>Servlet
Then i created a Java Webservice and hosted in the embedded oc4j server. Then i created a sample client. Then also i get same error as
follows.
I user, w2k server, 9i JD 9.0.3, j2sdk 1.4.1.
Whats the probs. 9.0.3 dont support 1.4.1.
2. Also one more thing. When i tried to create proxy for asp.net webservice, (Its a webservice to send email which has 6 methods overloaded),
i get the Proxy Class for ONLY THE LAST METHOD. Rest of the 1st 5 methods are not found. Im able to access this webservice thru axis and thru
.net also. Only when i created proxy thru 9.0.3, i get like this. So, no probs in my webservice. Some probs in 9.0.3 version. It seems that
it does't properly create proxy if Method Overloading is done in the webservice.
3. Also, why the proxy class created in 9.0.3 pass params and returns params as Integer eventhough i used only int in the asp.net webservice
and in my java webservice created thru JDev 9.0.3
Yours,
Sankar.B
India
Errror:
D:\j2sdk140\bin\javaw.exe -client -classpath
C:\9iJDeveloper903-J2SDK-141\jdev\mywork\XMethodsWebService\CurrencyExchange\classes;C:\9iJDeveloper903-J2SDK-141\jdev\lib\jdev-rt.jar;C:\9iJ
Developer903-J2SDK-141\jdev\lib\jdev-rt.jar;C:\9iJDeveloper903-J2SDK-141\soap\lib\soap.jar;C:\9iJDeveloper903-J2SDK-141\lib\xmlparserv2.jar;C
:\9iJDeveloper903-J2SDK-141\jlib\javax-ssl-1_2.jar;C:\9iJDeveloper903-J2SDK-141\jlib\jssl-1_2.jar;C:\9iJDeveloper903-J2SDK-141\j2ee\home\lib\
activation.jar;C:\9iJDeveloper903-J2SDK-141\j2ee\home\lib\mail.jar;C:\9iJDeveloper903-J2SDK-141\j2ee\home\lib\http_client.jar;C:\9iJDeveloper
903-J2SDK-141\lib\xmlparserv2.jar;C:\9iJDeveloper903-J2SDK-141\lib\xmlcomp.jar -Dhttp.proxyHost=172.17.56.1 -Dhttp.proxyPort=80
-Dhttp.nonProxyHosts= id.ws.EmbeddedMathWSStub
[SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type "text/html", must be: "text/xml".
Response was:
<HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD><BODY><H1>500 Internal Server
Error</H1><PRE>Servlet error: Cannot generate Class:
C:\9iJDeveloper903-J2SDK-141\jdev\system9.0.3.1035\oc4j-config\application-deployments\current-workspace-app\XMethodsWebService-CurrencyExcha
nge-webapp\temp\__java_statefull_rpc\id\ws\__MathWSStatefullWrapper.java:10: cannot access java.lang.Objectbad class file:
D:\j2sdk140\jre\lib\rt.jar(java/lang/Object.class)class file has wrong version 48.0, should be 47.0Please remove or make sure it appears in
the correct subdirectory of the classpath.import java.lang.Object; ^1 error</PRE></BODY></HTML>] at
org.apache.soap.rpc.Call.getEnvelopeString(Call.java:209) at org.apache.soap.rpc.Call.invoke(Call.java:268) at
id.ws.EmbeddedMathWSStub.Add(EmbeddedMathWSStub.java:66) at id.ws.EmbeddedMathWSStub.main(EmbeddedMathWSStub.java:34)Process exited
with exit code 0.You are correct, there is a bug logged with JDeveloper 9.0.3 that with JDK 1.4, Web services are not working. See:
http://otn.oracle.com/products/jdev/htdocs/readme_903.html#ws0
(while not exactly your situation, I suspect it is related). We are close to releasing JDeveloper 9.0.4 preview which will support JDK 1.4 and should resolve your problem.
In terms of your second problem, there is a similar bug logged but could I ask you to try again with JDK 1.3.1 to see if a similar issue occurs?
As for your third question, this is the default behaviour for Oracle9iAS Web Services - int gets mapped as Integer. See:
http://otn.oracle.com/docs/products/ias/doc_library/903doc_otn/generic.903/b10004/javaservices.htm#1033406
Hope this helps.
Mike. -
Problem to create jar with images
Hello
I have a project, it's a frame with a panel that contains a image, I want to create a Jar, but I have to problems, if create a Jar and execute out the project folder, I can't see the images, if I use getClass().getResource, I have other problems, I can't add panels.
How it's difficult to say, I going to put a link from the project make with eclipse [My project|http://www.megaupload.com/?d=HBPHUWE9] , if someone wants have a look I would be grateful.
http://www.megaupload.com/?d=HBPHUWE9
Just look at the package com.constructor.interfaz
To make the jar use the class InterfazFactoriaPaneles
Thanks in advance !
Edited by: Dav1d on Jul 10, 2009 6:11 AM
Edited by: Dav1d on Jul 10, 2009 6:12 AMI explain better:
I have a Class -> InterfazFactoriaPaneles, with this main
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
InterfazFactoriaPaneles application = new InterfazFactoriaPaneles();
application.getJFrame().setVisible(true);
in the Frame I add a JPanel with an image, to load the image I override this method, where com.constructor.imagenes, it's the path where I've got my images :
public void paintComponent(Graphics g){
Dimension tamanio = getSize();
ImageIcon imagenFondo = new ImageIcon("./src/com/constructor/imagenes/patronConstructor.jpg");
g.drawImage(imagenFondo.getImage(),0,0,tamanio.width,tamanio.height,null);
setOpaque(false);
super.paintComponent(g);
the with a menu, I remove the panel with the image I load other panel with components (JTextField, JTable, JLabel,...).
If run the program from eclipse, everything it's ok, if I export into jar file, it works if the jar it's inside the project folder, but if I put the jar in other location, doens't load images, I google from answer and I read to put images path like that: new ImageIcon(getClass().getResource("/com/constructor/imagenes/patronConstructor.jpg")); , but if I do that, and run in eclipse, everything it's ok, but If I export into a Jar, I load the image, but when I try to change to other panel it doesn't work.
So I do not what's the answer, if someone check my code, and try to make a jar, and the move the jar file into other location, will be able to see images doesn't appears. -
Problem in creating jar for ejb
hi,
I want just to try to compile and deploy my ejb in the new version of bea weblogic
server (version 8.1 trial version), but I have the problem when using weblogic.ejbc
to create the jar file.
There is no such problem when using weblogic 6.x, I can create the jar package
of my ejb and deploy it within the server.
I did this :
java weblogic.ejbc stage/temp_myejb.jar stage/my_ejb.jar
and I got the error message :
ERROR: Error creating descriptor from jar file stage/temp_myejb.jar:
ERROR: Error from ejbc: 1
java.lang.ArrayIndexOutOfBoundsException: 1
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:222)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:97)
at weblogic.ejbc20.getDescriptorFromJar(ejbc20.java:698)
at weblogic.ejbc20.runBody(ejbc20.java:459)
at weblogic.utils.compiler.Tool.run(Tool.java:146)
at weblogic.utils.compiler.Tool.run(Tool.java:103)
at weblogic.ejbc.main(ejbc.java:29)
ERROR: ejbc couldn't load descriptor from jar
I do verify that the weblogic-ejb-jar.xml and ejb-jar.xml have been included in
temp_myejb.jar but why the compiler cannot load the descriptor ?
This is my weblogic-ejb-jar.xml :
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN"
"http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd">
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>MemberHome</ejb-name>
<caching-descriptor>
<max-beans-in-free-pool>20</max-beans-in-free-pool>
<max-beans-in-cache>100</max-beans-in-cache>
<idle-timeout-seconds>10</idle-timeout-seconds>
</caching-descriptor>
<persistence-descriptor>
<is-modified-method-name>isModified</is-modified-method-name>
<delay-updates-until-end-of-tx>false</delay-updates-until-end-of-tx>
</persistence-descriptor>
<jndi-name>MemberHome</jndi-name>
</weblogic-enterprise-bean>
<security-role-assignment>
<role-name>EjbClient</role-name>
<principal-name>RemoteUser</principal-name>
</security-role-assignment>
</weblogic-ejb-jar>
Is there something I missed ?
Many thanks in advance.
best regards,
Victorianus Kapuanganhi Deepak,
Thanks for the answer.
I do put the ejb-jar.xml and the weblogic-ejb-jar.xml in the META-INF dir of the
temp_my_ejb.jar file. I use the bmp entity bean so I guess I do not need to put
the weblogic-cmp-rdbms-jar.xml.
Should I missed to put these deployment descriptors in the META-INF, I should
not then be able to deploy my ejb in weblogic 6.x. But in fact I can deploy it
using weblogic 6.x.
TIA.
regards,
Victorianus
"Deepak Vohra" <[email protected]> wrote:
>
The input jar file, temp_myejb.jar should have ejb-jar.xml, weblogic-ejb-jar.xml
& weblogic-cmp-rdbms-jar.xml, for cmp entity bean, in the META-INF dir.
"Victorianus Kapuangan" <[email protected]> wrote:
hi,
I want just to try to compile and deploy my ejb in the new version of
bea weblogic
server (version 8.1 trial version), but I have the problem when using
weblogic.ejbc
to create the jar file.
There is no such problem when using weblogic 6.x, I can create the jar
package
of my ejb and deploy it within the server.
I did this :
java weblogic.ejbc stage/temp_myejb.jar stage/my_ejb.jar
and I got the error message :
ERROR: Error creating descriptor from jar file stage/temp_myejb.jar:
ERROR: Error from ejbc: 1
java.lang.ArrayIndexOutOfBoundsException: 1
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:222)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:97)
at weblogic.ejbc20.getDescriptorFromJar(ejbc20.java:698)
at weblogic.ejbc20.runBody(ejbc20.java:459)
at weblogic.utils.compiler.Tool.run(Tool.java:146)
at weblogic.utils.compiler.Tool.run(Tool.java:103)
at weblogic.ejbc.main(ejbc.java:29)
ERROR: ejbc couldn't load descriptor from jar
I do verify that the weblogic-ejb-jar.xml and ejb-jar.xml have beenincluded
in
temp_myejb.jar but why the compiler cannot load the descriptor ?
This is my weblogic-ejb-jar.xml :
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic
5.1.0 EJB//EN"
"http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd">
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>MemberHome</ejb-name>
<caching-descriptor>
<max-beans-in-free-pool>20</max-beans-in-free-pool>
<max-beans-in-cache>100</max-beans-in-cache>
<idle-timeout-seconds>10</idle-timeout-seconds>
</caching-descriptor>
<persistence-descriptor>
<is-modified-method-name>isModified</is-modified-method-name>
<delay-updates-until-end-of-tx>false</delay-updates-until-end-of-tx>
</persistence-descriptor>
<jndi-name>MemberHome</jndi-name>
</weblogic-enterprise-bean>
<security-role-assignment>
<role-name>EjbClient</role-name>
<principal-name>RemoteUser</principal-name>
</security-role-assignment>
</weblogic-ejb-jar>
Is there something I missed ?
Many thanks in advance.
best regards,
Victorianus Kapuangan -
Problem in creating DataServer using SQL2008 connection status is ERROR
HI All
I am fairly new in SAP MII , and i have been trying to create new data server using MSSQL2008 which is on my laptop(local) and i access MII in web based form. the sap MII version is 12.1.5(Build99)
this what i did
1.I have deployed JDBC 3.0 driver on system management on SAP MII
2.When creating the Data server I have done the following check below (screen dump)
Connector IDBC
ConnectorID
ConnectorType SQL
DatePrefix '
DateSuffix '
DaysRetention 7
Description mii
Enabled T
InitCommand
InternalDateFormat yyyy-MM-dd HH:mm:ss
JDBCDriver com.microsoft.sqlserver.jdbc.SQLServerDriver
MaxRetryCount 5
Name tigo2
PoolMax 100
PoolSize 1
RetryInterval 60000
ServerPackage com.sap.xmii.Illuminator.connectors.IDBC
ServerURL jdbc:sqlserver://localhost:1433;databaseName=MII
Timeout 15
UseCount 256
UserName sa
ValidationQuery SELECT GETDATE()
WaitTime 30
3. I checked the connection of my server in Management studio which works fine
checked the port , which is fine and the firewall exception changed it to except SQL SERVER PORT 1433
but i still get the connection status error: tried locating the logviewer to see what the problem is cant retrieve anything
Kindly guide me in the right path for im runnin out of ideas. I installed the JDBC driver on the laptop and made CLASSPATH to point to that folder STILL no luck.
and with regards to viewing the LOGviewer I truely have no IDea how to do that , I have tried to check on the forum nothing helped.
Edited by: Tigomezge on Jun 21, 2011 3:19 PMTigo,
You can try this,
Install SQL Server Management Studio on MII server (where MII is installed, should already have one if you have installed NW on SQL DB, if not, install one) and then try to access DB installed on your laptop from there using the IP address (not local host).
If it works fine then atleast one thing can be confirmed that your DB is accessible outside of your laptop (means no TCP/IP or port or firewall issues).
Also, When you unzip the Driver exe file (i mean install), usually you will find 2 jar files,
1) sqljdbc.jar
2) sqljdbc4.jar
Use of these jar files purely depends on the Java installed on the system. refer to this link on more details:
[Choosing Right JAR File|http://msdn.microsoft.com/en-us/library/ms378422.aspx]
Let us know how it goes
Regards,
Adarsh
Edited by: Adarsh Sidnoor on Jun 22, 2011 7:37 PM -
Creating a triangle using polygon class problem, URGENT??
Hi i am creating a triangle using polygon class which will eventually be used in a game where by a user clicks on the screen and triangles appear.
class MainWindow extends Frame
private Polygon[] m_polyTriangleArr;
MainWindow()
m_nTrianglesToDraw = 0;
m_nTrianglesDrawn = 0;
m_polyTriangleArr = new Polygon[15];
addMouseListener(new MouseCatcher() );
setVisible(true);
class MouseCatcher extends MouseAdapter
public void mousePressed(MouseEvent evt)
Point ptMouse = new Point();
ptMouse = evt.getPoint();
if(m_nTrianglesDrawn < m_nTrianglesToDraw)
int npoints = 3;
m_polyTriangleArr[m_nTrianglesDrawn]
= new Polygon( ptMouse[].x, ptMouse[].y, npoints);
}When i compile my code i get the following error message:
Class Expected
')' expectedThe two error messages are refering to the section new Polygon(....)
line. Please helpCannot find symbol constructor Polygon(int, int, int)
Can some one tell me where this needs to go and what i should generally
look like pleaseI don't think it is a good idea to try and add the constructor that the compiler
can't find. Instead you should use the constructor that already exists
in the Polygon class: ie the one that looks like Polygon(int[], int[], int).
But this requires you to pass two int arrays and not two ints as you
are doing at the moment. As you have seen, evt.getPoint() only supplies
you with a single pair of ints: the x- and y-coordinates of where the mouse
button was pressed.
And this is the root of the problem. To draw a triangle you need three
points. From these three points you can build up two arrays: one containing
the x-coordinates and one containing the y-coordinates. It is these two
arrays that will be used as the first two arguments to the Polygon constructor.
So your task is to figure out how you can respond to mouse presses
correctly, and only try and add a new triangle when you have all three of its
vertices.
[Edit] This assumes that you expect the user to specify all three vertices of the
triangle. If this isn't the case, say what you do expect. -
Problem in Creating Check boxes as a column in a table using MVC
I am trying to display a table format using the Model view controlers, with 1st column as a checkbox. if the user chooses some check boxes and submit the screen then i need to update the information in a custome table.
I am having a problem in creating the check boxes, also pls tell me how to catch the line items checked by the user in the table...
SriHI Srinivas
I am not getting what the exact problem is.....
I am giving you a work around.....to me it does not seems to be an Ideal Solution..But Probably it will solve your problem....
Changes To be Made in Page Layout...
In Pagelayout
<htmlb:tableView id = "tvX" width = "100%" visibleRowCount = "8" fillUpEmptyRows = "X" selectedRowIndexTable = "<%= selectedRowIndexTable %>"
<b>selectedrowindex = "<%= selectedrowindex %>"
onrowselection = "select"</b>
selectionMode = "MULTISELECT" table = "<%= sflight %>" />
<b>selectedindexrow is an attribute of type INT4</b>
In Do handle event.....instead of using the previous code use this one...
if event->id = 'SUBMIT'.
DATA: WA TYPE INT4.
LOOP AT SELECTEDROWINDEXTABLE INTO WA.
*Here you can read your table of TABLEVIEW with index *equal to WA into a workarea and then use that workarea *to update the customer table ENDLOOP.
elseif event->id = 'tvX'.
tv ?= CL_HTMLB_MANAGER=>GET_DATA( request = request name = 'tableView' id = 'tvX' ).
IF tv IS NOT INITIAL.
table_event = tv->data.
selectedRowIndex = table_event->SELECTEDROWINDEX.
append selectedrowindex into SELECTEDROWINDEXTABLE.
endif.
ENDIF.
Meanwhile..Let me check why that code does not work.....
Hope it solve your problem....
Cheers:)
Mithlesh -
Problems in creating and storing new documents using BAPI_DOCUMENT_CREATE2
Hi experts,
I'm getting problems in creating and storing new documents using BAPI_DOCUMENT_CREATE2.
I have a scenario where is defined the document type ZC1, document part 200, authorization group 0002 and for all of these documents the storage category "Cofre DMS1". And the status which demands the storage category is 'FR'.
I've been fullfiling the BAPI_DOCUMENT_CREATE2 in this way:
"Tables
data: it_doc like bapi_doc_draw2,
it_return like bapiret2,
it_files like bapi_doc_files2 occurs 0 with header line,
it_objs like bapi_doc_drad occurs 0 with header line.
"Variables
data: wl_doctype like bapi_doc_draw2-documenttype,
wl_docnumber like bapi_doc_draw2-documentnumber,
wl_docpart like bapi_doc_draw2-documentpart,
wl_docversion like bapi_doc_draw2-documentversion.
it_doc-documenttype = 'ZC1'.
it_doc-documentpart = '200'.
it_doc-documentversion = '00'.
it_doc-description = 'Test of documents creation via BAPI'.
it_doc-username = sy-uname.
it_doc-statusextern = 'FR'.
it_doc-authoritygroup = '0002'.
refresh it_files[].
clear it_files.
it_files-originaltype = '1'.
it_files-storagecategory = 'Cofre DMS1'.
it_files-wsapplication = 'PDF'.
it_files-docfile = 'c:\110307.pdf'.
it_files-description = 'Test file'.
append it_files.
refresh it_objs[].
clear it_objs.
it_objs-objecttype = 'EKPO'.
it_objs-objectkey = '47000497600010'.
append it_objs.
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
documentdata = it_doc
IMPORTING
documenttype = wl_doctype
documentnumber = wl_docnumber
documentpart = wl_docpart
documentversion = wl_docversion
return = it_return
TABLES
objectlinks = it_objs
documentfiles = it_files.
After execute the BAPI process I got the following error:
E26 087 - Data carrier COFRE DMS1 not defined
Does anybody have a sugestion to help me, please?
Thks
David
Edited by: David Tsutsui on Mar 18, 2010 10:52 AMPlease refer to this thread, it tells why you need a data carrier you can also configure the same in DC20.
Data Carriers for Storage the Originals of DMS
Maybe you are looking for
-
Row Level Security not working for SAP R/3
Hi Guys We have an environment where the details are as mentioned below: 1. Crystal Reports are created using Open SQL driver to extract data from SAP R/3 using the SAP Integration Kit. 2. The SAP roles are imported in Business Objects CMC. 3. Crysta
-
Doubts with control break statements on internal table loops (AT/ENDAT)
Hi, i've had a couple of doubts for a long while which I hope someone can clarify today: 1) I know how to use the AT statements, however, i'm not sure I get correctly what this part of help regarding this commands means: <i>"The control level structu
-
I have an HP Pavilion dv5-2132dx laptop. The hard drive has completely failed and needs to be replaced but I can't figure out how to access the hard drive. There are no screws on the panel and it says HP Protectsmart on the back. I need a video on ho
-
TS1559 Wifi still isn't working?
Followed all steps from the article on how to resolve this problem yet it still is not working, what now? Even updated all software and restored my iPhone to its factory settings and still won't work.
-
I have a 2012 macBook Pro 13" and the option "Use audio port for" does not appear at all in the sound menu. why is this? im running mountain Lion 10.8.2