RE: Variants in forte [Ref:C614383] [Ref:C635762]
Hi Travis.
Another quick way of creating a variant would be
CrystalReport1.Destination = VariantInteger(Value = 1);
The Integrating With Windows and Macintosh manual has information on using
variants, but it isn't the clearest subject in the documentation. I've obtained
a few technotes from Forte support (in regards to integrating with Word and
Excel, but the principle is the same), and I found these to be helpful as well.
Good luck.
Steve Elvin
Systems Developer
Frontline Ltd.
UK.
-----Original Message-----
From: INTERNET [email protected]
Sent: Monday, August 17, 1998 5:41 PM
To: Steve Elvin; X400
p=NET;a=CWMAIL;c=GB;DDA:RFC-822=forte-users(a)sagesoln.com;
Cc: X400 p=NET;a=CWMAIL;c=GB;DDA:RFC-822=JCBock(a)olstenhs.com;; X400
p=NET;a=CWMAIL;c=GB;DDA:RFC-822=MKennedy(a)olstenhs.com;
Subject: Variants in forte [Ref:C614383]
Can anyone help me?
I am trying to use a Crystal OCX to create reports. I do not want to
view the report I want to send it directly to the printer. I believe I
have located how the code needs to read but, crystal expects a variant
and I am unable to locate how to create a variant.
Example of the code:
CrystalReport1.Destination = 1;
The 1 is the variant.
Travis Theel
Olsten Health Services
[email protected]
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
Hi Travis.
Another quick way of creating a variant would be
CrystalReport1.Destination = VariantInteger(Value = 1);
The Integrating With Windows and Macintosh manual has information on using
variants, but it isn't the clearest subject in the documentation. I've obtained
a few technotes from Forte support (in regards to integrating with Word and
Excel, but the principle is the same), and I found these to be helpful as well.
Good luck.
Steve Elvin
Systems Developer
Frontline Ltd.
UK.
-----Original Message-----
From: INTERNET [email protected]
Sent: Monday, August 17, 1998 5:41 PM
To: Steve Elvin; X400
p=NET;a=CWMAIL;c=GB;DDA:RFC-822=forte-users(a)sagesoln.com;
Cc: X400 p=NET;a=CWMAIL;c=GB;DDA:RFC-822=JCBock(a)olstenhs.com;; X400
p=NET;a=CWMAIL;c=GB;DDA:RFC-822=MKennedy(a)olstenhs.com;
Subject: Variants in forte [Ref:C614383]
Can anyone help me?
I am trying to use a Crystal OCX to create reports. I do not want to
view the report I want to send it directly to the printer. I believe I
have located how the code needs to read but, crystal expects a variant
and I am unable to locate how to create a variant.
Example of the code:
CrystalReport1.Destination = 1;
The 1 is the variant.
Travis Theel
Olsten Health Services
[email protected]
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
Similar Messages
-
To create a variant, you need to instantiate a variant object and set
its value. Forte supports many variant classes mapping to their OLE
variant types, and VariantInteger is one of those. You can try the
following:
myVInt : VariantInteger = new;
myVInt.Value = 1;
CrystalReport1.Destination = myVint
Hope this helps.
Lenny Hon
Descartes Systems Group
-----Original Message-----
From: Travis Theel [SMTP:[email protected]]
Sent: Monday, August 17, 1998 11:49 AM
To: '[email protected]'
Cc: Chris Bock; Mike Kennedy
Subject: Variants in forte
Can anyone help me?
I am trying to use a Crystal OCX to create reports. I do not want to
view the report I want to send it directly to the printer. I believe
I
have located how the code needs to read but, crystal expects a variant
and I am unable to locate how to create a variant.
Example of the code:
CrystalReport1.Destination = 1;
The 1 is the variant.
Travis Theel
Olsten Health Services
[email protected]
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>-
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>In the 2E release there is a Sleep method on OperatingSystem, it
should be documented in the 2.0 addendum doc. This will put
the entire process to sleep for a specified number of milliseconds.
-jak
Jak Mang
Forte Software -
Can anyone help me?
I am trying to use a Crystal OCX to create reports. I do not want to
view the report I want to send it directly to the printer. I believe I
have located how the code needs to read but, crystal expects a variant
and I am unable to locate how to create a variant.
Example of the code:
CrystalReport1.Destination = 1;
The 1 is the variant.
Travis Theel
Olsten Health Services
[email protected]
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>Can anyone help me?
I am trying to use a Crystal OCX to create reports. I do not want to
view the report I want to send it directly to the printer. I believe I
have located how the code needs to read but, crystal expects a variant
and I am unable to locate how to create a variant.
Example of the code:
CrystalReport1.Destination = 1;
The 1 is the variant.
Travis Theel
Olsten Health Services
[email protected]
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
XMLROOT encoding chr ref = hex ref
We use xmlroot to create an XML file for our archival system directly from SQL.
The xml works fine but we have some "encoding" problem.
Our problem is the special character are in chr ref (html) format instead of hexadecimal ones.
for exemple: & will be written as & in our xml file. We would like it to be in hexadecimal instead:
& [source: http://myhandbook.info/codes_htmlchr.html]
To create our xml file we put the version as follow "VERSION '1.0" encoding="UTF-8' ".
Is there a way we can make it write the special characters directly in hexadecimal format ?
Thanks in advance !
Pier-OlivierNot sure how you make them hexidecimal. What's the problem with them being the html version?
How are you setting the XML to be UTF-8? as the XMLROOT doesn't let you specify it (or it didn't in 10g when I last had to do that; have they changed it in 11g?) unless you fake the 'version' element to include it.
Here's an example of the method we have used to generate XML in UTF-8 format in the file...
SQL> ed
Wrote file afiedt.buf
1 declare
2 v_xml xmltype;
3 v_doc XMLDOM.DOMDocument;
4 begin
5 select xmlelement("AllDepartments",
6 xmlagg(
7 xmlelement("Department", xmlattributes(d.deptno as deptno, d.dname as dname),
8 xmlagg(
9 xmlelement("Employee", xmlattributes(e.empno as empno, e.mgr as mgr),
10 xmlelement("ename", ename),
11 xmlelement("job", job),
12 xmlelement("sal", sal)
13 )
14 )
15 )
16 )
17 )
18 into v_xml
19 from dept d left outer join emp e on (e.deptno = d.deptno)
20 group by d.deptno, d.dname;
21 v_doc := DBMS_XMLDOM.NEWDOMDOCUMENT(v_xml);
22 DBMS_XMLDOM.WRITETOFILE(v_doc, 'TEMP_DIR\emp.xml', 'UTF-8');
23 DBMS_XMLDOM.FREEDOCUMENT(v_doc);
24* end;
SQL> / -
Some doubts in using resource-ref,connection pool n Data-source
Hi all ,
I need little bit clarification in the following points.
1) Does the connection pool which is created can be displayed in JNDI Tree???
I am seeing only DataSOurce in the JNDI Tree Only.
2)In case of Bean Managed Persistance, in ejb-jar.xml,
I had given the following info.
<resource-ref>
<res-ref-name>ramukkDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>Does the <res-ref-name> refers to Datasource Name??
In weblogic-ejb-jar.xml
<reference-descriptor>
<resource-description>
<res-ref-name>ramukkDataSource</res-ref-name>
<jndi-name>ramukkpool</jndi-name>
</resource-description>
</reference-descriptor>Here <jndi-name> refers to connection pool as per weblogic bible book.
If so when i deployed my ejb into the server iam getting Datasource cant be found.
If i had given like the following,
In ejb-jar.xml
<resource-ref>
<res-ref-name>jdbc/ramuJndi</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref> In weblogic-ejb-jar.xml
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/ramuJndi</res-ref-name>
<jndi-name>jdbc/ramuJndi</jndi-name>
</resource-description>
</reference-descriptor>Then only my ejb code is successfully deploying doing some work which is as per xpectation.
Can any body tell why I have to give the same name for <res-ref-name> n <jndi-name>??
I am working on this problem from last one week. Still not found the solution.
Connection Pool Creation
GENERAL::
Name : ramukkpool
url : jdbc:mysql://localhost:3306/test
Driver Classname: com.mysql.jdbc.Driver
Properties :
user = root
Password = XXX
create
TARGETS::
i had shifted myServer from left side to right side n clicked >>Apply
(Techncially can we say this as deploying the connection pool into server ???????????
If not how to deploy the connection pool into server??)
I did not get any errors in the console.
Now i am creating a datasource
CONFIGURATION:
Name : ramukkDataSource
JNDIName: jdbc/ramuJndi(Does we have to follow this convention only?? i.e JNDIName should start with jdbc/ only)
PoolName: ramukkpool
create
TARGETS::
I had shifed myServer from left to right n >>Apply.
Now also i did not get any errors in the console.Thanx(in advance),
ramuI have read the documentation.
I changed my class to oracle.jdbc.pool.OracleConnectionCacheImpl from
oracle.jdbc.pool.OracleConnectionPoolDataSource
I observed in the EM that the Open JDBC Connections and Total JDBC Connections are the same. When I used oracle.jdbc.pool.OracleConnectionPoolDataSource my Total JDBC Connections was increasing and Open JDBC Connections remains 0.
My question still remains unanswered, could some kindly help.
Q? I have defined a data source in JDeveloper using
oracle.jdbc.pool.OracleConnectionCacheImpl
In my java bean I am using the code pasted below to make a connection to database.
Can some one tell whether I am using the correct method of connection pooling mechanism or do I need to make some changes? This application uses JSP and used by lots of people which hits database very frequently.
Any help is highly appreciable.
Thanks in advance.
*******Code to make connection*********
private javax.naming.InitialContext context = null;
private javax.sql.DataSource jdbcURL = null;
private static final String url = "jdbc/ProdCoreDS";
public boolean openConnection()
try
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
context = new javax.naming.InitialContext();
jdbcURL = (javax.sql.DataSource)context.lookup(url);
con = jdbcURL.getConnection();
return true;
catch(Exception e)
System.out.println("Error in the Connection "+e);
e.printStackTrace();
return false;
}} -
Ejb-ref error when deploying a previously working ear on weblogic 8.1
when deploying an ear module on weblogic 8.1 i get the following error:
The ejb-link 'CustomessagingBrick.jar/CustomMessaginBrick' declared in ejb-ref
or ejb-local-ref 'ejb/Service2' in the application module 'cmbrick.war' could
not be resolved. The target EJB for the ejb ref could not be found.
The ear is composed of two sub-modules:
CustomMessaginBrick.jar
cmbrick.war.
The same ear was deployed on weblogic 6.1.
Every reference in the ear seems in the right place so i am really clueless.
Hereafter i include the relevant portions of the deployment descriptors.
the web.xml for cmbrick.war contains the following data:
<ejb-local-ref>
<ejb-ref-name>ejb/Service2</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>com.hutchison3g.core.brick.custom.messaging.CustomMessagingBrickLocalHome</local-home>
<local>com.hutchison3g.core.brick.custom.messaging.CustomMessagingBrickLocal</local>
<ejb-link>CustomMessagingBrick</ejb-link>
</ejb-local-ref>
its weblogic.xml file is the following:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN"
"http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
<weblogic-web-app>
<reference-descriptor>
<ejb-reference-description>
<ejb-ref-name>ejb/Service2</ejb-ref-name>
<jndi-name>Service2</jndi-name>
</ejb-reference-description>
</reference-descriptor>
</weblogic-web-app>
while the weblogic-ejb-jar for CustomMessaging bricks contains the following:
<weblogic-enterprise-bean>
<ejb-name>CustomMessagingBrick</ejb-name>
<stateless-session-descriptor>
<pool>
</pool>
<stateless-clustering>
</stateless-clustering>
</stateless-session-descriptor>
<transaction-descriptor>
</transaction-descriptor>
<enable-call-by-reference>True</enable-call-by-reference>
<jndi-name>Service2</jndi-name>
</weblogic-enterprise-bean>....when deploying an ear module on weblogic 8.1 i get the following error:
The ejb-link 'CustomessagingBrick.jar/CustomMessaginBrick' declared in ejb-ref
or ejb-local-ref 'ejb/Service2' in the application module 'cmbrick.war' could
not be resolved. The target EJB for the ejb ref could not be found.
The ear is composed of two sub-modules:
CustomMessaginBrick.jar
cmbrick.war.
The same ear was deployed on weblogic 6.1.
Every reference in the ear seems in the right place so i am really clueless.
Hereafter i include the relevant portions of the deployment descriptors.
the web.xml for cmbrick.war contains the following data:
<ejb-local-ref>
<ejb-ref-name>ejb/Service2</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>com.hutchison3g.core.brick.custom.messaging.CustomMessagingBrickLocalHome</local-home>
<local>com.hutchison3g.core.brick.custom.messaging.CustomMessagingBrickLocal</local>
<ejb-link>CustomMessagingBrick</ejb-link>
</ejb-local-ref>
its weblogic.xml file is the following:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN"
"http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
<weblogic-web-app>
<reference-descriptor>
<ejb-reference-description>
<ejb-ref-name>ejb/Service2</ejb-ref-name>
<jndi-name>Service2</jndi-name>
</ejb-reference-description>
</reference-descriptor>
</weblogic-web-app>
while the weblogic-ejb-jar for CustomMessaging bricks contains the following:
<weblogic-enterprise-bean>
<ejb-name>CustomMessagingBrick</ejb-name>
<stateless-session-descriptor>
<pool>
</pool>
<stateless-clustering>
</stateless-clustering>
</stateless-session-descriptor>
<transaction-descriptor>
</transaction-descriptor>
<enable-call-by-reference>True</enable-call-by-reference>
<jndi-name>Service2</jndi-name>
</weblogic-enterprise-bean>.... -
How to map a resource-ref in Jdev11 deployment plan editor
Hi all,
I have a ADF/BC web application where the BC4J application module does connect to a JNDI data source.
The ViewController project does declare the Datasource as needed resource in its web.xml:
<resource-ref>
<res-ref-name>jdbc/wlogDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Now i need to map that resouurce-ref to an actual data source that exist in the application container at deploy time.
As already in JDev 10.1.3 the deployment-plan editor provided during deployment from JDeveloper does not provide any means to enter the deployment mapping for that resourc-ref (When clicking on the node (which is named resouce-ref - that becomes very confusing in case you have defined three resource-refs in your web.xml) the right pane shows a gray pane without any edit controls) So I cannot enter the resource-ref-mapping unsing the Jdev UI.
My workaround in 10.1.3 was to save the deployment plan to disk and manually edit it, adding
<resource-ref-mapping name="jdbc/wlogDS" location="jdbc/wlogTestEnvDS">
</resource-ref-mapping>
to the orion-web-app document for that webapp
But in Jdev 11 the deployment plan file format changed (including some binary inline checksums???)and when doing exactly the same thing, the loading of the manually edited file into Jdev Deployment plan editor fails with
oracle.oc4j.admin.deploy.spi.exceptions.ExtendedConfigurationException: invalid entry size (expected 1886413103 but got 846 bytes)
at oracle.oc4j.admin.deploy.spi.DeplConfiguration.restore(DeplConfiguration.java:1002)
at oracle.oc4j.admin.deploy.spi.DeplConfiguration.restore(DeplConfiguration.java:738)
at oracle.jdevimpl.deploy.jsr88.ConfigModel.loadConfig(ConfigModel.java:201)
at oracle.jdevimpl.deploy.jsr88.Jsr88ConfigurationPanel.actionPerformed(Jsr88ConfigurationPanel.java:212)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
at java.awt.Dialog$1.run(Dialog.java:515)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: oracle.oc4j.admin.jmx.shared.exceptions.JMXRuntimeException: invalid entry size (expected 1886413103 but got 846 bytes)
at oracle.oc4j.admin.jmx.shared.util.JarTool.readJar(JarTool.java:240)
at oracle.oc4j.admin.deploy.spi.DeplConfiguration.parseDeploymentPlan(DeplConfiguration.java:1464)
at oracle.oc4j.admin.deploy.spi.DeplConfiguration.restore(DeplConfiguration.java:761)
... 33 more
Caused by: java.util.zip.ZipException: invalid entry size (expected 1886413103 but got 846 bytes)
at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:368)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:141)
at java.util.jar.JarInputStream.read(JarInputStream.java:171)
at java.io.FilterInputStream.read(FilterInputStream.java:90)
at oracle.oc4j.admin.jmx.shared.util.JarTool.copy(JarTool.java:1343)
at oracle.oc4j.admin.jmx.shared.util.JarTool.readEntry(JarTool.java:255)
at oracle.oc4j.admin.jmx.shared.util.JarTool.readJar(JarTool.java:232)
... 35 more
oracle.oc4j.admin.jmx.shared.exceptions.JMXRuntimeException: invalid entry size (expected 1886413103 but got 846 bytes)
at oracle.oc4j.admin.jmx.shared.util.JarTool.readJar(JarTool.java:240)
at oracle.oc4j.admin.deploy.spi.DeplConfiguration.parseDeploymentPlan(DeplConfiguration.java:1464)
at oracle.oc4j.admin.deploy.spi.DeplConfiguration.restore(DeplConfiguration.java:761)
at oracle.oc4j.admin.deploy.spi.DeplConfiguration.restore(DeplConfiguration.java:738)
at oracle.jdevimpl.deploy.jsr88.ConfigModel.loadConfig(ConfigModel.java:201)
at oracle.jdevimpl.deploy.jsr88.Jsr88ConfigurationPanel.actionPerformed(Jsr88ConfigurationPanel.java:212)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
at java.awt.Dialog$1.run(Dialog.java:515)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: java.util.zip.ZipException: invalid entry size (expected 1886413103 but got 846 bytes)
at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:368)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:141)
at java.util.jar.JarInputStream.read(JarInputStream.java:171)
at java.io.FilterInputStream.read(FilterInputStream.java:90)
at oracle.oc4j.admin.jmx.shared.util.JarTool.copy(JarTool.java:1343)
at oracle.oc4j.admin.jmx.shared.util.JarTool.readEntry(JarTool.java:255)
at oracle.oc4j.admin.jmx.shared.util.JarTool.readJar(JarTool.java:232)
... 35 more
---- Embedded exception
java.util.zip.ZipException: invalid entry size (expected 1886413103 but got 846 bytes)
at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:368)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:141)
at java.util.jar.JarInputStream.read(JarInputStream.java:171)
at java.io.FilterInputStream.read(FilterInputStream.java:90)
at oracle.oc4j.admin.jmx.shared.util.JarTool.copy(JarTool.java:1343)
at oracle.oc4j.admin.jmx.shared.util.JarTool.readEntry(JarTool.java:255)
at oracle.oc4j.admin.jmx.shared.util.JarTool.readJar(JarTool.java:232)
at oracle.oc4j.admin.deploy.spi.DeplConfiguration.parseDeploymentPlan(DeplConfiguration.java:1464)
at oracle.oc4j.admin.deploy.spi.DeplConfiguration.restore(DeplConfiguration.java:761)
at oracle.oc4j.admin.deploy.spi.DeplConfiguration.restore(DeplConfiguration.java:738)
at oracle.jdevimpl.deploy.jsr88.ConfigModel.loadConfig(ConfigModel.java:201)
at oracle.jdevimpl.deploy.jsr88.Jsr88ConfigurationPanel.actionPerformed(Jsr88ConfigurationPanel.java:212)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
at java.awt.Dialog$1.run(Dialog.java:515)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
So no chance here to add a resource-ref-mapping. The alternative way of specifying a resource-ref-mapping using the web-based deployment proces of the Enterprise manager is impossible because the 11g preview OC4j does not include an enterprise manger web-application.
So how do I deploy the application correctly other that manually modifying the deployed orion-web-app.xml file in j2ee/home/application-deployments/earName/warName/orion-web-app.xml after deploying the app without a resource-ref-mapping? Because doing that step manually each time is quite annoying.
Greetings,
ThomasSeems i'm slowly answering my own questions :-) I finally got my RMI service, even using several methods. But ...
It doesnt help me as the lookups are not done on the context classloader it seems. That means i need to add all my service jars to the global class path causing massive sealing issues with the war contained jars. Pretty useless. All the needed stubs etc are in the war.
But as it seems that the web app needs to contain deployment site info (sun-web.xml) anyway, i could just as easy read my own web xml from the context and resolve the services myself. But i do wonder how this is supposed to work with EJB and CORBA stuff. The samples actually also needed to add stuff to the global class path.
I'm probably not the easiest customer as i write this kind of middle ware for a living but i really like sjsws. It makes my own one partly obsolete as it is almost as fast and has all the fancy deployment stuff (in my case i use an in-house mobile agent frame work and agents that travel the various networks ) and infinitely easier to learn to work with and understand In case anyone is wondering i wrote Uhura because 1. i needed speed so it is a servlet based webserver and not a web server with a servlet module. 2. could not wait on ibm to fix bugs in webspere and we only used the servlet bit. 2. i needed full J2EE security and 3. i needed it to run on many OS'es
That is why i still need the same war files to be able to be deployed in both systems as i still need my systems going on IBM iservers etc.
Again i would welcome some feed back on such and related issues
Cheers,
Peter -
Route SIP REFER to SIP Trunk based on DN
Cisco UCM 9 is connected to a third-party PBX over SIP Trunk. Third-party PBX sends a SIP REFER message to Cisco UCM to call a DN on the third-party PBX. Cisco UCM responds with SIP 404 Not Found as it does not recognize the DN of the third-party PBX.
How do I configure Cisco Unified Communication Manager 9 to route this call back out over the SIP Trunk to the third-party PBX based on the DN (Not IP)?
Cisco UCM contains a route pattern 53xxx to route to SIP_Trunk_3rdParty.
Third-party PBX contains a SIP Proxy and Call Server. The call should route to the SIP Proxy IP. The SIP REFER contains "Refer-To" 53xxx@ThirdPartyCallServerIP
I added a SIP Route Pattern on CUCM to route calls for ThirdPartyCallServerIP to SIP_Trunk_3rdParty. This works in routing the call to ThirdPartyCallServerIP, however I need the call to route to 53xxx@ThirdPartySIPproxyIP for it to be successful.
Direct calls from CUCM to ThirdParty PBX 53XXX@ThirdPartySIPproxyIP are successful. SIP REFER coming into CUCM to request CUCM to call ThirdParty fail.
Any ideas on what configuration on CUCM I could try to get CUCM to route the call to thrid-party based on the SIP REFER?Thanks for the reply Vivek.
Partitions:
- ThirdPartyPBX
- CiscoEndpoints
Calling Search Space: "ThirdParty_Cisco" contain both of the above partitions.
Route Pattern 531XX and 80965 are assigned to Route Partition "ThirdPartyPBX"
Cisco UCM Main site phones are in CSS "ThirdParty_Cisco" and DN is in Route Partition "CiscoEndpoints". DN is in CSS "ThirdParty_Cisco".
Trunk "SIP_Trunk_3rdParty" - Inbound and Outbound Calls are in CSS "ThirdParty_Cisco".
Trunk SIP information has "Rerouting CSS", "Out-of-Dialog Refer CSS", and Subscribe CSS as "ThirdParty_Cisco".
Cisco continues to respond to with SIP 404 not found. CUCM does not seem to match the SIP refer to the CSS or Route partition with with 531XX route pattern.
The SIP Refer is coming from DN 80965 over the SIP Trunk from the Third-party PBX.
Perhaps I'm missing something in my CSS config?
Any other method for CUCM to match SIP Refer to a Route Pattern? -
Error in add_service-ref
I'm using JDeveloper 10.1.3.2 and working on the WebCenter Framework Tutorial.
In Step # 6: Testing the Portlet I am getting the following error:
When I select and drag the MyJavaPortlet (from Component Palette -> TutorialProducer) and drop it on the Form (MyPage.jspx) I get the following error message: "Could not complete add_service-ref because it would result in an invalid document."
One note: In the Design view my MyPage.jspx does not appear exactly as it does in the tutorial. It contains a Form icon with a box to insert stuff into. I have tried droping the MyJavaPortlet both inside this box as well as behind the box and receive the same error each time.
I would appreciate any help getting around this.
In addition here are the details from the error message:
oracle.bali.xml.model.XmlInvalidOnCommitException: SEVERE: Element taglib not expected [ node = taglib ]
SEVERE: Element taglib not expected [ node = taglib ]
SEVERE: Element taglib not expected [ node = taglib ]
SEVERE: Element taglib not expected [ node = taglib ]
SEVERE: Element taglib not expected [ node = taglib ]
SEVERE: Element service-ref not expected [ node = service-ref ]
<web-app xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
<taglib>
<taglib-uri>http://java.sun.com/jsf/core
</taglib-uri>
<taglib-location>/WEB-INF/lib/jsf-impl.jar
</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://xmlns.oracle.com/adf/faces
</taglib-uri>
<taglib-location>/WEB-INF/lib/adf-faces-impl.jar
</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://xmlns.oracle.com/adf/faces/html
</taglib-uri>
<taglib-location>/WEB-INF/lib/adf-faces-impl.jar
</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://xmlns.oracle.com/adf/faces/portlet
</taglib-uri>
<taglib-location>/WEB-INF/lib/portlet-client-adf.jar
</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://xmlns.oracle.com/adf/faces/customizable
</taglib-uri>
<taglib-location>/WEB-INF/lib/custComps.jar
</taglib-location>
</taglib>
<description>Empty web.xml file for Web Application
</description>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD
</param-name>
<param-value>client
</param-value>
</context-param>
<context-param>
<param-name>CpxFileName
</param-name>
<param-value>view.DataBindings
</param-value>
</context-param>
<context-param>
<param-name>oracle.mds.web-app-root
</param-name>
<param-value>/ViewController/public_html
</param-value>
</context-param>
<context-param>
<param-name>oracle.adf.view.faces.CHANGE_PERSISTENCE
</param-name>
<param-value>oracle.adfinternal.view.faces.change.HybridChangeManager
</param-value>
</context-param>
<filter>
<filter-name>trinidad
</filter-name>
<filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter
</filter-class>
</filter>
<filter>
<filter-name>adfFaces
</filter-name>
<filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter
</filter-class>
</filter>
<filter>
<filter-name>adfBindings
</filter-name>
<filter-class>oracle.adf.model.servlet.ADFBindingFilter
</filter-class>
</filter>
<filter>
<filter-name>mdsFilter
</filter-name>
<filter-class>oracle.mds.jsp.MDSJSPFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>trinidad
</filter-name>
<servlet-name>Faces Servlet
</servlet-name>
<dispatcher>FORWARD
</dispatcher>
<dispatcher>REQUEST
</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>adfFaces
</filter-name>
<servlet-name>Faces Servlet
</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>adfBindings
</filter-name>
<url-pattern>*.jsp
</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>adfBindings
</filter-name>
<url-pattern>*.jspx
</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>adfBindings
</filter-name>
<servlet-name>resourceproxy
</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>adfBindings
</filter-name>
<servlet-name>adfportlet
</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>mdsFilter
</filter-name>
<servlet-name>jsp2
</servlet-name>
<dispatcher>FORWARD
</dispatcher>
<dispatcher>INCLUDE
</dispatcher>
<dispatcher>REQUEST
</dispatcher>
</filter-mapping>
<servlet>
<servlet-name>Faces Servlet
</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet
</servlet-class>
<load-on-startup>1
</load-on-startup>
</servlet>
<servlet>
<servlet-name>resources
</servlet-name>
<servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet
</servlet-class>
</servlet>
<servlet>
<servlet-name>adfportlet
</servlet-name>
<servlet-class>oracle.adfinternal.view.faces.renderkit.html.portlet.ADFPortletServlet
</servlet-class>
<load-on-startup>1
</load-on-startup>
</servlet>
<servlet>
<servlet-name>resourceproxy
</servlet-name>
<servlet-class>oracle.portlet.client.resourceproxy.adf.ADFPortletResourceServlet
</servlet-class>
</servlet>
<servlet>
<servlet-name>jsp2
</servlet-name>
<servlet-class>oracle.jsp.runtimev2.JspServlet
</servlet-class>
<init-param>
<param-name>tags_reuse_default
</param-name>
<param-value>none
</param-value>
</init-param>
<init-param>
<param-name>check_page_scope
</param-name>
<param-value>true
</param-value>
</init-param>
<init-param>
<param-name>debug_mode
</param-name>
<param-value>false
</param-value>
</init-param>
<init-param>
<param-name>page_provider
</param-name>
<param-value>oracle.mds.jsp.MDSJSPProvider
</param-value>
</init-param>
<init-param>
<param-name>page_repository
</param-name>
<param-value>oracle.mds.jsp.MDSJSPProvider
</param-value>
</init-param>
<load-on-startup>1
</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet
</servlet-name>
<url-pattern>/faces/*
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>resources
</servlet-name>
<url-pattern>/adf/*
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>resources
</servlet-name>
<url-pattern>/afr/*
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>adfportlet
</servlet-name>
<url-pattern>/adfportlet
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>adfportlet
</servlet-name>
<url-pattern>/adfportletfullpage
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>resourceproxy
</servlet-name>
<url-pattern>/resourceproxy
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>jsp2
</servlet-name>
<url-pattern>/*.jspx
</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>35
</session-timeout>
</session-config>
<mime-mapping>
<extension>html
</extension>
<mime-type>text/html
</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt
</extension>
<mime-type>text/plain
</mime-type>
</mime-mapping>
<service-ref>
<service-ref-name>service/WSRPServiceRefV1
</service-ref-name>
<service-interface>javax.xml.rpc.Service
</service-interface>
<wsdl-file>WEB-INF/wsdl/WSRP_v1_Service.wsdl
</wsdl-file>
<jaxrpc-mapping-file>WEB-INF/WSRP_v1_Service-java-wsdl-mapping.xml
</jaxrpc-mapping-file>
<service-qname>service-qname_ns__:WSRP_v1_Service
</service-qname>
<port-component-ref>
<service-endpoint-interface>oracle.portlet.wsrp.v1.soap.WSRP_v1_Markup_PortType
</service-endpoint-interface>
</port-component-ref>
<port-component-ref>
<service-endpoint-interface>oracle.portlet.wsrp.v1.soap.WSRP_v1_ServiceDescription_PortType
</service-endpoint-interface>
</port-component-ref>
<port-component-ref>
<service-endpoint-interface>oracle.portlet.wsrp.v1.soap.WSRP_v1_Registration_PortType
</service-endpoint-interface>
</port-component-ref>
<port-component-ref>
<service-endpoint-interface>oracle.portlet.wsrp.v1.soap.WSRP_v1_PortletManagement_PortType
</service-endpoint-interface>
</port-component-ref>
</service-ref>
</web-app>
at oracle.bali.xml.model.XmlModel._validateSubtree(XmlModel.java:3353)
at oracle.bali.xml.model.XmlModel._validateDocument(XmlModel.java:3264)
at oracle.bali.xml.model.XmlModel.__precommitTransaction(XmlModel.java:2684)
at oracle.bali.xml.model.XmlContext.__precommitTransaction(XmlContext.java:1519)
at oracle.bali.xml.model.XmlContext.__commitTransaction(XmlContext.java:1549)
at oracle.bali.xml.model.XmlModel.__requestCommitTransaction(XmlModel.java:2717)
at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:575)
at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:555)
at oracle.adfdtinternal.model.portlet.addins.PortletConfigurationTask.insertNode(PortletConfigurationTask.java:583)
at oracle.adfdtinternal.model.portlet.addins.PortletConfigurationTask.addWSRPServiceRefEntries(PortletConfigurationTask.java:779)
at oracle.adfdtinternal.model.portlet.addins.PortletConfigurationTask.configureWebInfForWSRP(PortletConfigurationTask.java:409)
at oracle.adfdtinternal.view.faces.portlet.PortletNodeCreator.createNode(PortletNodeCreator.java:309)
at oracle.bali.xml.util.XmlModelUtils.initializeAndInvokeCreatorIfNeededOrSpecified(XmlModelUtils.java:186)
at oracle.bali.xml.util.XmlModelUtils.createNodeFromKey(XmlModelUtils.java:158)
at oracle.bali.xml.model.AbstractModel$1.performTask(AbstractModel.java:459)
at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:190)
at oracle.bali.xml.model.AbstractModel.insertXmlKey(AbstractModel.java:447)
at oracle.bali.xml.model.datatransfer.operation.CreateFromXmlKeyOperation$1.performTask(CreateFromXmlKeyOperation.java:43)
at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:167)
at oracle.bali.xml.model.datatransfer.operation.CreateFromXmlKeyOperation.apply(CreateFromXmlKeyOperation.java:38)
at oracle.bali.xml.model.datatransfer.operation.OperationProcessor._apply(OperationProcessor.java:393)
at oracle.bali.xml.model.datatransfer.operation.OperationProcessor._forceSimpleApplyImpl(OperationProcessor.java:346)
at oracle.bali.xml.model.datatransfer.operation.OperationProcessor.forceSimpleApply(OperationProcessor.java:293)
at oracle.bali.xml.model.datatransfer.operation.OperationProcessor.forceSimpleApply(OperationProcessor.java:243)
at oracle.bali.xml.gui.swing.dnd.DropHandlerHelper._doRegularDrop(DropHandlerHelper.java:268)
at oracle.bali.xml.gui.swing.dnd.DropHandlerHelper.performDrop(DropHandlerHelper.java:87)
at oracle.bali.xml.gui.swing.dnd.ModelDropHandler.drop(ModelDropHandler.java:153)
at java.awt.dnd.DropTarget.drop(DropTarget.java:430)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:500)
at sun.awt.dnd.SunDropTargetContextPeer.access$800(SunDropTargetContextPeer.java:53)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:812)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:736)
at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:29)
at java.awt.Component.dispatchEventImpl(Component.java:3826)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:3963)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3817)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)This may help explain the situatin. I originally had JDeveloper 10.1.3.2 installed when I started this tutorial. I then installed JDeveloper 11 version 4 and tried to work the WebCenter Protlet tutorial. When I did it tried to migrage my settings. However, when I attempted to do the tutorial I noticed that it did not have the same options for the WebCenter new applications that would create a Portlet folder. So, I went back to 10.1.3.2 to work the tutorial. No error was flagged at this point but that is when the problems started occuring. I browsed my working directory (C:\Oracle\jdevinstance) where I had my applications stored (C:\Oracle\jdevinstance\mywork) and I noticed that I had what appared to be possible conflicting system files. I had the following system files listed under the working directory: system, system11.1.1.0.17.45.24, system11.1.1.0.22.47.96, and system11.1.1.0.22.49.49. I don't know if this is the issue or not and any feedback about these extra files would be apprecaited?
In addition, I create a new application (using 10.1.3.2) with a different applicaiton directory (C:\Oracle\jdevinstance\MyWork_10.1.3.2) and started the tutorial over. This time I had no issues with the JSP page and all of my web.xml files are the same version (2.4). -
ejb-local-ref where to put this tag in ejb-jar.xml ??
I have an ejb-jar.xml that looks like this. I have had no problem with remote interfaces. Now I want the bean to have a local interface too.
Just let me know where the tag I have mentioned for the <ejb-local-ref> has to be put into.
When I compile this file it throws me an error which i have shown below the output of the ejb-jar.xml file
<ejb-jar>
<enterprise-beans>
<entity>
<ejb-name>IDMaster</ejb-name>
<home>maxateev.mondial.brg.idmaster.IDMasterHome</home>
<remote>maxateev.mondial.brg.idmaster.IDMaster</remote>
<local-home>maxateev.mondial.brg.idmaster.IDMasterLocalHome</local-home>
<local>maxateev.mondial.brg.idmaster.IDMasterLocal</local>
<ejb-class>maxateev.mondial.brg.idmaster.IDMasterEJB</ejb-class>
<persistence-type>Container</persistence-type>
<ejb-local-ref>
<ejb-ref-name>ejb/IDMasterLocalHome</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>maxateev.mondial.brg.idmaster.IDMasterLocalHome</local-home>
<local>maxateev.mondial.brg.idmaster.IDMasterLocal</local>
</ejb-local-ref>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>IDMaster</abstract-schema-name>
<cmp-field>
<field-name>idPrefix</field-name>
</cmp-field>
<cmp-field>
<field-name>idValue</field-name>
</cmp-field>
<primkey-field>idPrefix</primkey-field>
<query>
<query-method>
<method-name>findAllIDMasters</method-name>
<method-params/>
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT (f) FROM IDMaster as f]]></ejb-ql>
</query>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>IDMaster</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
I have also added the following tag in the weblogic-jar.xml
<local-jndi-name>IDMasterEJB.IDMasterLocalHome</local-jndi-name>
Just let me know whether I am correct
On compilation (using ant utility) the error thrown is like this :
ejbc:
[java] ERROR: Error parsing 'ejb-jar.xml' line 47: The content of element type "entity" must ma
tch "(description?,display-name?,small-icon?,large-icon?,ejb-name,home?,remote?,local-home?,local?,e
jb-class,persistence-type,prim-key-class,reentrant,cmp-version?,abstract-schema-name?,cmp-field*,pri
mkey-field?,env-entry*,ejb-ref*,ejb-local-ref*,security-role-ref*,security-identity?,resource-ref*,r
esource-env-ref*,query*)".
[java] ERROR: ejbc found errors
[java] Java Result: 1
Kindly Help !!!
Thanks n regards
SajivThis should take care of it
<ejb-jar>
<enterprise-beans>
<entity>
<ejb-name>IDMaster</ejb-name>
<home>maxateev.mondial.brg.idmaster.IDMasterHome</home>
<remote>maxateev.mondial.brg.idmaster.IDMaster</remote>
<local-home>maxateev.mondial.brg.idmaster.IDMasterLocalHome</local-home>
<local>maxateev.mondial.brg.idmaster.IDMasterLocal</local>
<ejb-class>maxateev.mondial.brg.idmaster.IDMasterEJB</ejb-class>
<persistence-type>Container</persistence-type>
<ejb-local-ref>
<ejb-ref-name>ejb/IDMasterLocalHome</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>maxateev.mondial.brg.idmaster.IDMasterLocalHome</local-home>
<local>maxateev.mondial.brg.idmaster.IDMasterLocal</local>
</ejb-local-ref>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>IDMaster</abstract-schema-name>
<cmp-field>
<field-name>idPrefix</field-name>
</cmp-field>
<cmp-field>
<field-name>idValue</field-name>
</cmp-field>
<primkey-field>idPrefix</primkey-field>
<ejb-local-ref>
<ejb-ref-name>ejb/IDMasterLocalHome</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>maxateev.mondial.brg.idmaster.IDMasterLocalHome</local-home>
<local>maxateev.mondial.brg.idmaster.IDMasterLocal</local>
</ejb-local-ref>
<query>
<query-method>
<method-name>findAllIDMasters</method-name>
<method-params/>
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT (f) FROM IDMaster as f]]></ejb-ql>
</query>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>IDMaster</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar> -
Ref equivalent in C++
I'm accessing a DLL where a function should be called with "ref" at 2 parameters:
ReadData(token, toread, ref data, ref rezult);
My project is in C++ and I don't know what is the equivalent syntax for "ref".
Thank you.For the last 2 hour I'm tryng to make this work(no success yet) and now I've seen your response and it is exactly what I needed. :)
But I have another question: I don't have a String variable. I need to send 2 parameters that are now declared like this:
CardData^ cardData = nullptr;
Dictionary<CoduriCampuriCard, CoduriRaspunsOperatieCamp>^ rezultatOperatie = gcnew Dictionary<CoduriCampuriCard, CoduriRaspunsOperatieCamp>();
How would I declare them to make a valid reference in the called function?
Now I call the function like this:
CitesteDate(Globals::token, campuriDeCitit, cardData, rezultatOperatie);
and the DLL writes in a log the following error:
Object reference not set to an instance of an object.
at Novensys.eCard.SDK.SesiuneCard.CitesteDate(String token, List`1 campuriDeCitit, CardData& cardData, Dictionary`2& rezultatOperatie)
Thank you. -
How to create SO by refer a QT with BOM items by BAPI
I want to create Sales order according to exist Quotations and I used the BAPI "BAPI_SALESORDER_CREATEFROMDAT2".
I tested for those normal case, no problem, but if in Quotation have some BOM material,
such as
in a QT 600000000
item high item materil quantity
000010 000000 M1 2 <--BOM header material
000020 000010 M2 2 <--BOM son material
000030 000010 M3 2 <--BOM son material
if a set the parameters of BAPI item and schedule line table like normal case
BAPI-ITEM table
item high item materil quantity refer QT refer item refer category
000010 000000 M1 2 600000000 000010 B
000020 000010 M2 2 600000000 000020 B
000030 000010 M3 2 600000000 000030 B
if a set the parameters of BAPI item and schedule table like normal case
BAPI-schedule line table
item schedule line quantity
000010 0001 2
000020 0001 2
000030 0001 2
after BAPI executed
Sales order will be
item schedule line materil quantity
000010 0001 M1 2
000020 0001 M2 2
000020 0002 M2 2
000030 0001 M3 2
000030 0002 M3 2
i checked the logic in BAPI
for the first item (BOM header item), system will automatically add its all son item to schedule line table due to BOM master
and for those automatically added items, they have no reference doc(Quotation), so the second and third Quotation items' status is still open, just the first item's status is completed in SD flow.
anyone know how to solve it?Hi Ram,
Do you need to make changes in already existing rows or you need to create a new row for every line item?
I think when the first time your view is getting displayed the node which is bound to table uie is empty and hence the table is grayed. If you want input enabled rows then you need to bind few empty rows using the supply_function of the node.
data lt_tables type wd_this->elements_table.
data ls_table like line of lt_table.
append ls_table to lt_table.
append ls_table to lt_table.
node->bind_table( lt_table ).
Here table is the node which is bound to the table uie.
Now when the first time view is displayed you will have 2 rows ready for input.
To add more input enabled rows create a button and add empty lines in the action method assigned to button.
Thanks,
Abhishek -
Can't get MEJB with J2EE1.4 Ref Impl
Hello,
I'm trying to obtain the Management EJB with the J2EE 1.4 Reference Implementation but I am receiving a ClassCastException. Is this not implemented to JSR 77 spec yet? Here is my code snippet:
String MEJB = "ejb/mgmt/MEJB";
ManagementHome managementHome = null;
Context context = new InitialContext();
Object obj = context.lookup(MEJB);
// this next line causes the Exception -- I investigated and the 'obj' is a sun CORBA object WHY?
managementHome = (ManagementHome)PortableRemoteObject.narrow(obj,ManagementHome.class);
Thanks
Mark LepakOK here is the info for accessing MEJB using a jsp thru j2ee web module.
01. create index.jsp
<%@ page import='javax.naming.*' %>
<%@ page import='javax.rmi.PortableRemoteObject' %>
<%@ page import='javax.management.j2ee.ManagementHome' %>
<%@ page import='javax.management.j2ee.Management' %>
<%@ page import='javax.management.*' %>
<%= "start mejbJsp <br>" %>
<%
Management mejb = null;
try {
InitialContext ic = new InitialContext();
out.println("in mejbJSP: obtained ic ...<br>");
Object objRef = ic.lookup("ejb/mgmt/MEJB");
out.println("in mejbJSP: objRef = " + objRef + " <br>");
ManagementHome home =
(ManagementHome)PortableRemoteObject.narrow(objRef,
ManagementHome.class);
out.println("in mejbJSP: home = " + home + " <br>");
mejb = home.create();
out.println("in mejbJSP: MEJB default domain = " +
mejb.getDefaultDomain() + " <br>");
} catch (Exception ex) {
out.println(ex.getMessage());
%>
<%= "end mejbJsp <br>" %>
02. Since MEJB is secured we need to provide the corresponding security info in the descriptors . Following are the sample descriptor entries which include security and basic authentication.
02.01. web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<description>no description</description>
<display-name>mejbJsp</display-name>
<servlet>
<description>mejb jsp example</description>
<display-name>mejbJsp</display-name>
<servlet-name>mejbJsp</servlet-name>
<jsp-file>/index.jsp</jsp-file>
</servlet>
<ejb-ref>
<ejb-ref-name>ejbs/mejb</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>javax.management.j2ee.ManagementHome</home>
<remote>javax.management.j2ee.Management</remote>
<ejb-link>MEjbBean</ejb-link>
</ejb-ref>
<security-constraint>
<web-resource-collection>
<web-resource-name>Basic Realm</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>admin-role</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Basic Realm</realm-name>
</login-config>
<security-role>
<description>The admin role</description>
<role-name>admin-role</role-name>
</security-role>
</web-app>
02.02. sun-web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Sun ONE Application Server 8.0 Servlet 2.4//EN" "http://www.sun.com/software/sunone/appserver/dtds/sun-web-app_2_4-0.dtd">
<sun-web-app>
<context-root>mejbjsp</context-root>
<class-loader delegate='true'/>
<ejb-ref>
<ejb-ref-name>ejbs/mejb</ejb-ref-name>
<jndi-name>ejb/mgmt/MEJB</jndi-name>
</ejb-ref>
<security-role-mapping>
<role-name>admin-role</role-name>
<group-name>asadmin</group-name>
</security-role-mapping>
</sun-web-app>
03. Package the above into a war module and deploy it.
asadmin> deploy mejb_jsp.war
04. Invoke the jsp using a web browser, say http://<host-name>:<port>/mejbjsp
When login window pops up, you may enter user name and password which has asadmin role. -
Ejb-ref and JNDI lookup problem
Hi,
I use WLS6.1sp2. I created one EntityBean and SessionBean jar files. I tried to
use session bean to refer entity bean, I failed. The details are as following:
In EntityBean's weblogic-ejb-jar.xml, I set:
<jndi-name>cabin.CabinHome</jndi-name>
In sessionbean's ejb-jar.xml
<ejb-ref>
<ejb-ref-name>ejb/CabinHome</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>com.titan.cabin.CabinHome</home>
<remote>com.titan.cabin.Cabin</remote>
</ejb-ref>
In sessionbean's weblogic-ejb-jar.xml
<reference-descriptor>
<ejb-reference-description>
<ejb-ref-name>ejb/CabinHome</ejb-ref-name>
<jndi-name>ejb/CabinHome</jndi-name>
</ejb-reference-description>
</reference-descriptor>
At sessionbean's client, I use
javax.naming.Context jndiContext = getInitialContext();
Object obj = jndiContext.lookup("java:comp/env/ejb/CabinHome");
When I run client file, I get the following error message:
- with nested exception:
[javax.naming.LinkException: [Root exception is javax.naming.NameNotFoundException:
Unable to resolve ejb.CabinHome Resolved: '' Unresolved:'ejb' ; remaining name
'CabinHome']; Link Remaining Name: 'ejb/CabinHome']>
javax.naming.LinkException: . Root exception is javax.naming.NameNotFoundException:
Unable to resolve ejb.CabinHome Resolved: '' Unresolved:'ejb' ; remaining name
'CabinHome'
<<no stack trace available>>
--------------- nested within: ------------------
javax.ejb.EJBException
- with nested exception:
[javax.naming.LinkException: [Root exception is javax.naming.NameNotFoundException:
Unable to resolve ejb.CabinHome Resolved: '' Unresolved:'ejb' ; remaining name
'CabinHome']; Link Remaining Name: 'ejb/CabinHome']
at com.titan.travelagent.TravelAgentBean.listCabins(TravelAgentBean.java:45)
at com.titan.travelagent.TravelAgentBean_a4c3ph_EOImpl.listCabins(TravelAgentBean_a4c3ph_EOImpl.java:37)
at com.titan.travelagent.TravelAgentBean_a4c3ph_EOImpl_WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:267)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
####<Feb 1, 2002 11:32:40 PM PST> <Info> <Management> <dj> <travelServer> <ExecuteThread:
'14' for queue: 'default'> <system> <> <140009> <Configuration changes for domain
saved to the repository.>
Do you know what's wrong? how to fix this problem?
Thanks in advance.
DJSlava,
I took "cabin." out from weblogic-ejb-jar.xml, I got the same error.
DJ
"Slava Imeshev" <[email protected]> wrote:
Hi DJ,
I think you don't need "cabin." in weblogic-ejb-jar.xml :
<jndi-name>cabin.CabinHome</jndi-name>
Regards,
Slava Imeshev
"DJ" <[email protected]> wrote in message
news:[email protected]...
Hi,
I use WLS6.1sp2. I created one EntityBean and SessionBean jar files.I
tried to
use session bean to refer entity bean, I failed. The details are asfollowing:
In EntityBean's weblogic-ejb-jar.xml, I set:
<jndi-name>cabin.CabinHome</jndi-name>
In sessionbean's ejb-jar.xml
<ejb-ref>
<ejb-ref-name>ejb/CabinHome</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>com.titan.cabin.CabinHome</home>
<remote>com.titan.cabin.Cabin</remote>
</ejb-ref>
In sessionbean's weblogic-ejb-jar.xml
<reference-descriptor>
<ejb-reference-description>
<ejb-ref-name>ejb/CabinHome</ejb-ref-name>
<jndi-name>ejb/CabinHome</jndi-name>
</ejb-reference-description>
</reference-descriptor>
At sessionbean's client, I use
javax.naming.Context jndiContext = getInitialContext();
Object obj = jndiContext.lookup("java:comp/env/ejb/CabinHome");
When I run client file, I get the following error message:
- with nested exception:
[javax.naming.LinkException: [Root exception is
javax.naming.NameNotFoundException:>> Unable to resolve ejb.CabinHome Resolved: '' Unresolved:'ejb' ; remaining>name>> 'CabinHome'; Link Remaining Name: 'ejb/CabinHome']>
javax.naming.LinkException: . Root exception isjavax.naming.NameNotFoundException:
Unable to resolve ejb.CabinHome Resolved: '' Unresolved:'ejb' ; remainingname
'CabinHome'
<<no stack trace available>>
--------------- nested within: ------------------
javax.ejb.EJBException
- with nested exception:
[javax.naming.LinkException: [Root exception is
javax.naming.NameNotFoundException:>> Unable to resolve ejb.CabinHome Resolved: '' Unresolved:'ejb' ; remaining>name>> 'CabinHome'; Link Remaining Name: 'ejb/CabinHome']
atcom.titan.travelagent.TravelAgentBean.listCabins(TravelAgentBean.java:45)
atcom.titan.travelagent.TravelAgentBean_a4c3ph_EOImpl.listCabins(TravelAgentBe
an_a4c3ph_EOImpl.java:37)
atcom.titan.travelagent.TravelAgentBean_a4c3ph_EOImpl_WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
atweblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
:93)
atweblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:267)
atweblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:2
2)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
####<Feb 1, 2002 11:32:40 PM PST> <Info> <Management> <dj> <travelServer><ExecuteThread:
'14' for queue: 'default'> <system> <> <140009> <Configuration changesfor
domain
saved to the repository.>
Do you know what's wrong? how to fix this problem?
Thanks in advance.
DJ -
Ejb-ref errore when deploying a previously working ear on weblogic 8.1
when deploying an ear module on weblogic 8.1 i get the following error:
The ejb-link 'CustomessagingBrick.jar/CustomMessaginBrick' declared in ejb-ref
or ejb-local-ref 'ejb/Service2' in the application module 'cmbrick.war' could
not be resolved. The target EJB for the ejb ref could not be found.
The ear is composed of two sub-modules:
CustomMessaginBrick.jar
cmbrick.war.
The same ear was deployed on weblogic 6.1.
Every reference in the ear seems in the right place so i am really clueless.
Hereafter i include the relevant portions of the deployment descriptors.
Thanks in advance!
Greets,
Luca
the web.xml for cmbrick.war contains the following data:
<ejb-local-ref>
<ejb-ref-name>ejb/Service2</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>com.hutchison3g.core.brick.custom.messaging.CustomMessagingBrickLocalHome</local-home>
<local>com.hutchison3g.core.brick.custom.messaging.CustomMessagingBrickLocal</local>
<ejb-link>CustomMessagingBrick</ejb-link>
</ejb-local-ref>
its weblogic.xml file is the following:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN"
"http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
<weblogic-web-app>
<reference-descriptor>
<ejb-reference-description>
<ejb-ref-name>ejb/Service2</ejb-ref-name>
<jndi-name>Service2</jndi-name>
</ejb-reference-description>
</reference-descriptor>
</weblogic-web-app>
while the weblogic-ejb-jar for CustomMessaging bricks contains the following:
<weblogic-enterprise-bean>
<ejb-name>CustomMessagingBrick</ejb-name>
<stateless-session-descriptor>
<pool>
</pool>
<stateless-clustering>
</stateless-clustering>
</stateless-session-descriptor>
<transaction-descriptor>
</transaction-descriptor>
<enable-call-by-reference>True</enable-call-by-reference>
<jndi-name>Service2</jndi-name>
</weblogic-enterprise-bean>....The issue is that WLS 6.1 didn't really support ejb-links properly. An
ejb-link should allow you to link a webapp or an ejb to another EJB
without requiring additional information or a global JNDI name on the
target EJB.
WLS 8.1 is following your ejb-link and telling you there's not enough
information.
You have 2 options:
1) Remove the <ejb-link>...</ejb-link> from your web.xml. You'll be
using just an ejb-reference at that point, but you've already included
the necessary information in the weblogic.xml that we can locate the EJB
via its global jndi-name
or
2) Change the ejb-link to be
<ejb-link>CustomMessaginBrick.jar#CustomMessagingBrick</ejb-link>
If you wanted to, you could then remove the reference info from the
weblogic.xml
-- Rob
luca wrote:
when deploying an ear module on weblogic 8.1 i get the following error:
The ejb-link 'CustomessagingBrick.jar/CustomMessaginBrick' declared in ejb-ref
or ejb-local-ref 'ejb/Service2' in the application module 'cmbrick.war' could
not be resolved. The target EJB for the ejb ref could not be found.
The ear is composed of two sub-modules:
CustomMessaginBrick.jar
cmbrick.war.
The same ear was deployed on weblogic 6.1.
Every reference in the ear seems in the right place so i am really clueless.
Hereafter i include the relevant portions of the deployment descriptors.
Thanks in advance!
Greets,
Luca
the web.xml for cmbrick.war contains the following data:
<ejb-local-ref>
<ejb-ref-name>ejb/Service2</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>com.hutchison3g.core.brick.custom.messaging.CustomMessagingBrickLocalHome</local-home>
<local>com.hutchison3g.core.brick.custom.messaging.CustomMessagingBrickLocal</local>
<ejb-link>CustomMessagingBrick</ejb-link>
</ejb-local-ref>
its weblogic.xml file is the following:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN"
"http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
<weblogic-web-app>
<reference-descriptor>
<ejb-reference-description>
<ejb-ref-name>ejb/Service2</ejb-ref-name>
<jndi-name>Service2</jndi-name>
</ejb-reference-description>
</reference-descriptor>
</weblogic-web-app>
while the weblogic-ejb-jar for CustomMessaging bricks contains the following:
<weblogic-enterprise-bean>
<ejb-name>CustomMessagingBrick</ejb-name>
<stateless-session-descriptor>
<pool>
</pool>
<stateless-clustering>
</stateless-clustering>
</stateless-session-descriptor>
<transaction-descriptor>
</transaction-descriptor>
<enable-call-by-reference>True</enable-call-by-reference>
<jndi-name>Service2</jndi-name>
</weblogic-enterprise-bean>....
Maybe you are looking for
-
Passing a variable between applications
Hi, I would like to pass a variable from a jsp page in a portal application into KM repository filter with user session context. For example, I will set { var1="sample data" } in the portal application and read it in the repository filter. Actually I
-
Layout: Deselecht the indicator user-specific
Hi, I would like to save a layout and the only possibility that I have ist user-specific.(the field ist already select wenn I call the layout) How can I deselect the indicator user specific. All users of the list has to call the layout. Thanks
-
Add option to convert an object on slide to placeholder object from Master Slide View.
This just makes sense...
-
Lightroom 4.3 on a Mac Pro not working under my user name
I have recently installed Lightroom 4.3 on a MacPro, Mountain Lion, 8GB RAM, environment. I kept getting the following error when changing to the "Slideshow" module: 'An error occurred when attempting to change modules'. I followed the advice given
-
Is there any way to get a usable colour picker into Fireworks? I mean, I have no problem with the OSX colour picker in principle (Omnigraffle have implemented it very well); but in FW it's pretty much unusable. The problem is two-fold. a) iThe colour