Andy Kay

Greenhorn
+ Follow
since Oct 26, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Andy Kay

Sachin,

Are you using logkit jar in your application?

Andy
14 years ago
Sachin,

Did you trying adding log4 jar file to server classpath?

Andy
14 years ago
One good option you can think of creating a streaming desktop out of .portal file and add DVT(dynamic visitor tools) to it and start customizing it.

Let us know if that helps.
14 years ago
Sandy,

I think you already posted these questions in my blog which i answered there. But still I will try to answer here as well for our java greenhorns!

1. To show/hide portlets, one way is by using backing files. Check oracle documentation.
2. There are many ways to set preference depending upon the portlet you are using. For Java portlets, you can use portlet.xml to set, also you can portlet APIs to access preference values at run time. Even you can set read-only preferences as well. For other portlets like jsp portlets, page flow portlets, etc you can set preference at development level using workshop. Refer the documentation.
3. Backing files are used for doing pre-processing activities for portal resources such as books, pages, portlets and desktops.
4. This i am not sure. You can set different look-and-feel for each desktop.

Hope this helps.
Andy
14 years ago
Try adding log4j.jar to the classpath. if you are using logkit.jar, add that as well to classpath.
14 years ago
Abhi,

I think I have a fix for this. It looks like "Archived Real Path Enabled" option needs to be enabled in weblogic console.
Please check this blog entry for the steps.

http://ananthkannan.blogspot.com/2009/12/log4jconfiglistener-deployment-issue.html

Good luck.
Andy
14 years ago
This gave me nightmares. I don't know why weblogic behaves differently when deployed as WAR instead of exploded. There are 2 ways to fix this - domain level and webapp level. please visit this blog entry for the same.

http://ananthkannan.blogspot.com/2009/12/servletcontextgetrealpath-returns-null.html

Hope this helps.
Andy
14 years ago
Folks,

finally some work around. It looks like there is no way we can stop weblogic NOT to generate _wl_cls_gen.jar file. One way is modify the code, instead of using ResourceUtils.getFile() method, we used ClasspathResource with combination of InputStream. That fixed the issue.

It looks Spring's ResourceUtils.getFile() definitely have a bug in reading XMLs from web-inf/classes folder in WAR deployment.

Hope this helps.

Andy
14 years ago
Deepak,

Well, I never mentioned XMLs are missing. They are bundled into a _wls_cls_gen.jar from classes folder into web-inf/lib folder. And I can't put my XMLs into a location from where I can read as the application itself is product which is used by few clients. And again fast swap method is supported only in DEV mode. So using the same in PROD is out of question.

Anyways thanks for your help!

Andy
14 years ago
Folks,

I am also facing this problem. Please allow me to describe in bit detail:

I have a webapp deployed on weblogic server 10.3 which uses spring framework. One of java classes which is inside some services.jar accessing a XML file which resides in web-inf/classes folder. That java class loads the XML as below:

final File headerFile = ResourceUtils.getFile("classpath://data-values.xml");

What weblogic does during WAR deployment(obviously it internally explodes) it puts all the files reside in web-inf/classes folder into jar called _wl_cls_gen.jar file and copies into web-inf/lib directory under domain stage folder. This is where the problem during deployment as my java class was unable to read the xml and throwing error as FileNotFoundException.

java.io.FileNotFoundException: class path resource [//data-values.xml] cannot be resolved to absolute file path because it does not reside in the file system: zip:C:/domains/devDomain/servers/AdminServer/tmp/_WL_user/testWebApp/8j5e1y/war/WEB-INF/lib/_wl_cls_gen.jar!/data-values.xml

Is there a way to avoid generating _wl_cls_gen.jar during deployment? or there is a bug in Spring's ResourceUtils.getFile() method?

This works fine when I deploy war as exploded. But my requirement is deploy as WAR only.

Please share your thoughts.

Thanks.
Andy
14 years ago
Hi Avseq,

Which portal server are you talking about? In case of weblogic there is a way.

Andy
15 years ago
Antonio,

For your second question, Weblogic doesn't come up with Tomcat as Weblogic itself is an application server. However you can configure Apache to proxy the requests to Weblogic by downloading plug-in.

Andy
15 years ago
Ravi Kiran,

Look for data source XML files under $domain_root/config/jdbc folder.

Good luck.

Andy
15 years ago
Urh,

When you say authenticate against actual database users but not users from some database tables. The statement is kind of confusing.

However, If I understand you correctly, to achieve login authentication against data base, you will need to configure RDBMS authentication providers. There are three ways you can configure in weblogic:

1. SQL authentication provider - uses data base with read/write access.
2. Read only SQL authentication provider - all above with only read access
3. Custom RDBMS authenticator - you will need to write some custom plug-in code with your custom sql schema.

Hope the above information helps.

Andy
15 years ago