Failure When Deploying EJB Project That Uses Library Onto Glassfish
<font size=4>Hi,
I have a multi project application that I am developing and I am having issues testing it. I have set up a EAR, WAR, EJB, and two library JARs. The EJB contains classes that use components from the library JARs or implement abstract classes from the library JARs. I have added the library JARs to the compile-time libraries of the EJB. I then also added the library JARs to the libraries of the EAR. However when I then go to deploy the EAR onto the Glassfish server I get this error, displayed in the Glassfish log:</font><br>
<font size=2><font color="red">WARNING: Error in annotation processing: java.lang.NoClassDefFoundError: com/foo/sdk/core/AbstractClass</font><br>
<font color="red">WARNING: Error in annotation processing: java.lang.NoClassDefFoundError: com/foo/sdk/core/AbstractClass</font><br>
<font color="red">WARNING: Error in annotation processing: java.lang.NoClassDefFoundError: com/foo/sdk/core/AbstractClass</font><br>
<font color="red">WARNING: Error in annotation processing: java.lang.NoClassDefFoundError: com/foo/sdk/core/AbstractClas</font><br>
<font color="red">SEVERE: Class [ com/foo/sdk/core/InterfaceClass ] not found. Error while loading [ class com.foo2.BeanFooClass ]</font><br>
<font color="red">SEVERE: Exception while deploying the app [FooEAR]</font><br>
<font color="red">SEVERE: Invalid ejb jar [BeanFoo.jar]: it contains zero ejb. </font><br>
Note:
1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.
2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.
3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.
java.lang.IllegalArgumentException: Invalid ejb jar [BeanFoo.jar]: it contains zero ejb.
Note:
1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.
2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.
3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.
at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:76)
at com.sun.enterprise.deployment.util.ApplicationValidator.accept(ApplicationValidator.java:128)
at com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:730)
at com.sun.enterprise.deployment.Application.visit(Application.java:1768)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.validate(ApplicationArchivist.java:799)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openWith(ApplicationArchivist.java:277)
at com.sun.enterprise.deployment.archivist.ApplicationFactory.openWith(ApplicationFactory.java:240)
at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:170)
at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:93)
at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:826)
at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:768)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:465)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:222)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:679)
<font color="red">SEVERE: Exception while deploying the app [FooEAR] : Invalid ejb jar [FooBean.jar]: it contains zero ejb. </font><br>
Note:
1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.
2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.
3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.</font><br>
<font size=4>I am using these technologies:
NetBeans IDE 7.0 for Java EE
Glassfish 3.1
I did read that putting the libraries in this directory: <glassfish_home>/domains/domain1/lib may resolve the problem, however there must be a better way.
Any help would be greatly appreciated!</font>
Edited by: 866180 on Jun 15, 2011 2:32 PM
First of all, use a normal font when posting a question. This is just terrible to read.
You have multiple failures here. Did you actually read and try to understand the error?
java.lang.NoClassDefFoundError: com/foo/sdk/core/AbstractClassJava is not going to lie, this class is not on the classpath of the application. Either the jar is missing, the class is missing from the jar or you put the jar in the wrong place. Open up the ear using your favorite zip tool and check out its structure. What is the path to the jar inside it?
Also, open up the META-INF/manifest.mf file inside the EJB jar. Is there a class-path line in there? There shouldn't be!
A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean. Apparently your EJB jar contains not a single EJB or MDB class. Did you forget some annotations perhaps?
Seems to me that your application compiles, but other than that it is very much broken.
Similar Messages
-
Why does my web browser constantly blink when in a site that uses java?
Hi
when visiting a site that uses java my web browser blinks when ever there is an update to the information on the screen. Is there something i should change in my java preferences?
thanksFor safety disable Jave in all your Browsers...
Disable Java in your Browser settings, not JavaScript.
http://support.apple.com/kb/HT5241?viewlocale=en_US
http://support.google.com/chrome/bin/answer.py?hl=en-GB&answer=142064
http://support.mozilla.org/en-US/kb/How%20to%20turn%20off%20Java%20applets
Little Snitch, stops/alerts outgoing stuff...
http://www.obdev.at/products/littlesnitch/index.html
Flashback - Detect and remove the uprising Mac OS X Trojan...
http://www.mac-and-i.net/2012/04/flashback-detect-and-remove-uprising.html
In order to avoid detection, the installer will first look for the presence of some antivirus tools and other utilities that might be present on a power user's system, which according to F-Secure include the following:
/Library/Little Snitch
/Developer/Applications/Xcode.app/Contents/MacOS/Xcode
/Applications/VirusBarrier X6.app
/Applications/iAntiVirus/iAntiVirus.app
/Applications/avast!.app
/Applications/ClamXav.app
/Applications/HTTPScoop.app
/Applications/Packet Peeper.app
If these tools are found, then the malware deletes itself in an attempt to prevent detection by those who have the means and capability to do so. Many malware programs use this behavior, as was seen in others such as the Tsunami malware bot.
MadMacs0 says...
This script from F-Secure is the only one I'm currently recommending http://www.f-secure.com/weblog/archives/00002346.html
http://reviews.cnet.com/8301-13727_7-57410096-263/how-to-remove-the-flashback-ma lware-from-os-x/
http://x704.net/bbs/viewtopic.php?f=8&t=5844&p=70660#p70660
Open DNS also blocks the FlashBack thing...
http://blog.opendns.com/2012/04/09/worried-about-mac-malware-just-set-up-opendns / -
When Deploying SharePoint 2010 solution using Powershell gives me nothing
When Deploying SharePoint 2010 solution using Powershell gives me nothing
And when go to Central Admin >> System Settings >> Farm Management >> Manage Farm Solution
I found my Solution Status is Deploying and still deploying and nothing.Hi,
According to your description, my understanding is when you deploy the SharePoint solution, the deploy status stuck on the deploying status.
To resolve this issue, I suggest you can do as the followings:
1. On any server, start, run, services.msc, enter, this will open the services console.
2. Now type s, this will give you all the services that start with S, look for SharePoint timer service and make sure it’s in started mode.
3. This service should be started on all the front ends as well as application server.
More information:
Solution deployment stuck on deploying: SharePoint 2010
Thanks
Best Regards
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Deploying an app that uses freeTTS
I'll get the hang of this soon :-)
I'm trying to deploy an application that uses the FreeTTS Text to speech. I'm using Netbeans IDE. The program runs fine locally, but when I run it via Web Start, it closes with an exception at the point it initialises the FreeTTS, so I guess I'm missing a .jar in the deployment?
I've included 5 .jar files that were included with the FreeTTS download, (and these match the ones I have added to the list of libraries in Netbeans).. the important bits of the exception are:
myapp.Main.StartVoice(Main.java:83) <<- this is my function that initialises
myapp.Main.main(Main.java:45)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
com.sun.javaws.Launcher.executeApplication(Unknown Source)
com.sun.javaws.Launcher.executeMainClass(Unknown Source)
com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
com.sun.javaws.Launcher.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
So, I guess the first question would be what .jar files do I need to include for a simple program that uses the Kevin16 voice to say "hello", and is the above exception telling me It is missing a .jar file?
Thanks in advance for any help.
Message was edited by:
ForgeukAfter a couple of days of 'dicking around' with WebStart, I finally stumbled on an answer.
So, here it is for anyone else getting stuck on distributing a freeTTS application via webstart, it doesn't seem to mention this in any of the FAQs very clearly, it mentions something similar for the webstart clock app.
I was simply missing a line in the JNLP file:
<property name="freetts.voices" value="com.sun.speech.freetts.en.us.cmu_us_kal.KevinVoiceDirectory"/>
Not entire sure what it does, but it now works! -
Smart export/import - unable to import project that uses 'xml' technology
Hello,
I have smart exported project and this project uses technology 'XML'. When I'm trying to import it, there are following issues (screen) - no fix available to choose:
http://screener.tk/f/o/f/z6nRM.png
So, it seems technology 'XML' is not recognized during import, because it has different ID. On repository I'm trying to import to, XML has ID 27999. So, I manually edited SmartExport.xml file and changed all occurences of 1189 to correct ID: 27999 and tried again to import. After this change, there are no issues. But just after I start import, following error message is thrown and import fails:
http://screener.tk/f/o/f/wf8R0.png
The same issue when I'm trying to import any project that uses any not built-in technology. After importing technology on destination server, ID doesn't match. And if I change ID in SmartExport.xml, no issues but import fails due to error similar as above.
So, what is the correct way to perform succesfull import/export in this cases and how to fix "dirrerent origin" errors? Do you have any idea?PS - have found other posts indicating that clips smaller than 2s or sometimes 5s, or "short files" can cause this. Modern style editing often uses short takes ! Good grief I cannot believe Apple. Well I deleted a half a dozen short sections and can export, but now of course the video is a ruined piiece of junk and I need to re-do the whole thing, the sound etc. which is basically taking as much time as the original. And each time I re-do it I risk again this lovely error -50 and again trying to figure out what thing bugs it via trial and error instead of a REASONABLE ERROR MESSAGE POINTING TO THE CLIP IT CAN'T PROCESS. What a mess. I HATE this iMovie application - full of BUGS BUGS BUGS which Apple will not fix obviously, since I had this product for a few years and see just hundreds of hits on Google about this error with disappointed users. Such junk I cannot believe I paid money for it and Apple does not support it with fixes !!!
If anyone knows of a GOOD reasonably priced video editing program NOT from APPLE I am still looking for suggestions. I want to do more video in future, but obviously NOT with iMovie !!! -
Archiving Projects that use Nested Sequences
I'm looking for some help using Project Manager to archive projects that use nested sequences.
I work at the University of Michigan, we are wrapping up a study that is based on files from many Premiere Pro projects. Each project started with 150 to 160 min of video footage from two cameras.
Of this we have edited down to a 10 – 20min finished sequence containing footage from both cameras as a two-camera shoot. I want to archive eachproject (to save HDD space) retaining only the used sections of footage in thePPro archived project, allowing us to make minor edits to the projects.
My workflow has been to rely heavily on nested sequences throughout each project. From two sequences containing all of the footage from Camera1 and Camera2 all the way to the final cut sequence everything is dependent on a series of interim nested sequences. So the last sequence “Final” is based/linked on the very first sequences. When I attempt toarchive this using Project Manager the nested sequence edits are not recognized as individual clips. I either end up with all of the original footage or no footage. I’m not sure how (if?) I can archive these projects in a way to eliminate all but the final file footage segments with 30 frame handles.
Can anyone point me in the right direction or offer some advice?figure for $1000/terabyte drive
Alot less than that, you can get a good Dual HD enclosure for $100 and probably less than that, and 500 Gig Drives for about $250 a piece, so assume about $600 without shopping too hard.
I find it is alot easier to use HDs, and have a couple of copies for important projects. You can use the other items as another backup (never can have too many) and going to be easier than having to recapture, especially if there was dropped framess or timecode issues. Guess it comes down too how often do you have to go back annd re-edit a wedding DVD once it is done, and what will make your like easier when it is said and done, but if it happens, on the HD just open it up, otherwise you have to recapture the tapes which is a couple of hours at least it sounds like.
As to archieve DVDs, who knows. There have been claims that the original CDs were to last 100 years, some of the ones I bought when they first came out started to go a few years ago. Same for some other media. -
Compile a project that uses Spark modules (SDK 4.5) with FB4.1?
Is it possible to compile a project that uses Spark modules with Flash Builder 4.1?
I've added SDK 4.5 to FB and selected it in the project properties (no problems here).
But how about the 'Flex modules' tab in the project properties window, will it be able to add Spark modules to the application?Yes, you will be able to use s:Module with FB 4. You'll have to do a new MXML component, then go to Flex Modules and click on the add button. (The new module wizard there won't support the spark module)
However, please note that this is unsupported in the sense that we haven't tried that out at our end. (But I personally have and it works )
-Anirudh -
Error when deploying ejb 3 in weblogic10
Hi,
I'm using the EJB3.0 in weblogic10, just as the following:
remote interface:
com.test.intf
public interface Test{
public void test();
and the impl:
com.test.impl
@stateless
@Remote(Test.class)
public class TestBean implements Test{
public void test{...}
Then I build an ear which including the ejb jar:
Test.ear
|__ejb.jar (including the Test and the TestBean)
|
|__Meta-Inf
And when I deploy the Test.jar to the weblogic 10, the following error occurs:
weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Unable to load clas
s com.test.impl.TestBean_3u7muo_EmergencyServiceF
uncImpl ]
at weblogic.ejb.container.deployer.Ejb3SessionBeanInfoImpl.prepare(Ejb3S
essionBeanInfoImpl.java:319)
at weblogic.ejb.container.deployer.EJBDeployer.setupBeanInfos(EJBDeploye
r.java:914)
at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:
1188)
at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:425)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu
leListenerInvoker.java:93)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Depl
oymentCallbackFlow.java:387)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
river.java:37)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(Dep
loymentCallbackFlow.java:58)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(Dep
loymentCallbackFlow.java:42)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.ja
va:615)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
river.java:37)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.j
ava:191)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.jav
a:16)
at weblogic.application.internal.DeploymentStateChecker.prepare(Deployme
ntStateChecker.java:155)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(App
ContainerInvoker.java:60)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.cr
eateAndPrepareContainer(ActivateOperation.java:197)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.do
Prepare(ActivateOperation.java:89)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.pr
epare(AbstractOperation.java:217)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploym
entPrepare(DeploymentManager.java:723)
at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploy
mentList(DeploymentManager.java:1190)
at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare
(DeploymentManager.java:248)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.pre
pare(DeploymentServiceDispatcher.java:159)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb
ackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb
ackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb
ackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
gWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.ClassNotFoundException: com.oracle.ocrt.service.impl.Emerge
ncyServiceFuncBean_3u7muo_TestIntf
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
ClassLoader.java:283)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass
Loader.java:256)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:176)
at weblogic.ejb.container.deployer.BeanInfoImpl.loadClass(BeanInfoImpl.j
ava:540)
at weblogic.ejb.container.deployer.Ejb3SessionBeanInfoImpl.prepare(Ejb3S
essionBeanInfoImpl.java:310)
... 27 more
<2008-9-26 下午08时35分07秒 CST> <Error> <Deployer> <BEA-149265> <Failure occurr
ed in the execution of deployment request with ID '1222432506169' for task '0'.
Error is: 'weblogic.application.ModuleException: Exception preparing module: EJB
Module(test.jar)
Unable to deploy EJB: TestBean from test.jar:
***** ASSERTION FAILED *****[ Unable to load class com.test.impl.TestBean_3u7muo_TestImpl ]
weblogic.application.ModuleException: Exception preparing module: EJBModule(test.jar)
Unable to deploy EJB: TestBean from test.jar:
***** ASSERTION FAILED *****[ Unable to load class com.test.impl.TestBean_3u7muo_TestImpl ]
at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:452)
What is the problem? And What can I do?
BTW, if I change the @Remote to @Local, I can deploy the ejb successfully.
In addition, Who knows how to access the ejb3.0 from a standalone client just like access the EJB2.0:
properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
properties.put(Context.PROVIDER_URL, "t3://localhost:7001");
Context cont = new InitialContext(properties);
Obj ref = cont.lookup("???"); //--------------------> What should I write here???
Thanks!Hi,
It's not easy to tell what's wrong with your example.
Maybe you could send me a zip and I'll check when I have some time.
By the way, you're asking a question about the lookup of an EJB3, I wrote an article that covers that topic.
It should give you some interesting input.
http://m-button.blogspot.com/2008/07/reminder-on-how-to-use-ejb3-with.html
Regards. -
Error when deploying EJB Session Info to 8.1.7 DB
Hi all,
I'm trying to make a deploy of BC4J project into Oracle 8.1.7 database with JDeveloper 3.2.2. When I try to deploy all the project, I get an oracle error and I'm disconnected from the database: "end of file on communication channel". java_pool_size paramete has a value of 70 Mbytes in database.
But when I'm trying to make a deploy of files generated by deployment profile, I get oracle's errors in <appModuleName>OrcleServerEJB.prf file deployment:
Error while granting to <package>/common/ejb/<appMod>Home
ORA-04042: package, procedure or function does not exists.
Error while resolving class <package>/common/ejb/<appMod>Home
ORA-04043: object /6d1c81a7_<appModName>ModuleHome does not exist.
Any ideas?
Thanx in advance.Reason: database keeps a reference of the class in JAVA$CLASS$MD5$TABLE table. This table keeps a refrence to all java classes loaded in database, and is present in each schema you deploy classes. That's the reason why if you change the application module name, you can load this classes. It instead keeps a reference if you use DROP JAVA CLASS command to drop a java class from de database. Use DROP JAVA command to clear the reference of the dropped classes when dropping it.
You can see this table as a class dictionary of the database, and you don't have to handle this records manually. -
Invalid change to class error when deploying EJB
We have EJBs that were built by Webgain Visual Cafe and successfully deploy
to WLS 5.1. We then use the WLE EJB Deployer Tool to build WLE container
classes and deploy the same EJBs in WLE 5.1.
One EJB does not deploy in WLE. The ULOG error message is:
133929.EA-LAWSTUC!JavaServer.517: main: IJENGINE_CAT:150: ERROR: Invalid
change to class service.Request
133929.EA-LAWSTUC!JavaServer.517: main: EJB_CAT:29: ERROR: While deploying
jar ServiceEJB : com.beasys.weblogic.classloader.RedeploymentException:
ERROR: Invalid change to class service.Request
133929.EA-LAWSTUC!JavaServer.517: Finalizer: IJENGINE_CAT:152: INFO: Closing
jar C:\aj\ServiceEJB_WLE.jar
Does anyone know what can cause an "invalid change to class" error when
deploying to WLE 5.1? Especially since the EJB deploys successfully in
WLS.
Carl LawstuenReason: database keeps a reference of the class in JAVA$CLASS$MD5$TABLE table. This table keeps a refrence to all java classes loaded in database, and is present in each schema you deploy classes. That's the reason why if you change the application module name, you can load this classes. It instead keeps a reference if you use DROP JAVA CLASS command to drop a java class from de database. Use DROP JAVA command to clear the reference of the dropped classes when dropping it.
You can see this table as a class dictionary of the database, and you don't have to handle this records manually. -
Problems while compiling a project that uses Database Adapter
Hi,
I am working on a small WebService that uses the Database Adapter to connect with the Oracle-Lite database. The process is a synchronous process which has client and DatabaseService as the partner link. The goal of this project is to get two inputs from the user and send it over to the DatabaseService for it to select the rows from the table based on the inputs sent. The process activity has an invoke function which had two varibles Invoke_1_inputVarible and Invoke_1_outputVarible. I have included the *.xds that contains the database schema. When I compile the project i get the following error
Error(38): [Error ORABPEL-10035]: wrong messageType [Description]: in line 38 of "D:\OraBPELPM_2\integration\jdev\jdev\mywork\Workspace1\Login\Login.bpel", messageType "{http://xmlns.oracle.com/pcbpel/adapter/db/ds/}EmployeeRole_msg" of variable "Invoke_1_dsSelect_InputVariable" does not match the expected messageType "{http://xmlns.oracle.com/pcbpel/adapter/db/ds/}dsSelect_inparameters" in <invoke>. [Potential fix]: make sure the correct variable is used in invoke.
My question is how do I assign correct messageType for the variables.
XSD File:
<?xml version = '1.0' encoding = 'UTF-8'?>
<xs:schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/Login" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/Login" elementFormDefault="unqualified" attributeFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="EmployeeRoleCollection" type="EmployeeRoleCollection"/>
<xs:element name="EmployeeRole" type="EmployeeRole"/>
<xs:complexType name="EmployeeRoleCollection">
<xs:sequence>
<xs:element name="EmployeeRole" type="EmployeeRole" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="EmployeeRole">
<xs:sequence>
<xs:element name="empid" type="xs:decimal" minOccurs="0" nillable="true"/>
<xs:element name="password" type="xs:string" minOccurs="0" nillable="true"/>
<xs:element name="role" type="xs:string" minOccurs="0" nillable="true"/>
<xs:element name="uid" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="findAllInputParameters" type="findAll"/>
<xs:complexType name="findAll">
<xs:sequence/>
</xs:complexType>
<xs:element name="dsSelectInputParameters" type="dsSelect"/>
<xs:complexType name="dsSelect">
<xs:sequence/>
</xs:complexType>
</xs:schema>
DatabaseService.wsdl
<?xml version="1.0" encoding="UTF-8"?>
<definitions
>
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/Login"
schemaLocation="EmployeeRole_table.xsd"/>
</schema>
</types>
<message name="EmployeeRoleCollection_msg">
<part name="EmployeeRoleCollection" element="top:EmployeeRoleCollection"/>
</message>
<message name="dsSelect_inparameters">
<part name="dsSelect_inparameters" element="top:dsSelectInputParameters"/>
</message>
<message name="EmployeeRole_msg">
<part name="EmployeeRole" element="top:EmployeeRole"/>
</message>
<portType name="ds_ptt">
<operation name="dsSelect">
<input message="tns:dsSelect_inparameters"/>
<output message="tns:EmployeeRoleCollection_msg"/>
</operation>
<operation name="queryByExample">
<input message="tns:EmployeeRole_msg"/>
<output message="tns:EmployeeRoleCollection_msg"/>
</operation>
</portType>
<binding name="ds_binding" type="tns:ds_ptt">
</binding>
<service name="ds">
<port name="ds_pt" binding="tns:ds_binding">
<jca:address location="eis/DB/BPELSamples"
/>
</port>
</service>
</definitions>
<b>Login.bpel</b>
<process name="Login" targetNamespace="http://xmlns.oracle.com/Login" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/ds/" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/db/top/Login" xmlns:client="http://xmlns.oracle.com/Login" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
<partnerLinks>
<partnerLink name="client" partnerLinkType="client:Login" myRole="LoginProvider"/>
<partnerLink name="PartnerLink_1" partnerRole="ds_role" partnerLinkType="ns1:ds_plt"/>
</partnerLinks>
<variables>
<variable name="inputVariable" messageType="client:LoginRequestMessage"/>
<variable name="outputVariable" messageType="client:LoginResponseMessage"/>
<variable name="Invoke_1_dsSelect_InputVariable" messageType="ns1:EmployeeRole_msg"/>
<variable name="Invoke_1_dsSelect_OutputVariable" messageType="ns1:EmployeeRoleCollection_msg"/>
</variables>
<sequence name="main">
<receive name="receiveInput" partnerLink="client" portType="client:Login" operation="process" variable="inputVariable" createInstance="yes"/>
<assign name="Assign_1">
<copy>
<from variable="inputVariable" part="payload"/>
<to variable="Invoke_1_dsSelect_InputVariable" query="/ns2:EmployeeRole"/>
</copy>
</assign>
<invoke name="Invoke_1" partnerLink="PartnerLink_1" portType="ns1:ds_ptt" operation="dsSelect" inputVariable="Invoke_1_dsSelect_InputVariable" outputVariable="Invoke_1_dsSelect_OutputVariable"/>
<assign name="Assign_2">
<copy>
<from variable="Invoke_1_dsSelect_OutputVariable" part="EmployeeRoleCollection"/>
<to variable="outputVariable" part="payload"/>
</copy>
</assign>
<reply name="replyOutput" partnerLink="client" portType="client:Login" operation="process" variable="outputVariable"/>
</sequence>
</process>
Thanks,
NivHelp! SOS....
Niv -
Error when deploy a project in SQL Server Analysis Services
Hi all, I tried deploy my project SSAS, but it send message error.
This is image before deploy myproject, it is star chema of project.
and this is the image when i try deploy it, error list.
I want to complete my project. How i can fix error list??? Help me.
Hi Anhlovevietnam,
According to the error message, it seems that the Analysis Services account lack permission to access ‘QLTICKET’. By default, the default account for AS services has only public permission to few databases. If you haven't change the AS services account,
or haven't grant the permission for this account, then you cannot deploy the AS project to server.
So in your scenario, ensure the service "SQL Server Analysis Services" is running with a proper Log On As user. This user should have administrator permission on Analysis Services and the proper permissions on the database engine. To avoid this issue, you
can grant the SELECT permission for the default account for AS services to data source DB. Or you can change the services account to this domain user who has the corresponding to the data source DB.
http://jetreportskb.host4kb.com/article/AA-00238
Regards,
Charlie Liao
Charlie Liao
TechNet Community Support -
Hiss noise from iPad2 speakers when launching an app that uses the speakers
A couple of months ago I bought an iPad2 Wi-Fi. It was working fine until yesterday that it started making a hiss noise every time an app that uses the speakers was launched, for example when the keyboard clicks sound is enabled it will make noise while typing (this is somehow annoying). Is this a known issue?
Is this a hardware defect or can it be fixed with a software upgrade?
Thanks.i have the same problem: ipad2 makes noise every time when plays sound (music, video, games, typing)
i'm sure that problem is hardware..
the noise exists only with speaker: if i connect headphones noise disappears -
Deploy ejb in netbeans using jboss
I would like to know the steps to deploy ejb using jboss in netbeans..or please suggest a site which gives the detailed steps for deployment.
Thank youGoogle
-
Database Logon Failed when loading Access mdb that use a system mdw
I am trying to get my Report Viewer ASP.NET application running 11 R2 SP3 to open a report that uses Access database with a system database file (mdb and mdw file)
the report runs fine in the designer and it runs fine on the developer test computer
but the production environment that does not have the full Crystal Designer installed just the runtime engine (but does have the full MSAccess running) cannot load the database
i keep getting "Database Logon Failed"
SWIP Reports
Error Exporting Report
Report: Help Desk Reports Over 3 Days
Server Name: \\poseidon\IT\Databases\itdept.mdb
Database Name: \\poseidon\IT\Databases\itdept.mdb
User: GLOBAL\ADMINISTRATOR
IP: 127.0.0.1
============================================================
| Exception Information
+----------------------------------------------------------------------
| Exception Message: Database logon failed.
| Exception Source: CrystalDecisions.ReportAppServer.DataSetConversion
| Inner Exception:
| Begin Stack Trace:
| at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.T_
| hrowDotNetException(Exception e)
| at CrystalDecisions.ReportSource.EromReportSourceBase.Exp_
| ortToStream(ExportRequestContext reqContext)
| at CrystalDecisions.CrystalReports.Engine.FormatEngine.Ex_
| portToStream(ExportRequestContext reqContext)
| at CrystalDecisions.CrystalReports.Engine.ReportDocument._
| ExportToStream(ExportOptions options)
| at CrystalDecisions.CrystalReports.Engine.ReportDocument._
| ExportToHttpResponse(ExportOptions options, HttpRe_
| sponse response, Boolean asAttachment, String atta_
| chmentName)
| at CrystalDecisions.CrystalReports.Engine.ReportDocument._
| ExportToHttpResponse(ExportFormatType formatType,_
| HttpResponse response, Boolean asAttachment, Strin_
| g attachmentName)
| at reports.PushReport(ExportFormatType expType, String Co_
| ntentType, String Ext, Boolean Popup)
| at reports.exportReport(String strExpFmt)
+----------------------------------------------------------------------
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
does anyone have any advice on why this is failing only on the server but is not failing on the developer or the designer computers.public Reports(String RptPath)
this._ExpOptions.ExportDestinationType = ExportDestinationType.NoDestination;
this._ExpOptions.ExportFormatType = ExportFormatType.NoFormat;
this._RptDoc = new ReportDocument();
this._RptDoc.Load(RptPath, OpenReportMethod.OpenReportByTempCopy);
login();
private void login()
if (!_IsLoggedIn)
try
String dbName = this._RptDoc.DataSourceConnections[0].ServerName.ToString();
for (int i = 0; i < this._RptDoc.DataSourceConnections.Count; i++)
this._RptDoc.DataSourceConnections<i>.SetLogon(uid(dbName), pwd(dbName));
foreach (ReportDocument Sub in this._RptDoc.Subreports)
dbName = Sub.DataSourceConnections[0].ServerName.ToString();
for (int i = 0; i < Sub.DataSourceConnections.Count; i++)
Sub.DataSourceConnections<i>.SetLogon(uid(dbName), pwd(dbName));
ConnectionInfo coninfo = new ConnectionInfo();
coninfo.DatabaseName = this._RptDoc.DataSourceConnections[0].DatabaseName;
coninfo.ServerName = this._RptDoc.DataSourceConnections[0].ServerName;
coninfo.UserID = this._RptDoc.DataSourceConnections[0].UserID;
coninfo.Password = this._RptDoc.DataSourceConnections[0].Password;
foreach (CrystalDecisions.CrystalReports.Engine.Table crtbl in this._RptDoc.Database.Tables)
TableLogOnInfo logoninfo = crtbl.LogOnInfo;
logoninfo.ConnectionInfo = coninfo;
crtbl.ApplyLogOnInfo(logoninfo);
_IsLoggedIn = true;
Maybe you are looking for
-
In Lion, can Notes and StickyNotes be shared via iCloud?
Looks like there will be an app "notes" in Mountain Lion that can be shared across all my computers; is there a way to use Notes (iOS5) and StickNotes (Lion) with iCloud to do that now?
-
Quicktime downloaded but not showing up in applications
For some reason Quicktime Players disappeared from my OS so I downloaded it again but it is not showing up in applications. Have rebooted but no luck.
-
Hi, I've defined a variable on 0CALDAY, and I need to get a list containing just the values actually posted in the InfoProvider. Instead, a calendar is always shown in the popup window--the the Q mode setting (Only Posted Values for Navigation) has n
-
I am trying to add a record to a db, it shows that I have added 11 records. When I check no records were updated. I am needing a program that will open an access DB and then ADD records to same. I have enclose my program. I am 73 and had must better
-
SSL_ERROR_NO_CYPHER_OVERLAP
Hi, We just installed 6.1 SP2 on Solaris 9 (Sun V220). Does anyone know what this error means? [04/Oct/2004:14:50:16] failure (13865): HTTP3068: Error receiving request from 64.63.212.52 (SSL_ERROR_NO_CYPHER_OVERLAP: no common encryption algorithm(s)