Thread: Error after migrating project to production from developers preview


Permlink Replies: 12 - Pages: 1 - Last Post: Mar 6, 2008 8:09 PM Last Post By: kaenapoint
Susanne H.

Posts: 54
Registered: 03/05/06
Error after migrating project to production from developers preview
Posted: Oct 20, 2006 9:06 AM
Click to report abuse...   Click to reply to this thread Reply
importing and migrating the project seemed fine but i get the following error - any suggestions?

500 Internal Server Error
java.lang.NoSuchMethodError: oracle.adf.view.faces.context.AdfFacesContextFactory.createContext(Ljava/lang/Object;Ljava/lang/Object;)Loracle/adf/view/faces/context/AdfFacesContext; at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:187) at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:106) at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.1.0) .server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162) at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.1.0) .server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619) at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.1.0) .server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368) at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.1.0) .server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866) at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.1.0) .server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448) at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.1.0) .server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216) at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.1.0) .server.http.HttpRequestHandler.run(HttpRequestHandler.java:117) at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.1.0) .server.http.HttpRequestHandler.run(HttpRequestHandler.java:110) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239) at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880) at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.1.0) .util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298) at java.lang.Thread.run(Thread.java:595)

oc4j log also throws several errors besides this one:

WARNUNG: ComponentRule{faces-config/component} Merge(oracle.adf.CoreObjectMedia)
20.10.2006 18:04:05 com.sun.faces.config.rules.ComponentRule end
WARNUNG: ComponentRule{faces-config/component} Merge(oracle.adf.CorePoll)
20.10.2006 18:04:05 com.sun.faces.config.rules.ComponentRule end
WARNUNG: ComponentRule{faces-config/component} Merge(oracle.adf.Document)
20.10.2006 18:04:06 oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
20.10.2006 18:04:07 oracle.adf.share.security.providers.jazn.JAZNContextHelper setLoginConfigSystemProperty
FEIN: Setting JAZN Config property ...
20.10.2006 18:04:07 oracle.adf.share.security.providers.jazn.JAZNSecurityContext getUserPrincipal
INFO: ---- JAZNSecurityContext.getUserPrincipal(): NULL

any help would be appreciated
needless to say project runs fine in developers preview

Frank Nimphius

Posts: 19,790
Registered: 01/10/01
Re: Error after migrating project to production from developers preview
Posted: Oct 20, 2006 9:38 AM   in response to: Susanne H. in response to: Susanne H.
Click to report abuse...   Click to reply to this thread Reply
Hi,

try selecting the project and choosing Run--> Clean <project name> from the top level menu. Then rebuild the application using "make" or "rebuild" option.

Frank
Susanne H.

Posts: 54
Registered: 03/05/06
Re: Error after migrating project to production from developers preview
Posted: Oct 20, 2006 11:28 AM   in response to: Susanne H. in response to: Susanne H.
Click to report abuse...   Click to reply to this thread Reply
Hi Frank,

tried your tips but didnt work.

Maybe it has something to do with another warning

"WARNUNG: Code-Source D:\Temp\jdevstudio10131\jlib\adf-faces-impl.jar (von <classpath> in D:\Temp\jdevstudio10131\jdev\mywork\ProjectViewController\public_html) hat denselben Dateinamen, ist jedoch nicht identisch mit /D:/Temp/jdevstudio10131/jdev/mywork/Project/ViewController/public_html/WEB-INF/lib/adf-faces-impl.jar (from WEB-INF/lib/ directory in D:\Temp\jdevstudio10131\jdev\mywork\Project\ViewController\public_html\WEB-INF\lib). Wenn sie unterschiedliche Versionen derselben Klasse enthält, wird sie maskiert, weil letztere schon in dem Suchpfad von Loader current-workspace-app.web.Project-ViewController-webapp:0.0.0 sichtbar ist.
20.10.2006 20:21:29 com.sun.faces.config.rules.ConverterRule end
"
Didier Laurent

Posts: 611
Registered: 01/10/01
Re: Error after migrating project to production from developers preview
Posted: Oct 20, 2006 1:22 PM   in response to: Susanne H. in response to: Susanne H.
Click to report abuse...   Click to reply to this thread Reply
Susanne,

could you copy the file <JDeveloper_Home>/jsf-ri/ jsf-impl.jar to your project directory .../ViewController/public_html/WEB-INF/lib as explained in http://blogs.oracle.com/Didier/2006/10/20#a113

Can you run your migrated application then ?

Regards,

Didier.
Susanne H.

Posts: 54
Registered: 03/05/06
Re: Error after migrating project to production from developers preview
Posted: Oct 21, 2006 1:51 AM   in response to: Susanne H. in response to: Susanne H.
Click to report abuse...   Click to reply to this thread Reply
thanx for the reply didier, but the file version of jsf-impl.jar where the same.

I now replaced the adf-faces-impl.jar and problem solved.

Any particular reason i shouldnt replace that file?
Didier Laurent

Posts: 611
Registered: 01/10/01
Re: Error after migrating project to production from developers preview
Posted: Oct 21, 2006 2:57 AM   in response to: Susanne H. in response to: Susanne H.
Click to report abuse...   Click to reply to this thread Reply
Susanne,

in my test application, JDeveloper 10.1.3.1 (Build 3984) - the maintenance release now available from OTN - migrated adf-faces-impl.jar correctly and not jsf-impl.jar
This was also confirmed by the testings made for Bug 5607187
It was different in the preview release where none of the files in the .../ViewController/public_html/WEB-INF/lib directory were migrated.
So I'm surprised you had to copy adf-faces-impl.jar anf not jsf-impl.jar

But anyway, the error that you mentioned in your first forum thread is typically caused by an incompatibility between your WEB-INF/lib/*.JAR files.

As this can affect many customers, could give me more information about your environment:
1) what the exact version of JDeveloper 10.1.3.1 you are using (menu Help -> About ; please include the build) ?
2) what are the sizes of the files adf-faces-impl.jar anf jsf-impl.jar ?
In case you have a backup of your application prior to the migration, could you retest the migration of your application?
I'm interested in getting their sizes just after the migration.

Thanks,

Didier.
Susanne H.

Posts: 54
Registered: 03/05/06
Re: Error after migrating project to production from developers preview
Posted: Oct 21, 2006 5:19 AM   in response to: Susanne H. in response to: Susanne H.
Click to report abuse...   Click to reply to this thread Reply
Sure, no problem here are the results:

old environment:
jdeveloper 10.1.3.1.0.3914 aka developer preview

adf-faces-impl.jar (3.873.467 Bytes)
jsf-impl.jar (796.261 Bytes)

new environment:
jdeveloper 10.1.3.1.0.3984 aka production release

before migration --> see old environment

after migration:
adf-faces-impl.jar (3.873.467 Bytes)
jsf-impl.jar 777 KB (796.261 Bytes)

and not working - with Code-Source warning on
D:\oracle\jdevstudio10131prod\jlib\adf-faces-impl.jar

after i copied only the adf-faces-impl.jar (3.918.976 Bytes) from <jdevhome>\jlib to \ViewController\public_html\WEB-INF\lib everything works fine

And thanks again didier for your fast help - always good to know that there are people able to support that quick and competent - thanks a lot.
Didier Laurent

Posts: 611
Registered: 01/10/01
Re: Error after migrating project to production from developers preview
Posted: Oct 21, 2006 6:27 AM   in response to: Susanne H. in response to: Susanne H.
Click to report abuse...   Click to reply to this thread Reply
Thanks for the feedback Susanne. I'm happy I could help.

I migrated from JDeveloper 10.1.3.0 (Build 3673).
You migrated from JDeveloper 10.1.3.1 preview release (Build 3914).

This explains the difference.
I'll update my blog entry to copy both JAR files. I think this is the most easiest to solve the problem in a generic way, independently of the migration path (10.1.3.0 or 10.1.3.1 Build 3914).
I fear you won't be alone having this problem...

Thanks,

Didier.
Susanne H.

Posts: 54
Registered: 03/05/06
Re: Error after migrating project to production from developers preview
Posted: Oct 21, 2006 8:48 AM   in response to: Susanne H. in response to: Susanne H.
Click to report abuse...   Click to reply to this thread Reply
one other thing i mentioned:
there are errors in rendering the pages in the editor design view - an opened jspx page looks ok in jdeveloper preview but in production the tables are looking strange (almost see through an no vertical seperators between columns) and especially the menuitabs/commandmenuitems on a panelpage are looking really bad. (edges are filled with blue color)

and yes - blog update would be great ;)
Susanne H.

Posts: 54
Registered: 03/05/06
Re: Error after migrating project to production from developers preview
Posted: Oct 21, 2006 9:04 AM   in response to: Susanne H. in response to: Susanne H.
Click to report abuse...   Click to reply to this thread Reply
added a screenshot to show the rendering problem in the design view

http://img272.imageshack.us/my.php?image=oracle2yx1.jpg

needless to say that in a new jspx file with a fresh panelpage this error doesnt appear.

Well seems im stuck working with the developer preview.
Didier Laurent

Posts: 611
Registered: 01/10/01
Re: Error after migrating project to production from developers preview
Posted: Oct 21, 2006 9:40 AM   in response to: Susanne H. in response to: Susanne H.
Click to report abuse...   Click to reply to this thread Reply
Hi Susanne,

If you have a valid Support contract, could you create a Service Request in MetaLink and upload a testcase we could use to reproduce the problem ?
Please mention this discussion so that I get it assigned to me.

Regards,

Didier.
Susanne H.

Posts: 54
Registered: 03/05/06
Re: Error after migrating project to production from developers preview
Posted: Oct 24, 2006 1:02 AM   in response to: Susanne H. in response to: Susanne H.
Click to report abuse...   Click to reply to this thread Reply
problem solved - solution deleting "WEB-INF\temp\adf\styles\cache\oracle-desktop-10_1_3_1_0-en-ie-6-windows-s.css"

for further info see:
http://forums.oracle.com/forums/thread.jspa?threadID=436253
or
http://blogs.oracle.com/Didier/2006/10/23#a118

thx to didier and jan
kaenapoint

Posts: 17
Registered: 03/06/08
Re: Error after migrating project to production from developers preview
Posted: Mar 6, 2008 8:09 PM   in response to: Susanne H. in response to: Susanne H.
Click to report abuse...   Click to reply to this thread Reply
I got this error after I was curious as to what the "Go to page definition" right click option in the editor window was for. After noticing that the action left a page_def dir and an xml file in the WEB-INF dir I removed them and started getting this message. I had to check out a previous version and use that. I think you can get rid of this problem if you purge your technology scope and libraries in project properties then rebuild then re-add the libraries and technology scope and rebuild again. You might want to add the technology scope items one at a time to see if one of them breaks the app. I was not using ADF Faces libs originally and am not using them now. But if your app uses them then I'm not sure what you can do to get running.

Hope this helps.
Legend
Guru Guru : 2500 - 1000000 pts
Expert Expert : 1000 - 2499 pts
Pro Pro : 500 - 999 pts
Journeyman Journeyman : 200 - 499 pts
Newbie Newbie : 0 - 199 pts
Oracle ACE Director
Oracle ACE Member
Oracle Employee ACE
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums