This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Aditya Kumar wrote:Since no one has replied to my question, it probably means, among others things, one of these two:
1. My question is really stupid to warrant an answer.
2. My question is too sophisticated for a straightforward answer.
In any case - I am still stuck with this issue. If there is any more information that I could give here, please let me know!
Or it could mean be patient. Under the best of circumstances, not everyone sees posts for 24 hours due to time zones. In this case, you posted 30 minutes before the business day ends in the East Coast of the US on a Friday. There's a good chance not everyone will see it until Monday.
It's likely a classpath problem. If you add the following statement to your build file does the jar containing DebugLogger show up in it?
Aditya Kumar
Ranch Hand
Joined: Oct 31, 2006
Posts: 46
posted
0
If I use it is simply displaying the string "${weblogic.jar.classpath}. I am not sure what is happening.
But here's the thing. It is weblogic.jar file which has the class weblogic.wsee.tools.anttasks.JwscTask and also the package weblogic.diagnostics.debug -- BUT when I open the weblogic.jar file, in the diagnostics.debug package I do not see the DebugLogger.class file.
Chances are less but could it be a problem with weblogic.jar? But then again, I have not modified the jar file. Its just as it was shipped with weblogic 10.3 integration.
If that echo is not displaying an actual path, it means that weblogic.jar.classpath property is not being set correctly. Since it's weblogic.jar.classpath property that you're referring to in your call, it's not going to be able to find the class it needs. You'll need to investigate why weblogic.jar.classpath isn't being set.
I did a verbose with the ant command and this is the error:
I don't really understand. The package weblogic.diagnostics.debug is present in Weblogic.jar but I don't see a DebugLogger.class inside the jar file. Could it be that the problem is with the jar file?
It is possible yes, I think it you type in the full packagename.classname in Google a couple of useful "What jar does this live in" search sites pop up.
Aditya Kumar
Ranch Hand
Joined: Oct 31, 2006
Posts: 46
posted
0
This may be of help to someone -- I had posted this problem at oracle.com too and I have come to know that the actual JAR for debugLogger is com.bea.core.logging_1.4.0.0.jar.
This, along with other jars, is already a part of Wli 10.3 modules so it is strange that the ant complaints about it...
I should also point out that this problem is only coming when I am trying to do a manual ant build (from command prompt, after running commenv.cmd) in Windows XP. If I create a EAR from within Weblogic (through File->Export->Other->Ear File with JSP Pre-compilation"), I am not getting this problem and the application is deployed without issues. I would also be trying this on *nix though I don't expect it to be a smooth sailing affair
Thank you for your comments. More welcome! This issue is still unresolved.
Martijn Verburg wrote:If that echo is not displaying an actual path, it means that weblogic.jar.classpath property is not being set correctly. Since it's weblogic.jar.classpath property that you're referring to in your call, it's not going to be able to find the class it needs. You'll need to investigate why weblogic.jar.classpath isn't being set.
I think you still need to resolve this.
Aditya Kumar
Ranch Hand
Joined: Oct 31, 2006
Posts: 46
posted
0
I think you still need to resolve this.
I second to that Martijn. I am trying to do more analysis on this.
One doubt though. If weblogic.jar.classpath is not set, how can ant find its way to Weblogic.jar at that point? We know for sure that it is calling weblogic.jar's jwsctask class at that point, isn't it? I am just curious.
I am (relatively) new to Ant on command line. I won't be surprised if I may be sounding stupid anywhere.
Ant itself is running with a CLASSPATH that must have the task definition in it. However the call you are trying to make requires a CLASSPATH, at the moment you're providing it an empty one.
Innazio Lucatero
Greenhorn
Joined: May 24, 2012
Posts: 1
posted
0
I got the same error message and the problem is because it is missing a dependency jar used by weblogic.jar, wlclient.jar and wlthint3client.jar. Just add it to your classpath.