What is the problem?
I want to deploy a CMP Entity Bean in weblogic6.1SP2,but I meet an error,what should I do to solve the problem?
the error code:
<2003-4-7 ~{OBNg~}02~{J1~}27~{7V~}24~{Ck~}> <Error> <J2EE> <Error deploying application SVC:
Unable to deploy EJB: CMPSvc from SVC.jar:
The Container-Managed Persistence Entity EJB failed while creating its SQL Type
Map. The error was:
Io ~{Rl3#~}: Connection reset by peer: socket write error
and my original code:
SVC.java(remote interface)
package CMPEntityBean;
import javax.ejb.*;
import java.rmi.RemoteException;
public interface SVC extends EJBObject
public java.lang.String getSvcID() throws RemoteException;
public java.lang.String getSvcName() throws RemoteException;
public void setSvcID(java.lang.String svcID) throws RemoteException;
public void setSvcName(java.lang.String svcName) throws RemoteException;
SVCHome.java (home interface file)
package CMPEntityBean;
import javax.ejb.*;
import java.rmi.RemoteException;
import java.util.Collection;
public interface SVCHome extends EJBHome
public SVC create(java.lang.String svcID,java.lang.String svcName) throws CreateException,RemoteException;
public SVC findByPrimaryKey(CMPEntityBean.SVCPK key) throws FinderException,RemoteException;
public Collection findBySvcName(java.lang.String svcName) throws FinderException,RemoteException;
SVCBean.java (Enterprise Bean file)
package CMPEntityBean;
import javax.ejb.*;
public abstract class SVCBean implements EntityBean
protected EntityContext ctx;
public abstract java.lang.String getSvcID();
public abstract java.lang.String getSvcName();
public abstract void setSvcID(java.lang.String svcID);
public abstract void setSvcName(java.lang.String svcName);
public void ejbActivate(){}
public void ejbRemove(){}
public void ejbPassivate(){}
public void ejbLoad(){}
public void ejbStore(){}
public void setEntityContext(EntityContext ctx)
this.ctx = ctx;
public void unsetEntityContext()
this.ctx = null;
public void ejbPostCreate(String svcID,String svcName){}
public SVCPK ejbCreate(String svcID,String svcName)
setSvcID(svcID);
setSvcName(svcName);
return new SVCPK(svcID);
ejb-jar.xml
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
<ejb-jar>
<enterprise-beans>
<entity>
<ejb-name>CMPSvc</ejb-name>
<home>CMPEntityBean.SVCHome</home>
<remote>CMPEntityBean.SVC</remote>
<ejb-class>CMPEntityBean.SVCBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>CMPEntityBean.SVCPK</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>SVCBean</abstract-schema-name>
<cmp-field>
<field-name>svcID</field-name>
</cmp-field>
<cmp-field>
<field-name>svcName</field-name>
</cmp-field>
<!--prim-key-class>svcID</prim-key-class-->
<query>
<query-method>
<method-name>findBySvcName</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<!--result-type-mapping>Local</result-type-mapping-->
<ejb-ql>
SELECT OBJECT(a) FROM SVCBean a WHERE svcName = ?1
</ejb-ql>
</query>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>CMPSvc</ejb-name>
<method-intf>Remote</method-intf>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
weblogic-ejb-jar.xml
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN" "http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd" >
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>CMPSvc</ejb-name>
<entity-descriptor>
<entity-cache>
<max-beans-in-cache>1000</max-beans-in-cache>
</entity-cache>
<persistence>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
</persistence-use>
</persistence>
</entity-descriptor>
<jndi-name>cmpsvc</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
weblogic-cmp-rdbms-jar.xml
<!DOCTYPE weblogic-rdbms-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB RDBMS Persistence//EN' 'http://www.bea.com/servers/wls600/dtd/weblogic-rdbms-persistence.dtd'>
<weblogic-rdbms-jar>
<weblogic-rdbms-bean>
<ejb-name>CMPSvc</ejb-name>
<data-source-name>ucisOra</data-source-name>
<table-name>TAB_SVC</table-name>
<field-map>
<cmp-field>svcName</cmp-field>
<dbms-column>svcname</dbms-column>
</field-map>
<field-map>
<cmp-field>svcID</cmp-field>
<dbms-column>svcid</dbms-column>
</field-map>
</weblogic-rdbms-bean>
</weblogic-rdbms-jar>
thanks a lot!
Try this
SELECT OBJECT(a) FROM SVCBean a WHERE a.svcName = ?1
Similar Messages
-
When I click on 2014 month view in calendar iPhone 5 s stucks, lagging. What is the problem I don't know????
Should read 'When I '''clicked''' on your update this a.m......
-
i have a problem in my account every time i want to install application from app Store on my iphone a message shows that my Apple ID has been disabled, i creat a new password and still that message shoes ,what is the problem ?can you help me please???!!!!
If your account is disabled then you might be able to re-enable it via this page : http://appleid.apple.com, then 'reset your password'
You might then need to log out of your account on your phone by tapping on your id in Settings > iTunes & App Store and then log back in so as to 'refresh' the account on it
If that doesn't fix it then you might need to contact iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page -
I have installed Itunes 10.5 on my PC and I have turned photostream on on my Ipad2 and Iphone. The photos sync fine but they are not showing up on my PC. What's the problem? I can see my photos on my ipad and Iphone. I want to be able to see them on my PC when I take pictures from my Iphone and Ipad. How do I see Photostream on my PC?
You have to install the iCloud control panel for windows, then sign in with you apple ID, and check what you want to sync.
link: http://support.apple.com/kb/DL1455 -
When I try to rent a movie on my Apple TV it states that the purchase could not be completed. My password is correct and location, user id, and other settings are correct. What is the problem?
If you are also getting a message to contact iTunes Support then you can do so via this link and ask them why the message is appearing (we are fellow users here on these user-to-user forums, we won't know why) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
-
What is the problem?
About AirPlay and Airplay Mirroring
AirPlay Mirroring requires a second-generation Apple TV or later, and is supported on the following Mac models: iMac (Mid 2011 or newer), Mac mini (Mid 2011 or newer), MacBook Air (Mid 2011 or newer), and MacBook Pro (Early 2011 or newer). For non-qualifying Macs you can try using Air Parrot.
Several Apple Articles Regarding AirPlay
Apple TV (2nd and 3rd gen)- How to use AirPlay Mirroring
How to set up and configure AirPort Express for AirPlay and iTunes
iTunes- Troubleshooting AirPlay and AirPlay Mirroring
iTunes- Using AirPlay
Apple TV (2nd and 3rd gen)- Understanding AirPlay settings
About AirPlay Mirroring in OS X Mountain Lion
iTunes 10- About playing music with AirPlay
Troubleshooting AirPlay and AirPlay Mirroring
Using AirPlay
Thanks to the $15 Beamer, AirPlay streaming is still possible on Macs that do not support Airplay and mirroring.
Other solutions are the Air Parrot, StreamToMe, and AirServer. -
I am trying to restore an ipod to the factory settings. However I get a message that my username or password is incorrect. I am using my correct Apple id and password. What is the problem, please?
Was that Apple ID and password the original owner of the iPod? If not, try using the Apple ID and password of the original owner.
-
i connect my iphone to my pc and i tunes open automatically,then i press dowload and update but itunes say am not connected to the internet while my pc is connected to the internet what isi the problem?
If you are the only user on your computer you probably don't have multiple user accounts set up and can disregard that. If you are using iTunes 11 go to View>Show Sidebar. Now see if your iPad appears under Devices on the left side when you connect it. If it does, click on the name of your iPad on the left side and your iTunes sync settings options will appear in folders with tabbed headings to the right.
If it doesn't appear on the left side, follow the troubleshooting steps shown in this article: http://support.apple.com/kb/TS1538. -
I just purchased the ExportPDF. When I try to convert a pdf document to word online, it gives me an error. What is the problem?
Hi sampa1,
Can you please let us know the error message you are getting while converting PDF to Word. Also, please let us know the steps you are following. -
But it can auto sync when i connect it to my old laptop. what's the problem that it can't auto sync and when i did a backup in my new laptop, it was corrupted the next day and i was forced to use back a backup which i did in my old laptop 4 months ago. do i have to reinstall the itunes? will my backups be corrupted after i sync again? pls guide.
P.S/ its the latest version of the itunes whenever i did the backups.iPod touches or any iDevices from Apple sync only to one computer. If you sync to a different computer, all your music will be replace with the music from the new computer's iTunes. If the music were purchased from iTunes, you can re-download them again otherwise the music on iPod touch will be deleted. Do you have iTunes backup?
-
What is the problem on MacBook Pro retina 15"?
I just bought a new MacBook Pro retina 15". After unboxing, I turned it on and there was no any problem. But the second time I turned it on and charge battery, I got 2 problems, 1. The machine made noise loudly and 2. The charging is not working. What is the problem on MacBook Pro retina 15"? However, after about 1 hour, it works normally. Should I still use it or sell it before it has more issues?
The warranty entitles you to complimentary phone support for the first 90 days of ownership.
If you bought the product in the U.S. directly from Apple (not from a reseller), you have 14 days from the date of delivery in which to exchange or return it for a refund. In other countries, the return policy may be different. If you bought from a reseller, its return policy applies. -
My MacBook Pro with Lion 10.7.2, only audio on the headset, and speaker mute. With Windows, the audio works in speaker and headphone jack. What is the problem? What's the solution?
There is probably a red light on inside your headphone port, indicating that the analog/digital switch in there is stuck in the digital position. Insert a headphone plug and wigle it around, especially in the horizontal plane, as you insert and remove it several times. This will usually unstick the switch and restore normal operation. If it doesn't, the machine will need to be repaired.
This has been a fairly common problem, but in most cases it is easily cured as described above. -
My Ipod touch is frozen. The screen shows only USB cable with arrow point to the word Itunes. What is the problem? This is the second touch I have had that has this same problem. HELP!
This time try restoring the iPod to factory defaults/new iPod instead of from backup. You may have some corruption that is causing the problem and it may now be in the backup. If the problem persists after restoring to factory defaults/new iPod. then you likely have a hardware problem and ana ppointment at the Genius Bar of an Apple store is in order.
-
When I start mozilla firefox web browser, sometimes I see a message saying that "a Mozilla Firefox is already running, please close it or restart your system". As a matter of fact, there is no firefox browser running at that time. Since I cannot do anything about it, I have to restart my computer before I can use the web browser, which bothers me dearly. What is the problem?
Plug-in and tasks started by Firefox may continue after attempting to close Firefox. The "X" in the upper right-hand corner closes the Window (same as Ctrl+Shift+W) but even if it is the last Firefox window, it does not necessarily close Firefox .
'''The only proper way to exit Firefox is to use Exit through the File menu''', not the "X" in the upper right corner of last Firefox window.
''Menus hidden: then use Alt+F then X.''
'''Firefox hangs''' | Troubleshooting | Firefox Support ''(some extensions cause a problem)''
* http://support.mozilla.com/kb/Firefox%20hangs#w_hang-at-exit
Use the '''Windows Task Manger''' to remove all running firefox.exe in the "Processes"
tab of the Windows Task Manager, then restart Firefox.
"'''Restartless Restart'''" extension for Firefox 4.0 only (2 KB download )
* https://addons.mozilla.org/firefox/addon/249342/
use to close and restart Firefox after enabling or disabling an extension, switching
to a new theme, or modifying configuration files, then you don't have to worry
about delay or have to look in the Task Manager to see if Firefox is closed yet.
Uses keyboard shortcut "'''Ctrl+Alt+R'''" or a file menu option.
'''Windows 7''' users can use '''Ctrl+Shift+Esc''' to get to the Windows Task Manager quicker than starting with Ctrl+Alt+Del. -
hello i have an ipod touch 4 5.1.1 and i can't post status updates or have a profil picture what is the problem and my sister has it and we have the same itunes account in game center
And the answer is:
williamfromlongueuil wrote:
we have the same itunes account in game center
You need to have your own account... DUH.... -
Itunes 10.6.1.7 problem: when I change the file "media type" from 'Music' to 'Podcast' the file disapears from ITUNES. I do this via (1) right click, (2) select 'Get Info', (3) select 'options' tab, and (4) change media type. What is the problem?
Hi Memalyn
Essentially, the bare issue is that you have a 500GB hard drive with only 10GB free. That is not sufficient to run the system properly. The two options you have are to move/remove files to another location, or to install a larger hard drive (eg 2TB). Drive space has nothing to do with SMC firmware, and usually large media files are to blame.
My first recommendation is this: download and run the free OmniDiskSweeper. This will identify the exact size of all your folders - you can drill down into the subfolders and figure out where your largest culprits are. For example, you might find that your Pictures folder contains both an iPhoto Library and copies that you've brought in from a camera but are outside the iPhoto Library structure. Or perhaps you have a lot of purchased video content in iTunes.
If you find files that you KNOW you do not need, you can delete them. Don't delete them just because you have a backup, since if the backup fails, you will lose all your copies.
Don't worry about "cleaners" for now - they don't save much space and can actually cause problems. Deal with the large file situation first and see how you get on.
Let us know what you find out, and if you manage to get your space back.
Matt
Maybe you are looking for
-
have been tried to develop a blog like the sample php & mysql. I make an include from list from toolbox: Url parameter value: admin_topics Filename: admin/admin_topics.php Page title: Administrate topics And the errors, when i test: Warning: main(adm
-
Secure enough to write the db connection username password in form?
Secure enough to write the db connection username password in form? Can anyone read the pdf form, extract the content or scripts from it? Thanks Asiye
-
To Show Word Docement in FR WorkBook
Hi All, I have already added a word doc in my workbook from FR. But it's not working. When viewing the workbook in complete PDF format the word doc is absent. Any help on this. Thanks in advance Sujoy
-
Problem signature Problem Event Name: BEX Application Name: iTunes.exe Application Version: 11.2.2.3 Application Timestamp: 5383f31a Fault Module Name: StackHash_fd00 Fault Module Version: 0.0.0.0 Fault Module Timestamp: 00000000 Exception Offset: 00
-
Hello. Has anyone had Flash videos go blank and act weird as shown in http://i.imgur.com/GugQV05.gif as an example? I have to either exit/quit SeaMonkey or kill Flash's plugin-container.exe process. I did not have this problems with older Flash versi