Jenny Lan

Greenhorn
+ Follow
since Jun 25, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jenny Lan

utsav gupta wrote:Can You please explain what you mean by 'on the web' ?

Regards




I run http://localhost:8080/TestServletUpload/upload.jsp
and it shows test.TestServlet dirPath C:\temp\upload that are in web.xml. How do I eliminate it ?
11 years ago
JSP

I have the following codes in my web.xml and it works fine. However, on the web shows test.TestServlet dirPath C:\temp\upload
What should I do in order to eliminate the test.TestServlet dirPath C:\temp\upload shows on web.

<servlet>
<servlet-name>TestServlet</servlet-name>
<servlet-class>test.TestServlet</servlet-class>
<init-param>
<param-name>dirPath</param-name>
<param-value>C:\temp\upload</param-value>
</init-param>
</servlet>


11 years ago
JSP

William P O'Sullivan wrote:Is the application added to your server in the servers tab? (right click, add and remove)?

I am positive something is not set up properly in your environment.

Is it maven based?

I can ask 20 questions all day, but don't have time to, so the more information you give the better.
Include screen shots if you can.

WP



It is eclipse-jee-juno-win32 on Windows XP. I use Dynamic web project to create the Servlet project. It runs correctly, but I have to shutdown then
reload the eclipse IDE each time I make a change on my project.

William P O'Sullivan wrote:It is auto-publishing?

Usually shutting down and restarting tells me that Eclipse is rebuilding your workspace
on startup. Something is wrong with your setup.

If you turn off auto-build and manually build and publish (through servers tab), does it work?

WP



It does not work, even I turn off the auto build

William P O'Sullivan wrote:Do you have the publishing target folders set correctly?

Is your project set to auto-build or manual?

WP



It is an auto-build and I know the target folder is correct. I have to shutdown the eclipse and re-load it in order to refresh the changing.
Hi,

I have tomcat 7 for servlet projects and I use eclipse.
I have to close eclipse, then re-launch eclipse in order to refresh what I have changed.
I have tried clean for cleaning my project or refresh my project and have set my reload to true on server.xml, but it doesn't work.

Thanks.

Bear Bibeault wrote:getRealPath() is used to find the actual path of a resource that is within the web app.

As you already have a full and absolute path to the file, it's not needed.



Thank you very much. It helps.
11 years ago

Bear Bibeault wrote:Please be sure to use code tags when posting code to the forums. Unformatted or unindented code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please click this link ⇒ UseCodeTags ⇐ for more information. Properly indented and formatted code greatly increases the probability that your question will get quicker, better answers.

I've gone ahead and added the code tags for you. See how much easier the code is to read?



I am sorry, will use code tags next time.
11 years ago
I am new in Servlets, please help. I got File Not found issue, I am sure I have a gif file C:\temp\new1.gif. Please see the errors and the codes below.

java.io.FileNotFoundException: C:\app\eclipse-jee-juno-win32\eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\Images\C:\temp\new1.gif (The filename, directory name, or volume label syntax is incorrect)
at java.io.FileInputStream.open(Native Method)


11 years ago

Jon Anslow wrote:Hi Jenny,

I have just created a wlfullclient.jar against WebLogic 10.3.5 Using the WebLogic JarBuilder Tool

and it does contain the weblogic.utils.compiler.Tool Class. Can you verify that the Tool Class is present in the wlfullclient.jar that you have?

You mention you do not have WebLogic installed so to try and establish the version of WebLogic that the wlfullclient.jar you have was created against you could check the MANIFEST.MF file to see the version against the Implementation-Version. An example snippet below:

Implementation-Version: 10.3.5.0

For further info - The individual JAR that contains the Tool Class in the version of WebLogic I am using is in WL_INSTALLATION_DIRECTORY/modules/com.bea.core.utils.full_1.9.0.1.jar and the contents of this JAR should get pulled into the wlfullclient.jar.

The stacktrace you posted also refers to appc? Are you trying to compile something using the appc tool


Jon




I do have weblogic.utils.compiler.Tool Class in wlfullclient.jar. Could you please tell me how to turn off pre compilation ? I use eclipse build.xml to compile the files.
Thanks
11 years ago
Please help. I have jdk1.6.0_24, have included wlfullclient.jar, tool.jar weblogic.jar xbeam.jar and weblogic-container-binding.jar in classpath, but I got errors as below.
I don't have weblogic installed in my system.

Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/utils/compiler/Tool
[java] at java.lang.ClassLoader.defineClass1(Native Method)
[java] at java.lang.ClassLoader.defineClassCond(Unknown Source)
[java] at java.lang.ClassLoader.defineClass(Unknown Source)
[java] at java.security.SecureClassLoader.defineClass(Unknown Source)
[java] at java.net.URLClassLoader.defineClass(Unknown Source)
[java] at java.net.URLClassLoader.access$000(Unknown Source)
[java] at java.net.URLClassLoader$1.run(Unknown Source)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(Unknown Source)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
[java] at weblogic.appc.main(appc.java:14)
[java] Caused by: java.lang.ClassNotFoundException: weblogic.utils.compiler.Tool
[java] at java.net.URLClassLoader$1.run(Unknown Source)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(Unknown Source)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
11 years ago