MedRec Tutorial Step 12
When I try to do Step 12 of the MedRec tutorial, the "ant deploy.dev" command ends in a compilation failure. It fails to compile the class PhysBaseLookupDispatchAction, because of a reference to the class com.bea.medrec.controller.PhysicianSession. I cannot find this class anywhere, not even in the original zip file.
I don't think I missed a prerequisite step anywhere, except that I couldn't get the webservices tutorials (10 and 11) to work properly.
When I try to do Step 12 of the MedRec tutorial, the "ant deploy.dev" command ends in a compilation failure. It fails to compile the class PhysBaseLookupDispatchAction, because of a reference to the class com.bea.medrec.controller.PhysicianSession. I cannot find this class anywhere, not even in the original zip file.
I don't think I missed a prerequisite step anywhere, except that I couldn't get the webservices tutorials (10 and 11) to work properly.
Similar Messages
-
Med Rec medrec tutorial 10 deployments-- EJB Modules EJB is not shown
This note adds missing steps in the Med Rec (medrec) Tutorial 10
The tutorial shows how to use EJBGEN to generate EJB classes (incl java source) from .ejb files.
Unfortunately it is missing a few key details. These are described below.
Many thanks to Chris Wall for supplying the answers and hints.
Q: The tutorial includes deploying the manually generated physSessionEjb’s. After doing the step that generates the PhysSession*.java files, onefinds that when trying to deploy that there are no class files – nothing has been built. Are the class files supposed to be generated by the ejbgen step?
[Chris] No, EJBGen just generates the local and remote interfaces and descriptors only. An additional step should be added to explain how to build the newly generated EJBs. I believe you are correct in calling “src/physicianEar$ ant –f build.xml build”.
Q: Manually built the class files using ‘ant –f build.xml build’ in the physicianEar src dir – but that failed in the acc.split.dir step with class not found /org/apache/struts/action/ActionForm.
Obviously did not get the struts jars on the classpath. But as much of the build as completed did include creating the class files.
[Chris] Yes, it looks like struts.jar is not in the classpath. Is this the “build.split.dir” or “appc.split.dir” target? In either case, wlcompile and wlappc should recognized all libs in "${app-inf.dest.lib}" and append them to the compile/appc classpath automatically. The libs should have been copied during the “prepare” target. Can you make sure that struts.jar exists in c:/medrec_tutorial/build/physicianEar/APP-INF/lib? If not, re-run the target with verbose: “src/physicianEar$ ant -verbose -f build.xml build”, and make sure that the libs are copied in the “prepare” target.
Q: When doing the deploy step, we get no errors but on the console window and do not see the tutorial_deployment item under DeploymentsàEJB Modules. There is something under Deployments-->Applications --> tutorial_deployment. It appears the deploy failed since there’s nothing under Deployments --> EJB Modules, and what is there is ‘left over’ from deploying the jar (the ear?) that contains the stuff deployed by the deploy step at the start of tutorial 10.
[Chris] Once the build is successful, you must deploy the EAR. This is done by executing : “src/physicianEar$ ant -f build.xml redeploy.physician.ear”. Again, a step that was left out. Yes, you should be looking at Deployments--> Applications--> tutorial_deployment. So, to summarize: generated the local and remote and descriptors for the EJB, compile the EJB and package the EAR, deploy the EAR, and then view the deployment in the console.This note adds missing steps in the Med Rec (medrec) Tutorial 10
The tutorial shows how to use EJBGEN to generate EJB classes (incl java source) from .ejb files.
Unfortunately it is missing a few key details. These are described below.
Many thanks to Chris Wall for supplying the answers and hints.
Q: The tutorial includes deploying the manually generated physSessionEjb’s. After doing the step that generates the PhysSession*.java files, onefinds that when trying to deploy that there are no class files – nothing has been built. Are the class files supposed to be generated by the ejbgen step?
[Chris] No, EJBGen just generates the local and remote interfaces and descriptors only. An additional step should be added to explain how to build the newly generated EJBs. I believe you are correct in calling “src/physicianEar$ ant –f build.xml build”.
Q: Manually built the class files using ‘ant –f build.xml build’ in the physicianEar src dir – but that failed in the acc.split.dir step with class not found /org/apache/struts/action/ActionForm.
Obviously did not get the struts jars on the classpath. But as much of the build as completed did include creating the class files.
[Chris] Yes, it looks like struts.jar is not in the classpath. Is this the “build.split.dir” or “appc.split.dir” target? In either case, wlcompile and wlappc should recognized all libs in "${app-inf.dest.lib}" and append them to the compile/appc classpath automatically. The libs should have been copied during the “prepare” target. Can you make sure that struts.jar exists in c:/medrec_tutorial/build/physicianEar/APP-INF/lib? If not, re-run the target with verbose: “src/physicianEar$ ant -verbose -f build.xml build”, and make sure that the libs are copied in the “prepare” target.
Q: When doing the deploy step, we get no errors but on the console window and do not see the tutorial_deployment item under DeploymentsàEJB Modules. There is something under Deployments-->Applications --> tutorial_deployment. It appears the deploy failed since there’s nothing under Deployments --> EJB Modules, and what is there is ‘left over’ from deploying the jar (the ear?) that contains the stuff deployed by the deploy step at the start of tutorial 10.
[Chris] Once the build is successful, you must deploy the EAR. This is done by executing : “src/physicianEar$ ant -f build.xml redeploy.physician.ear”. Again, a step that was left out. Yes, you should be looking at Deployments--> Applications--> tutorial_deployment. So, to summarize: generated the local and remote and descriptors for the EJB, compile the EJB and package the EAR, deploy the EAR, and then view the deployment in the console. -
Can't compile the medrec tutorial
I can't build the medrec tutorial. Following the Tutorial 10: Exposing a Stateless
Session EJB as a Web Service, I execute the command "ant prepare build.split.dir".
But the medrecEar
can't be compiled correctly.
There are primarily two kinds of errors/warnings:
1)some classes, such as AdminSession can't be resolved;
2)EJB Local Reference doesn't have a JNDI name.
Who could help me. Thank you.When you compile through J2EE it should give no apache type errors. You must of included apache xml cocoon jar files in the CLASSPATH as well later put the j2ee.jar. However j2ee.jar has XML libraries, no need to include other thrid party xml libaries.
Other words its picking your thrid party xml jar files first and using that instead of your j2ee.jar xml libaries.
Cheers
Abraham Khalil -
Fix on MedRec Tutorial 10 will break tutorial 11
According to Chris Wall, tutorial 10 of MedRec needs the following fix:
1.) Add the following jars to your classpath. If these jars do not exist,
compile and create them thru the src/common build script.
C:\medrec_tutorial\build\physicianEar\APP-INF\lib\log4j-1.2.8.jar;
C:\medrec_tutorial\build\physicianEar\APP-INF\lib\value.jar;
C:\medrec_tutorial\build\physicianEar\APP-INF\lib\webServicesEjb_client.jar;
C:\medrec_tutorial\build\physicianEar\APP-INF\lib\utils.jar
2.) EJBGen 2.15 contains the -descriptorDir feature; 8.1 GA contains EJBGen
2.13beta. Please remove this flag from your cmdline. You will also need to
manually create the META-INF directory and copy the resultant descriptors to
this directory.
==============================================
Ok, I did that, and it worked. But when I did tutorial 11 Step 2, it gave me
this err msg:
C:\medrec_tutorial\src\medrecEar>ant -f my_webserv.xml
Buildfile: my_webserv.xml
build.ws:
[autotype] Autotyping for javaComponents com.bea.medrec.webservices.MedRecWebServices
[autotype] java.lang.NoSuchMethodException: weblogic.webservice.context.WebServiceContext.<init>()
[autotype] at java.lang.Class.getConstructor0(Class.java:1769)
[autotype] at java.lang.Class.getConstructor(Class.java:1002)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ensureValidClass(JavaInspector.java:1049)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fillDescriptor(JavaInspector.java:174)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.getDescriptor(JavaInspector.java:139)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.createDescriptorForClass(JavaInspector.java:106)
[autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:106)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:89)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:102)
[autotype] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:180)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.doTypeMapping(Java2SchemaImpl.java:267)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.run(Java2SchemaImpl.java:167)
[autotype] at weblogic.webservice.tools.build.internal.Component2SchemaImpl.run(Component2SchemaImpl.java:151)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.doComponent2Schema(JavaSchema.java:365)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.execute(JavaSchema.java:172)
[autotype] at org.apache.tools.ant.Task.perform(Task.java:317)
[autotype] at org.apache.tools.ant.Target.execute(Target.java:309)
[autotype] at org.apache.tools.ant.Target.performTasks(Target.java:334)
[autotype] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[autotype] at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
[autotype] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[autotype] at org.apache.tools.ant.Main.start(Main.java:196)
[autotype] at org.apache.tools.ant.Main.main(Main.java:235)
[autotype] --------------- nested within: ------------------
[autotype] weblogic.xml.schema.binding.BindingException: No default constructor
was found for class weblogic.webservice.context.WebServiceContext loa
ded from file:/C:/bea/weblogic81/server/lib/webservices.jar!/weblogic/webservice/context/WebServiceContext.class.
All classes that will be serialized
or deserialized must be non-interface, non-abstract classes that provide a public
default constructor - with nested exception:
[autotype] [java.lang.NoSuchMethodException: weblogic.webservice.context.WebServiceContext.<init>()]
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ensureValidClass(JavaInspector.java:1051)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fillDescriptor(JavaInspector.java:174)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.getDescriptor(JavaInspector.java:139)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.createDescriptorForClass(JavaInspector.java:106)
[autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:106)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:89)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:102)
[autotype] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:180)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.doTypeMapping(Java2SchemaImpl.java:267)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.run(Java2SchemaImpl.java:167)
[autotype] at weblogic.webservice.tools.build.internal.Component2SchemaImpl.run(Component2SchemaImpl.java:151)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.doComponent2Schema(JavaSchema.java:365)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.execute(JavaSchema.java:172)
[autotype] at org.apache.tools.ant.Task.perform(Task.java:317)
[autotype] at org.apache.tools.ant.Target.execute(Target.java:309)
[autotype] at org.apache.tools.ant.Target.performTasks(Target.java:334)
[autotype] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[autotype] at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
[autotype] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[autotype] at org.apache.tools.ant.Main.start(Main.java:196)
[autotype] at org.apache.tools.ant.Main.main(Main.java:235)
BUILD FAILED
file:C:/medrec_tutorial/src/medrecEar/my_webserv.xml:12: weblogic.webservice.tools.build.WSBuildException:
Failed to do type mapping - with nested exc
eption:
[weblogic.xml.schema.binding.BindingException: No default constructor was found
for class weblogic.webservice.context.WebServiceContext loaded from fi
le:/C:/bea/weblogic81/server/lib/webservices.jar!/weblogic/webservice/context/WebServiceContext.class.
All classes that will be serialized or deseria
lized must be non-interface, non-abstract classes that provide a public default
constructor - with nested exception:
[java.lang.NoSuchMethodException: weblogic.webservice.context.WebServiceContext.<init>()]]
Total time: 4 seconds
====================================
The classpath used in Tutorial 11 was the updated one from Tutorial 10. But it
doesn't work. But when I changed the classpath back to the old one, it worked.
Can you explain what is happening? Thank you.
Kelvin HungHey Kelvin. Can you pass along your classpath? Thanks.
"Kelvin Hung" <[email protected]> wrote:
>
According to Chris Wall, tutorial 10 of MedRec needs the following fix:
1.) Add the following jars to your classpath. If these jars do not exist,
compile and create them thru the src/common build script.
C:\medrec_tutorial\build\physicianEar\APP-INF\lib\log4j-1.2.8.jar;
C:\medrec_tutorial\build\physicianEar\APP-INF\lib\value.jar;
C:\medrec_tutorial\build\physicianEar\APP-INF\lib\webServicesEjb_client.jar;
C:\medrec_tutorial\build\physicianEar\APP-INF\lib\utils.jar
2.) EJBGen 2.15 contains the -descriptorDir feature; 8.1 GA contains
EJBGen
2.13beta. Please remove this flag from your cmdline. You will also
need to
manually create the META-INF directory and copy the resultant descriptors
to
this directory.
==============================================
Ok, I did that, and it worked. But when I did tutorial 11 Step 2, it
gave me
this err msg:
C:\medrec_tutorial\src\medrecEar>ant -f my_webserv.xml
Buildfile: my_webserv.xml
build.ws:
[autotype] Autotyping for javaComponents com.bea.medrec.webservices.MedRecWebServices
[autotype] java.lang.NoSuchMethodException: weblogic.webservice.context.WebServiceContext.<init>()
[autotype] at java.lang.Class.getConstructor0(Class.java:1769)
[autotype] at java.lang.Class.getConstructor(Class.java:1002)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ensureValidClass(JavaInspector.java:1049)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fillDescriptor(JavaInspector.java:174)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.getDescriptor(JavaInspector.java:139)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.createDescriptorForClass(JavaInspector.java:106)
[autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:106)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:89)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:102)
[autotype] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:180)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.doTypeMapping(Java2SchemaImpl.java:267)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.run(Java2SchemaImpl.java:167)
[autotype] at weblogic.webservice.tools.build.internal.Component2SchemaImpl.run(Component2SchemaImpl.java:151)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.doComponent2Schema(JavaSchema.java:365)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.execute(JavaSchema.java:172)
[autotype] at org.apache.tools.ant.Task.perform(Task.java:317)
[autotype] at org.apache.tools.ant.Target.execute(Target.java:309)
[autotype] at org.apache.tools.ant.Target.performTasks(Target.java:334)
[autotype] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[autotype] at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
[autotype] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[autotype] at org.apache.tools.ant.Main.start(Main.java:196)
[autotype] at org.apache.tools.ant.Main.main(Main.java:235)
[autotype] --------------- nested within: ------------------
[autotype] weblogic.xml.schema.binding.BindingException: No default
constructor
was found for class weblogic.webservice.context.WebServiceContext loa
ded from file:/C:/bea/weblogic81/server/lib/webservices.jar!/weblogic/webservice/context/WebServiceContext.class.
All classes that will be serialized
or deserialized must be non-interface, non-abstract classes that provide
a public
default constructor - with nested exception:
[autotype] [java.lang.NoSuchMethodException: weblogic.webservice.context.WebServiceContext.<init>()]
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ensureValidClass(JavaInspector.java:1051)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fillDescriptor(JavaInspector.java:174)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.getDescriptor(JavaInspector.java:139)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.createDescriptorForClass(JavaInspector.java:106)
[autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:106)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:89)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:102)
[autotype] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:180)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.doTypeMapping(Java2SchemaImpl.java:267)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.run(Java2SchemaImpl.java:167)
[autotype] at weblogic.webservice.tools.build.internal.Component2SchemaImpl.run(Component2SchemaImpl.java:151)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.doComponent2Schema(JavaSchema.java:365)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.execute(JavaSchema.java:172)
[autotype] at org.apache.tools.ant.Task.perform(Task.java:317)
[autotype] at org.apache.tools.ant.Target.execute(Target.java:309)
[autotype] at org.apache.tools.ant.Target.performTasks(Target.java:334)
[autotype] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[autotype] at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
[autotype] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[autotype] at org.apache.tools.ant.Main.start(Main.java:196)
[autotype] at org.apache.tools.ant.Main.main(Main.java:235)
BUILD FAILED
file:C:/medrec_tutorial/src/medrecEar/my_webserv.xml:12: weblogic.webservice.tools.build.WSBuildException:
Failed to do type mapping - with nested exc
eption:
[weblogic.xml.schema.binding.BindingException: No default constructor
was found
for class weblogic.webservice.context.WebServiceContext loaded from fi
le:/C:/bea/weblogic81/server/lib/webservices.jar!/weblogic/webservice/context/WebServiceContext.class.
All classes that will be serialized or deseria
lized must be non-interface, non-abstract classes that provide a public
default
constructor - with nested exception:
[java.lang.NoSuchMethodException: weblogic.webservice.context.WebServiceContext.<init>()]]
Total time: 4 seconds
====================================
The classpath used in Tutorial 11 was the updated one from Tutorial 10.
But it
doesn't work. But when I changed the classpath back to the old one,
it worked.
Can you explain what is happening? Thank you.
Kelvin Hung -
Hi ,
I am facing problems with the Med rec tutorial 10 , the output of ejbgen is
as follows, please help
E:\Work\JAVAPROJECTS\medrec_tutorial\src\physicianEar\physSessionEjbs\com\be
a\medrec\controller>java weblogic.tools.ejbgen.EJ
BGen PhysicianSessionEJB.java -d
E:\work\javaprojects\medrec_tutorial\build\physicianEar\physSessionEjbs -des
criptorDir E:\wo
rk\javaprojects\medrec_tutorial\build\physicianEar\physSessionEjbs\META-INF
Loading source file PhysicianSessionEJB.java...
Constructing Javadoc information...
PhysicianSessionEJB.java:3: package com.bea.medrec.utils does not exist
import com.bea.medrec.utils.MedRecUtils;
^
PhysicianSessionEJB.java:4: package com.bea.medrec.value does not exist
import com.bea.medrec.value.Record;
^
PhysicianSessionEJB.java:5: package com.bea.medrec.value does not exist
import com.bea.medrec.value.RecordsSummary;
^
PhysicianSessionEJB.java:6: package com.bea.medrec.value does not exist
import com.bea.medrec.value.Search;
^
PhysicianSessionEJB.java:7: package com.bea.medrec.webservices does not
exist
import com.bea.medrec.webservices.*;
^
PhysicianSessionEJB.java:14: package org.apache.log4j does not exist
import org.apache.log4j.Logger;
^
PhysicianSessionEJB.java:37: cannot resolve symbol
symbol : class Logger
location: class com.bea.medrec.controller.PhysicianSessionEJB
private static Logger logger =
^
PhysicianSessionEJB.java:42: cannot resolve symbol
symbol : class MedRecWebServicesPort
location: class com.bea.medrec.controller.PhysicianSessionEJB
private MedRecWebServicesPort port;
^
PhysicianSessionEJB.java:76: cannot resolve symbol
symbol : class Record
location: class com.bea.medrec.controller.PhysicianSessionEJB
public void addRecord(Record pRecord)
^
PhysicianSessionEJB.java:111: cannot resolve symbol
symbol : class Record
location: class com.bea.medrec.controller.PhysicianSessionEJB
public Record getRecord(Integer pId) throws RemoteException
^
PhysicianSessionEJB.java:152: cannot resolve symbol
symbol : class RecordsSummary
location: class com.bea.medrec.controller.PhysicianSessionEJB
public RecordsSummary getRecordsSummary(Integer pId)
^
PhysicianSessionEJB.java:192: cannot resolve symbol
symbol : class Search
location: class com.bea.medrec.controller.PhysicianSessionEJB
public Collection searchPatients(Search pSearch) throws RemoteException
^
PhysicianSessionEJB.java:295: cannot resolve symbol
symbol : class MedRecWebServicesPort
location: class com.bea.medrec.controller.PhysicianSessionEJB
private MedRecWebServicesPort getMedRecWebServicesPort()
^
EJBGen 2.13beta
Creating
E:\work\javaprojects\medrec_tutorial\build\physicianEar\physSessionEjbs\com\
bea\medrec\controller\PhysicianSessi
onHome.java
Creating
E:\work\javaprojects\medrec_tutorial\build\physicianEar\physSessionEjbs\com\
bea\medrec\controller\PhysicianSessi
on.java
javadoc: In doclet class weblogic.tools.ejbgen.EJBGen, method start has
thrown an exception java.lang.reflect.InvocationTarg
etException
weblogic.tools.ejbgen.EJBGenException: Error: Couldn't create directory
"E:\work\javaprojects\medrec_tutorial\build\physicia
nEar\physSessionEjbs\E:\work\javaprojects\medrec_tutorial\build\physicianEar
\physSessionEjbs\META-INF\"
at weblogic.tools.ejbgen.Utils.error(Utils.java:171)
at weblogic.tools.ejbgen.Utils.errorNoLineNumber(Utils.java:176)
at weblogic.tools.ejbgen.Utils.createDir(Utils.java:438)
at weblogic.tools.ejbgen.Utils.getPrintWriter(Utils.java:375)
at
weblogic.tools.ejbgen.DDGenerator.generateCode(DDGenerator.java:28)
at weblogic.tools.ejbgen.EJBGen.start(EJBGen.java:330)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:193)
at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:92)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:301)
at com.sun.tools.javadoc.Start.begin(Start.java:120)
at com.sun.tools.javadoc.Main.execute(Main.java:41)
at com.sun.tools.javadoc.Main.main(Main.java:31)
at weblogic.tools.ejbgen.EJBGen.main(EJBGen.java:685)
1 error
13 warnings
Thanks & regards,
Amit MawkinPlease refer to reply post to topic "Med Rec - Tutorial 10, Procedure 2,
Step 4". Thank you.
"Weblogic" <[email protected]> wrote in message
news:[email protected]...
Hi ,
I am facing problems with the Med rec tutorial 10 , the output of ejbgenis
as follows, please help
E:\Work\JAVAPROJECTS\medrec_tutorial\src\physicianEar\physSessionEjbs\com\be
a\medrec\controller>java weblogic.tools.ejbgen.EJ
BGen PhysicianSessionEJB.java -d
E:\work\javaprojects\medrec_tutorial\build\physicianEar\physSessionEjbs -des
criptorDir E:\wo
rk\javaprojects\medrec_tutorial\build\physicianEar\physSessionEjbs\META-INF
Loading source file PhysicianSessionEJB.java...
Constructing Javadoc information...
PhysicianSessionEJB.java:3: package com.bea.medrec.utils does not exist
import com.bea.medrec.utils.MedRecUtils;
^
PhysicianSessionEJB.java:4: package com.bea.medrec.value does not exist
import com.bea.medrec.value.Record;
^
PhysicianSessionEJB.java:5: package com.bea.medrec.value does not exist
import com.bea.medrec.value.RecordsSummary;
^
PhysicianSessionEJB.java:6: package com.bea.medrec.value does not exist
import com.bea.medrec.value.Search;
^
PhysicianSessionEJB.java:7: package com.bea.medrec.webservices does not
exist
import com.bea.medrec.webservices.*;
^
PhysicianSessionEJB.java:14: package org.apache.log4j does not exist
import org.apache.log4j.Logger;
^
PhysicianSessionEJB.java:37: cannot resolve symbol
symbol : class Logger
location: class com.bea.medrec.controller.PhysicianSessionEJB
private static Logger logger =
^
PhysicianSessionEJB.java:42: cannot resolve symbol
symbol : class MedRecWebServicesPort
location: class com.bea.medrec.controller.PhysicianSessionEJB
private MedRecWebServicesPort port;
^
PhysicianSessionEJB.java:76: cannot resolve symbol
symbol : class Record
location: class com.bea.medrec.controller.PhysicianSessionEJB
public void addRecord(Record pRecord)
^
PhysicianSessionEJB.java:111: cannot resolve symbol
symbol : class Record
location: class com.bea.medrec.controller.PhysicianSessionEJB
public Record getRecord(Integer pId) throws RemoteException
^
PhysicianSessionEJB.java:152: cannot resolve symbol
symbol : class RecordsSummary
location: class com.bea.medrec.controller.PhysicianSessionEJB
public RecordsSummary getRecordsSummary(Integer pId)
^
PhysicianSessionEJB.java:192: cannot resolve symbol
symbol : class Search
location: class com.bea.medrec.controller.PhysicianSessionEJB
public Collection searchPatients(Search pSearch) throws RemoteException
^
PhysicianSessionEJB.java:295: cannot resolve symbol
symbol : class MedRecWebServicesPort
location: class com.bea.medrec.controller.PhysicianSessionEJB
private MedRecWebServicesPort getMedRecWebServicesPort()
^
EJBGen 2.13beta
Creating
E:\work\javaprojects\medrec_tutorial\build\physicianEar\physSessionEjbs\com\
bea\medrec\controller\PhysicianSessi
onHome.java
Creating
E:\work\javaprojects\medrec_tutorial\build\physicianEar\physSessionEjbs\com\
bea\medrec\controller\PhysicianSessi
on.java
javadoc: In doclet class weblogic.tools.ejbgen.EJBGen, method start has
thrown an exception java.lang.reflect.InvocationTarg
etException
weblogic.tools.ejbgen.EJBGenException: Error: Couldn't create directory
"E:\work\javaprojects\medrec_tutorial\build\physicia
nEar\physSessionEjbs\E:\work\javaprojects\medrec_tutorial\build\physicianEar
\physSessionEjbs\META-INF\"
at weblogic.tools.ejbgen.Utils.error(Utils.java:171)
at weblogic.tools.ejbgen.Utils.errorNoLineNumber(Utils.java:176)
at weblogic.tools.ejbgen.Utils.createDir(Utils.java:438)
at weblogic.tools.ejbgen.Utils.getPrintWriter(Utils.java:375)
at
weblogic.tools.ejbgen.DDGenerator.generateCode(DDGenerator.java:28)
at weblogic.tools.ejbgen.EJBGen.start(EJBGen.java:330)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:193)
atcom.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:92)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:301)
at com.sun.tools.javadoc.Start.begin(Start.java:120)
at com.sun.tools.javadoc.Main.execute(Main.java:41)
at com.sun.tools.javadoc.Main.main(Main.java:31)
at weblogic.tools.ejbgen.EJBGen.main(EJBGen.java:685)
1 error
13 warnings
Thanks & regards,
Amit Mawkin -
Hi
I'm dwelling with SCM and JDeveloper 9.0.5.1. for sometime now and can't manage to put both of them working together!!! Can someone tell where I can find a step by step tutorial on this for the appropriate JDeveloper version? or something that might help?
thanks in advanced
VitorDid you try the online help:
http://helponline.oracle.com/jdeveloper/help/state/content/navSetId.jdeveloper/navId.4/vtTopicFile.jdeveloper%7Cusing_support_for_tbd%7Cscm_p_settingupscm%7Ehtml/ -
SSIS - Make a "dynamic" database connection tutorial (step-by-step) ?
I want to make one connection ONLY to loop over a list of servers. This connection should be able to connect to databases located on different servers ie different IP addresses. After connecting to a database, it should run some SQL code. The result set
of this code should be transferred to a central database. After that, it should do the same for another server.
Can someone give me a step by step tutorial to do this ? I want hand holding/spoon feeding tutorial because no tutorial on the net worked for me so far.
Tutorials i tried , but did not work -
http://www.rafael-salas.com/2010/01/ssis-loop-through-multiple-database.html
http://www.codeproject.com/Articles/14341/Using-the-Foreach-ADO-Enumerator-in-SSIS
and many others which i cannot even remember. NONE of them are step by step. I have also not found a SINGLE book which covers this. All books only loop through files, but not through remote databases.
I need your help.
ThanksPlease see if these help -
http://www.sanssql.com/2011/08/looping-through-sql-servers-using-ssis.html
https://www.simple-talk.com/sql/ssis/consolidating-sql-server-error-logs-from-multiple-instances-using-ssis/
http://sql-ution.com/dba-repository-create-the-server-list/
- Aalam | (Blog)
1st one not good. Many steps are missing. Cannot understand than one. Will try the others also. -
Can we create a Simulation tutorial steps from a Video in HTML5
Hi Everyone,
I want to create a tutorial something like a simulation by using the video. And the big thing is that it has to be in html5 format. I have one video in MP4 format from which I have to create the tutorial.The video is just a screen recording of some dashboard and the client wants to make it like a tour tutorial by giving them options to choose help and other features. the output needed by the client should be in exe format. When the person will click on the exe icon, the first welcome screen will appear. In that screen, there will be options to choose, eg - "Press F1 to take help", Press "A" to show notes of that particular screen, etc.
Its like a full control on the video in which the user will get interativity and learning of the dashboard. Lets say, we are planning to provide a highlight feature in simulation. In video, the user will see the highlight feature on some tab. And on clicking that tab, that will take him to the next screen of the dasboard.
I am curious to do this thing but dont have the expertise to do. Can anybody help me out in this please.
Regards
Vikas SharmaHi
You cannot use an exe file inside a html5 page, (or any other) on the web as the file must be downloaded for the user to install as a program.
There are a number of possible solutions, and they all involve using css3 and/or JavaScript, (canvas, css animations, create a web-app using html5/css/javascript and server side code).
PZ -
Why is there no EJB modules generated in chapter 10 of Medrec Tutorial?
Hi,
I am going through the sample Medical Records Development Tutorial.
In Chapter 10,after going through the Procedure 3..I couldn't see any EJB Module being deployed at http://localhost:7101/console/Deployments/EJB Modules
.Any clue what is going wrong??
Thanks in Advance
NatashaNatasha: Are the EJBs being deployed within an EAR? If so, check under
deployed Applications in the console.
"Natasha" <[email protected]> wrote in message
news:40a908dd$[email protected]..
Hi,
I am going through the sample Medical Records Development Tutorial.
In Chapter 10,after going through the Procedure 3..I couldn't see any EJBModule being deployed at http://localhost:7101/console/Deployments/EJB
Modules
.Any clue what is going wrong??
Thanks in Advance
Natasha -
Without adminWebApp.zip,I can't practice the MedRec tutorial 19.
Help me, experts.
Thank you in advance.
Answer me,quickly,ok?I can't reach the link you gave, which seems not
to exist in the edocs website.
By the way, could you please take a look at the
the message 405. I can't finish that tutorial either,
"Securing Enterprise JavaBean (EJB) Resources Using the Administration Console".
Thanks a lot.
"Jen Hocko" <[email protected]> wrote:
>
"Paul Green" <[email protected]> wrote:
I can't find the "AdminWebApp Web Application" (adminWebApp.zip )
on the dev2dev Web site. Is there any alternative way to do that
or where can I find the file adminWebApp.zip ? Thank you.Hi Paul,
I'm sorry you are having problems with tutorial 18. I have researched
the issue
with the missing adminWebApp.zip file with the dev2dev folks and my records.
I
have discovered that the latest version of tutorial 18 on edocs (http://edocs.bea.com/wls/docs81/medrec_tutorials/ejb_security.html)
no longer makes use of that file. Perhaps your browser is caching an
old version
of this tutorial? Please let me know if a browser refresh does not solve
the problem.
Thanks,
Jen
Sr. Technical Writer
BEA Systems, Inc. -
Medrec tutorial, lesson7 compile failed
Hi.
I'm running the medrec turorial and had a couple of issues I managed to solve looking at these pages but I still have one left.
latest compile error is
C:\medrec_tutorial\build\physicianEar\physSessionEjbs\com\bea\medrec\controller\PhysicianSession.java:24: package org.apache.log4j does not exist
[wlcompile] import org.apache.log4j.Logger;
and I can't find any trace of this package though I have weblogic 8.1 and the medrec downloaded from BEA.
Any idea where it should be?org.apache.log4j.Logger is part of the log4j package.
wlcompile adds jars and classes located in <destination build ear root>/APP-INF/lib and <destination build EAR's root>/APP-INF/classes, respectivity, to the compiler's classpath. Make sure log4j.jar (or similar) is located in the EAR's lib directory. -
I see a lot of material in the forums, however I get lost very quickly. I cant seem to identify where square one is.
What I am trying to do:
I have an intern currently gathering lots of data that has four dimmensions. He is moving a magnet in 3-D space around a single point. He then records a reading that reflects the effect of the Magnet on that point. So as I move around In 3D space I want to be able to interpret what the readings were at that point.
My Idea is to plot in 3D space all the positions he took magnetic readings and then color the dot based on a reading. I figure I would only need 5 to 10 colors to interpret the data.
Question:
How do I do that? There is a good post by Ben that illustrates how to graph 4-D data in this manner
http://forums.ni.com/t5/LabVIEW/Multiple-polar-plots-into-a-3d-plot/m-p/269435?jump=true
However, I cant figure out where to start. I go to look for the 3D graph to place on the front panel, but where I am placing an Indicator with an assitant subvi on the block diagram, he is placing a Control.
VS
How do I place that on the front panel? I suppose I could just copy it from the help file, but that doesnt aid me into understanding what is going on.
Where do I go to get basic information on how to understand and accomplish my task? I figure you guys can help me with step 1, using some of the other information around I can finish the task.
I looked up in a book where to start and I quote " 3D graphs can be more complicated than the simple charts and graphs you've worked with -- they are really an advanced topic, so we won't say more about them here; " No kidding?! To add insult to injury the help files are not very clear. So I turn to the community.I had to chuckle as I went about it a similar way. Bottle of Jack, and some Blues and just pounded out a solution. I ended up using the newer controls so I could maintain support in the future. I ended up settling on a solution were I binned my data into 5 groups and sorted it into 5 different plots. I then just plotted everything to the same 3d scatter function.
It's dirty and a little jury rigged, but it gets the job done.
I posted my solution and some dummy data.
Its a learning process, and there are a lot of improvements I would love to make. However, I will learn them as I go. For example, I would like to insert a 3d object as a reference and then plot the data around it. It would help improve legibility and give a sense of reference to management. Lets face it, I know what it means, but I need something pointy hair boss friendly. I would also like to create a legend that decodes the color map. Additionaly, I would like to find a more efficient way of doing this task so I can scale it up.
I attached my solution with some dummy data. My task deals with a colorized volume and not a surface, so it may be a little hard to read.
Attachments:
3d scatter.vi 36 KB
3d scatter lane change.vi 29 KB
COORDINATES.XLS 10 KB -
Codesign tutorial - step by step (I can get it to work)
Trying to upload an ipa to the app store and it said it wasn't signed.
The exact vague error is:
Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate.
So the signature should be valid as I just remade the certificate and PP. Not sure what a disallowed entitlement is. It was signed with an iPhone Distribution Certificate.
Do I need to run codesign on it? How do I get to the app and what do I type in Terminal to get it verified?
I am on the edge of giving up making apps for Apple altogether. It literally takes longer to upload it than to make some of them.
Thanks.Nevermind.
It means simply don't move anything once it is created or downloaded.
Leave the development certificate wherever it downloads to.
Leave the p12 wherever it gets created.
Leave the PP wherever it downloads to.
That was all it took for me in the end. I wasted 2 weeks zipping unzipping running codesign on apps and ipas.
It takes me longer to upload an app to Apple than it does to create one and submitted it to Google and Amazon. -
Tutorial Step 8 - Compile and run Client
I have been unsuccessful in getting the client to run from the command prompt.
I have modified the compile and run bat files as follows"
COMPILE.BAT
c:\bea\jdk131_03\bin\javac -classpath ../../WEB-INF/lib/Investigate.jar;../../WEB-INF/lib/webserviceclient.jar;c:\bea\weblogic700\server\lib\webserviceclient.jar
*.java
RUN.BAT
c:\bea\jdk131_03\bin\java -cp .;../../WEB-INF/lib/Investigate.jar;c:\bea\weblogic700\server\lib\webserviceclient.jar;
InvestigClient
What am I missing????
===============
C:\bea\weblogic700\samples\workshop\applications\samples\tutorials\java_client>c
:\bea\jdk131_03\bin\java -cp .;../../WEB-INF/lib/Investigate.jar;c:\bea\weblogic
700\server\lib\webserviceclient.jar; InvestigClient
Exception in thread "main" java.lang.NoClassDefFoundError: InvestigClient (wrong
name: tutorials/java_client/InvestigClient)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
6)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)Craig,
The error suggests the absence of the class file 'InvestigClient.class' in
the CLASSPATH.
Could you please confirm that you were able to compile the client correctly.
Please check that you have the Investig.class file in the
tutorials\java_client directory.
I was able to run the client successfully here.
Regards,
Anurag
Workshop Support
"Craig Hall" <[email protected]> wrote in message
news:[email protected]...
>
I have been unsuccessful in getting the client to run from the commandprompt.
I have modified the compile and run bat files as follows"
COMPILE.BAT
c:\bea\jdk131_03\bin\javac -classpath../../WEB-INF/lib/Investigate.jar;../../WEB-INF/lib/webserviceclient.jar;c:\
bea\weblogic700\server\lib\webserviceclient.jar
*.java
RUN.BAT
c:\bea\jdk131_03\bin\java -cp.;../../WEB-INF/lib/Investigate.jar;c:\bea\weblogic700\server\lib\webservice
client.jar;
InvestigClient
What am I missing????
===============
C:\bea\weblogic700\samples\workshop\applications\samples\tutorials\java_clie
nt>c
:\bea\jdk131_03\bin\java -cp.;../../WEB-INF/lib/Investigate.jar;c:\bea\weblogic
700\server\lib\webserviceclient.jar; InvestigClient
Exception in thread "main" java.lang.NoClassDefFoundError: InvestigClient(wrong
name: tutorials/java_client/InvestigClient)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
atjava.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
6)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310) -
I forgot to mention that I'm using WebLogic Server 8.1 SP1 version.
ThanksHey Alex S. Can you post your classpath? Thanks.
Maybe you are looking for
-
Can we load data in variable screen from flat file?
Hello all, One of my user once asked me she needs to run a report for some employees, i said you can just type that in employee varaible input box. She said I need to run the report and I need it for 120 employees, she has the employee numbers in exc
-
How come someone elses Apple ID Shows up when I try to update my apps
How come someone elses Apple ID Shows up when I try to update my apps? It's Grey and won't let me change it. I've signed out and resigned in, but this very odd email address always shows up as my apple ID. Please help if you can, I just need to updat
-
How do i transfer music from one ipod to another using itunes
how do i transfer music from one ipod to another using itunes
-
Guru The scenario is we are using invoice document KR and a custom invoice document named LM which ia a copy of document type KR . In the KSB1 report for cost center Name of vendor and Vendor number are appearing for invoice posted through docu
-
hi.. i'm installing arch linux.. but when i want to install grub appears this message Error 22: No such partition i've try to use grub : find /boot/grub/stage1 (hd0,5) root (hd0,5) setup (hd0) but after appears: Checking if "/boot/grub/stage1" exists