둘러보기 생략.
 

[Eclipse+Sun Glassfish / Apache Tomcat+Template] user service 하이퍼링크 클릭 하면 cannot be resolved 에러 납니다

- 실력이 일천하여 다음과 같은 에러를 대응할 수가 없어 문의드립니다. (1),(2),(3) 3가지가 해당합니다.

- (1) glassfish 하에서...anyframe template 실행 시 user service 하이퍼링크 클릭 하면 에러 납니다.

Eclipse 3.4.1에서
Glassfish 2 (=Sun Java Systems Application Server 9.1) 위에
Anyframe Template를 import 하고
service,web 순으로 build (all조건) 하여 준비를 마쳤습니다.
(eclipse에서 project configuration으로 Apache 5.5 library(unbound) 설정을 제거하고
glassfish 2 library 폴더를 가리키도록 하였습니다.)

web의 index.jsp를 실행하면
정상적으로 glassfish 하에 template 초기화면이 뜹니다.
(hsqldb도 구동하였습니다.)

다만, 초기화면에서 user service 하이퍼링크 클릭 하면 에러 납니다.
(anyframe.templates.emp.common은 없고 anyframe.templates.emp.web.common만 있지 않은가요? 정상적으로 올려 놓으셨을텐데 왜 이런 에러가 나는지...)

#|2009-02-13T00:35:51.165+0900|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=18;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=6622337f-d7d5-474e-aa35-01f92c5f9069;|StandardWrapperValve[action]: PWC1406: 서블릿 action의 Servlet.service()에 예외가 발생했습니다.
java.lang.Error: Unresolved compilation problems:
The import anyframe.templates.emp.common cannot be resolved
The import anyframe.templates.emp.general cannot be resolved
The import anyframe.templates.emp.general cannot be resolved
ProductVO cannot be resolved to a type
ProductVO cannot be resolved to a type
ProductVO cannot be resolved to a type
ProductVO cannot be resolved to a type
ProductVO cannot be resolved to a type
ProductService cannot be resolved to a type
ProductService cannot be resolved to a type
ProductVO cannot be resolved to a type
LogFactory cannot be resolved

at anyframe.templates.emp.web.general.product.action.ProductDispatchAction.(ProductDispatchAction.java:31)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143)
at org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:280)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:218)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
|#]

======================================================

- (2) 또다른 서버 apache tomcat 하에서...anyframe template 실행 시 user service 하이퍼링크 클릭 하면 에러 납니다.

2009. 2. 13 오전 12:50:46 org.apache.catalina.core.StandardWrapperValve invoke
심각: Servlet.service() for servlet action threw exception
java.lang.Error: Unresolved compilation problems:
The import anyframe.templates.emp.common cannot be resolved
The import anyframe.templates.emp.general cannot be resolved
The import anyframe.templates.emp.general cannot be resolved
ProductVO cannot be resolved to a type
ProductVO cannot be resolved to a type
ProductVO cannot be resolved to a type
ProductVO cannot be resolved to a type
ProductVO cannot be resolved to a type
ProductService cannot be resolved to a type
ProductService cannot be resolved to a type
ProductVO cannot be resolved to a type
LogFactory cannot be resolved

at anyframe.templates.emp.web.general.product.action.ProductDispatchAction.(ProductDispatchAction.java:31)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143)
at org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:280)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:218)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)

======================================================

- (3) 참고로 Tomcat 하에서 첫 구동 시 다음과 같은 메세지가 있습니다.
'org.eclipse.jst.j2ee.server:anyframe-template-web' did not find a matching property.와 같은 경고 문구는 문제 없는가요?

2009. 2. 13 오전 1:07:08 org.apache.tomcat.util.digester.SetPropertiesRule begin
경고: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:anyframe-template-web' did not find a matching property.
2009. 2. 13 오전 1:07:08 org.apache.catalina.core.AprLifecycleListener init
정보: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.5.0_17\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre1.5.0_17/bin/client;C:/Program Files/Java/jre1.5.0_17/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\jdk1.5.0_17\bin;C:\apache-ant-1.7.1\bin;C:\Sun\glassfish-2.1-ml\bin
2009. 2. 13 오전 1:07:08 org.apache.coyote.http11.Http11Protocol init
정보: Initializing Coyote HTTP/1.1 on http-8080
2009. 2. 13 오전 1:07:08 org.apache.catalina.startup.Catalina load
정보: Initialization processed in 1457 ms
2009. 2. 13 오전 1:07:08 org.apache.catalina.core.StandardService start
정보: Starting service Catalina
2009. 2. 13 오전 1:07:08 org.apache.catalina.core.StandardEngine start
정보: Starting Servlet Engine: Apache Tomcat/6.0.18
log4j:INFO Using URL [file:/C:/Documents%20and%20Settings/Administrator/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/anyframe-template-web/WEB-INF/classes/log4j.xml] for automatic log4j configuration of repository named [default].
2009. 2. 13 오전 1:07:20 org.apache.catalina.core.ApplicationContext log
정보: Initializing Spring root WebApplicationContext
2009-02-13 01:07:20,318 INFO [org.springframework.web.context.ContextLoader] Root WebApplicationContext: initialization started
2009-02-13 01:07:20,508 INFO [org.springframework.web.context.support.XmlWebApplicationContext] Refreshing org.springframework.web.context.support.XmlWebApplicationContext@170bea5: display name [Root WebApplicationContext]; startup date [Fri Feb 13 01:07:20 KST 2009]; root of context hierarchy
2009-02-13 01:07:20,868 INFO [org.springframework.web.context.support.XmlWebApplicationContext] Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@170bea5]: org.springframework.beans.factory.support.DefaultListableBeanFactory@4ecfdd
2009-02-13 01:07:21,019 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4ecfdd: defining beans []; root of factory hierarchy
2009-02-13 01:07:21,019 INFO [org.springframework.web.context.ContextLoader] Root WebApplicationContext: initialization completed in 671 ms
2009-02-13 01:07:21,650 INFO [org.apache.struts.util.PropertyMessageResources] Initializing, config='anyframe.templates.emp.TemplateResources', returnNull=true
2009-02-13 01:07:21,870 INFO [org.apache.struts.tiles.TilesPlugin] Tiles definition factory loaded for module ''.
2009. 2. 13 오전 1:07:22 org.apache.coyote.http11.Http11Protocol start
정보: Starting Coyote HTTP/1.1 on http-8080
2009. 2. 13 오전 1:07:22 org.apache.jk.common.ChannelSocket init
정보: JK: ajp13 listening on /0.0.0.0:8009
2009. 2. 13 오전 1:07:22 org.apache.jk.server.JkMain start
정보: Jk running ID=0 time=0/280 config=null
2009. 2. 13 오전 1:07:22 org.apache.catalina.startup.Catalina start
정보: Server startup in 14110 ms

질문감사드립니다.

위의 로그만 가지고는 정확한 원인을 파악할 수 없으니

jonghoon80.kim@samsung.com로 연락처를 알려 주시면

연락 드리겠습니다.