Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 7th, 2007, 02:24 PM
Registered User
Join Date: Jul 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with weblogic 7.0

can any one please help me to figure out the problem i am facing with my weblogic 7.0.
i wrote a sample servet and placed the file in class .i have made changes in web.xml files also but when i try to run servlet
java filename.java , it is given me error as below

C:\bea\nidhi\user_projects\nidhidomain\application s\DefaultWebApp\WEB-INF\classes>javac LoginServer.java
error: cannot read: LoginServer.java
1 error

however i have setenv also and when i tried to start weblogic by command startwls it starts running but as told above i can't compile the files .After setting env the classpath that i get is:

CLASSPATH=C:\bea\nidhi\jdk131_03\lib\tools.jar;C:\ bea\nidhi\weblogic700\server\l
ib\weblogic_sp.jar;C:\bea\nidhi\weblogic700\server \lib\weblogic.jar;C:\bea\nidhi

PATH=C:\bea\nidhi\weblogic700\server\bin;C:\bea\ni dhi\jdk131_03\bin;C:\oracle\or
Files\Oracle\jre\1.1.8bin;C:\WINDOWS\system32;C:\W INDOWS;C:\WINDOWS\System32\Wbem\Roxio
ed\;C:\Program Files\Java\jdk1.6.0_01\bin;C:\Program
Files\Java\jdk1.6.0_01\libtools.jar;C:\oracle\ora9 2\bin;C:\Program
Files\Oracle\jre\1.3.1\bin;C:\Program F
iles\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\W INDOWS;C:\WINDOWS\System32\Wbe
m\Roxio Shared\DLLShared\;C:\Program
Files\Java\jdk1.6.0_01\bin;C:\Program Files
\Java\jdk1.6.0_01\lib\tools.jar;C:\PROGRA~1\COMMON ~1\MUVEET~1\030625

Your environment has been set.

can any one please tell me what i am doing wrong ?

thanks in advance

Old July 13th, 2007, 04:26 PM
Authorized User
Join Date: Apr 2005
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts

The error error: cannot read: LoginServer.java is reported if the specified file is not present in the
C:\bea\nidhi\user_projects\nidhidomain\application s\DefaultWebApp\WEB-INF\classes directory. Can you verify that LoginServer.java is present in this drectory?

Old July 14th, 2007, 10:29 AM
Registered User
Join Date: Jul 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

thankyou for your feedback . i solved the problem . accidently i had not save the file as .java file . now my weblogic is working fine . thankyou for your feedback.

Similar Threads
Thread Thread Starter Forum Replies Last Post
weblogic vivekkumar_23 Apache Tomcat 0 November 8th, 2008 04:58 AM
deployment descriptor for weblogic g_basak EJB 3 June 25th, 2008 05:46 AM
Weblogic ahamad Pro Java 0 August 26th, 2006 02:38 AM
Problem Deploying EJBs to Weblogic Server mmalik_altaf J2EE 6 June 27th, 2005 09:14 PM
WEBLOGIC 7.0 sangam J2EE 0 October 7th, 2004 06:11 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.